Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.001335/0.001335, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001599/0.001599, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.2113/0.2113, allocations: 38.53 MB / 353.2 MB, free: 12.52 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.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.002099/0.002099, allocations: 63.91 kB / 493.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3912, allocations: 62.47 MB / 0.5428 GB, free: 424 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.009305/0.4005, allocations: 6.27 MB / 0.5489 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004267/0.4048, allocations: 2.026 MB / 0.5509 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005056/0.4053, allocations: 30.38 kB / 0.5509 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.4074, allocations: 0.7236 MB / 0.5516 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.4086, allocations: 383.5 kB / 0.552 GB, free: 8.973 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.41, allocations: 407.3 kB / 0.5523 GB, free: 8.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.4114, allocations: 0.9371 MB / 0.5533 GB, free: 8.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000701/0.4121, allocations: 397.4 kB / 0.5536 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009203/0.413, allocations: 458.7 kB / 0.5541 GB, free: 7.652 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.4141, allocations: 0.5653 MB / 0.5546 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.4142, allocations: 56.78 kB / 0.5547 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008244/0.415, allocations: 265.5 kB / 0.5549 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006316/0.4157, allocations: 425.7 kB / 0.5553 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006615/0.4163, allocations: 429.8 kB / 0.5558 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.4183, allocations: 1.024 MB / 0.5568 GB, free: 6.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4183, allocations: 0 / 0.5568 GB, free: 6.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.4183, allocations: 4 kB / 0.5568 GB, free: 6.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.4183, allocations: 0 / 0.5568 GB, free: 6.012 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002376/0.4207, allocations: 1.019 MB / 0.5578 GB, free: 5.055 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.4207, allocations: 15.98 kB / 0.5578 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.565e-05/0.4207, allocations: 26.19 kB / 0.5578 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.4209, allocations: 139.3 kB / 0.5579 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.4221, allocations: 204.2 kB / 0.5581 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.4232, allocations: 490.1 kB / 0.5586 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.759e-05/0.4232, allocations: 62.12 kB / 0.5586 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.4234, allocations: 75.94 kB / 0.5587 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.4253, allocations: 1.13 MB / 0.5598 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.761e-05/0.4254, allocations: 11.92 kB / 0.5598 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.164e-05/0.4254, allocations: 32 kB / 0.5599 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.345e-05/0.4255, allocations: 53.97 kB / 0.5599 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.427, allocations: 0.8662 MB / 0.5608 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006616/0.4336, allocations: 4.968 MB / 0.5656 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.4344, allocations: 403.6 kB / 0.566 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.4347, allocations: 197.7 kB / 0.5662 GB, free: 12.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.4347, allocations: 8 kB / 0.5662 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.4348, allocations: 34.56 kB / 0.5662 GB, free: 11.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.535e-06/0.4348, allocations: 4 kB / 0.5662 GB, free: 11.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.002301/0.4371, allocations: 1.093 MB / 0.5673 GB, free: 10.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.4372, allocations: 85.11 kB / 0.5674 GB, free: 10.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006303/0.4378, allocations: 0.4901 MB / 0.5679 GB, free: 10.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.4378, allocations: 33.7 kB / 0.5679 GB, free: 10.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003732/0.4382, allocations: 467.3 kB / 0.5683 GB, free: 9.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.4384, allocations: 162.6 kB / 0.5685 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/0.4386, allocations: 154.7 kB / 0.5686 GB, free: 9.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.4388, allocations: 370.7 kB / 0.569 GB, free: 9.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.4391, allocations: 237.8 kB / 0.5692 GB, free: 8.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006948/0.4398, allocations: 0.6207 MB / 0.5698 GB, free: 8.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.441, allocations: 0.9377 MB / 0.5707 GB, free: 6.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.441, allocations: 4 kB / 0.5707 GB, free: 6.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001421/0.4425, allocations: 0.904 MB / 0.5716 GB, free: 6.008 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.4425, allocations: 8 kB / 0.5716 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.4425, allocations: 16 kB / 0.5716 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.409e-05/0.4425, allocations: 16 kB / 0.5717 GB, free: 5.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.4433, allocations: 211.7 kB / 0.5719 GB, free: 5.762 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.057e-05/0.4433, allocations: 27.86 kB / 0.5719 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.4438, allocations: 64.3 kB / 0.572 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.4439, allocations: 40 kB / 0.572 GB, free: 5.633 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * 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.0004457/0.4443, allocations: 309.6 kB / 0.5723 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.4444, allocations: 55.62 kB / 0.5723 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.4454, allocations: 0.5563 MB / 0.5729 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4454, allocations: 11.94 kB / 0.5729 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.4454, allocations: 0 / 0.5729 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.4454, allocations: 4 kB / 0.5729 GB, free: 4.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.4477, allocations: 1.305 MB / 0.5742 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4477, allocations: 4 kB / 0.5742 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.4482, allocations: 115.8 kB / 0.5743 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-06/0.4482, allocations: 4 kB / 0.5743 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.4482, allocations: 15.98 kB / 0.5743 GB, free: 3.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.4482, allocations: 4 kB / 0.5743 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4482, allocations: 4 kB / 0.5743 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/0.4492, allocations: 0.646 MB / 0.5749 GB, free: 2.473 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.4493, allocations: 59.56 kB / 0.575 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.544e-05/0.4494, allocations: 15.98 kB / 0.575 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.4496, allocations: 19.98 kB / 0.575 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-05/0.4497, allocations: 39.66 kB / 0.5751 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.4498, allocations: 16 kB / 0.5751 GB, free: 2.324 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004201/0.4502, allocations: 330.8 kB / 0.5754 GB, free: 2.004 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4502, allocations: 0 / 0.5754 GB, free: 2.004 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008448/0.451, allocations: 167.9 kB / 0.5756 GB, free: 1.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (51): * Single equations (assignments): 50 * 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.001243/0.4523, allocations: 1.195 MB / 0.5767 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.4533, allocations: 0.5789 MB / 0.5773 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.4533, allocations: 5 kB / 0.5773 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.4537, allocations: 223.5 kB / 0.5775 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007162/0.4544, allocations: 118.8 kB / 0.5776 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008557/0.463, allocations: 5.807 MB / 0.5833 GB, free: 9.367 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.4637, allocations: 0.9995 MB / 0.5843 GB, free: 8.344 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005774/0.4643, allocations: 225 kB / 0.5845 GB, free: 8.121 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.4647, allocations: 255.3 kB / 0.5847 GB, free: 7.871 MB / 430.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4647, allocations: 0 / 0.5847 GB, free: 7.871 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03973/0.5044, allocations: 12.27 MB / 0.5967 GB, free: 11.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.61, allocations: 7.297 kB / 0.5967 GB, free: 11.76 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --stepSize=4e-05 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.793967764999252]