Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1907/0.1907, allocations: 38.55 MB / 353.2 MB, free: 12.35 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 63.89 kB / 493.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3922, allocations: 62.46 MB / 0.5427 GB, free: 276 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005995/0.3982, allocations: 3.991 MB / 0.5466 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.3998, allocations: 0.8605 MB / 0.5474 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.4, allocations: 19.69 kB / 0.5475 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.4002, allocations: 47.41 kB / 0.5475 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.4008, allocations: 185.3 kB / 0.5477 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.401, allocations: 96.03 kB / 0.5478 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004731/0.4015, allocations: 407.1 kB / 0.5482 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.4017, allocations: 78.91 kB / 0.5482 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003324/0.402, allocations: 198.5 kB / 0.5484 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003861/0.4024, allocations: 208 kB / 0.5486 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.073e-05/0.4024, allocations: 21.03 kB / 0.5486 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.184e-05/0.4025, allocations: 21.19 kB / 0.5487 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.4027, allocations: 110.5 kB / 0.5488 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001758/0.4028, allocations: 126.3 kB / 0.5489 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004281/0.4033, allocations: 321 kB / 0.5492 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4033, allocations: 1.531 kB / 0.5492 GB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4033, allocations: 0 / 0.5492 GB, free: 11.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.4033, allocations: 4 kB / 0.5492 GB, free: 11.39 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001215/0.4045, allocations: 0.5566 MB / 0.5497 GB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.4045, allocations: 13.23 kB / 0.5498 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.303e-05/0.4045, allocations: 7.281 kB / 0.5498 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.931e-05/0.4046, allocations: 58.36 kB / 0.5498 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.4047, allocations: 32.53 kB / 0.5498 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004914/0.4052, allocations: 279.7 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.4052, allocations: 17.47 kB / 0.5501 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.4052, allocations: 26.81 kB / 0.5502 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.4058, allocations: 323.5 kB / 0.5505 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4058, allocations: 0 / 0.5505 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.4058, allocations: 11.38 kB / 0.5505 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.4058, allocations: 6.156 kB / 0.5505 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.4062, allocations: 211.5 kB / 0.5507 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.4079, allocations: 1.265 MB / 0.5519 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.4082, allocations: 143.9 kB / 0.5521 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.4084, allocations: 56.97 kB / 0.5521 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.4084, allocations: 2.25 kB / 0.5521 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.4084, allocations: 32.88 kB / 0.5521 GB, free: 8.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.4084, allocations: 224 / 0.5521 GB, free: 8.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=13): time 0.00093/0.4094, allocations: 372 kB / 0.5525 GB, free: 8.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.4094, allocations: 83.64 kB / 0.5526 GB, free: 8.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.4098, allocations: 269.1 kB / 0.5528 GB, free: 8.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.4098, allocations: 25.7 kB / 0.5529 GB, free: 8.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.41, allocations: 209.7 kB / 0.5531 GB, free: 8.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.334e-05/0.41, allocations: 50.14 kB / 0.5531 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.873e-05/0.4101, allocations: 41.39 kB / 0.5531 GB, free: 8.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4103, allocations: 341.3 kB / 0.5535 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.4104, allocations: 52.28 kB / 0.5535 GB, free: 7.754 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.4106, allocations: 149.3 kB / 0.5537 GB, free: 7.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.4109, allocations: 228 kB / 0.5539 GB, free: 7.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4109, allocations: 5.531 kB / 0.5539 GB, free: 7.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004411/0.4114, allocations: 250 kB / 0.5541 GB, free: 7.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4114, allocations: 5.75 kB / 0.5541 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4114, allocations: 4.938 kB / 0.5541 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.4114, allocations: 7.844 kB / 0.5541 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.4117, allocations: 53.22 kB / 0.5542 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.4117, allocations: 8.312 kB / 0.5542 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.4118, allocations: 16.28 kB / 0.5542 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.4119, allocations: 12.73 kB / 0.5542 GB, free: 7.223 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002135/0.4121, allocations: 155.4 kB / 0.5544 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.322e-05/0.4121, allocations: 23.08 kB / 0.5544 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004008/0.4125, allocations: 200.4 kB / 0.5546 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4125, allocations: 2.125 kB / 0.5546 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4125, allocations: 0 / 0.5546 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.4125, allocations: 9.156 kB / 0.5546 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008206/0.4134, allocations: 0.5141 MB / 0.5551 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4134, allocations: 1.25 kB / 0.5551 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.4135, allocations: 26.14 kB / 0.5551 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.4135, allocations: 1.094 kB / 0.5551 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.4135, allocations: 10.28 kB / 0.5551 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.4135, allocations: 1.25 kB / 0.5551 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4135, allocations: 1.219 kB / 0.5551 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.4139, allocations: 294 kB / 0.5554 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.4139, allocations: 26.78 kB / 0.5554 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.414, allocations: 14.31 kB / 0.5555 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.4141, allocations: 10.42 kB / 0.5555 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.4141, allocations: 11.44 kB / 0.5555 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.4141, allocations: 4.812 kB / 0.5555 GB, free: 6.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001826/0.4143, allocations: 184.5 kB / 0.5557 GB, free: 6.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4143, allocations: 0 / 0.5557 GB, free: 6.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.4147, allocations: 48.5 kB / 0.5557 GB, free: 6.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007464/0.4154, allocations: 0.8216 MB / 0.5565 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.4158, allocations: 168.9 kB / 0.5567 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4158, allocations: 3.938 kB / 0.5567 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.4159, allocations: 62.69 kB / 0.5567 GB, free: 5.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.4164, allocations: 61.02 kB / 0.5568 GB, free: 5.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.4197, allocations: 2.567 MB / 0.5593 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.4199, allocations: 178.1 kB / 0.5595 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.4201, allocations: 38.28 kB / 0.5595 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.4202, allocations: 91.39 kB / 0.5596 GB, free: 2.281 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4202, allocations: 0 / 0.5596 GB, free: 2.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.4486, allocations: 5.354 MB / 0.5648 GB, free: 13.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.99, allocations: 16.16 kB / 0.5648 GB, free: 13.09 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.040061331004836]