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.001445/0.001445, 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.001604/0.001604, allocations: 211.9 kB / 24.51 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.55/1.55, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.1903/0.1903, allocations: 38.55 MB / 353.2 MB, free: 12.33 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.002061/0.002061, allocations: 63.91 kB / 493.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3436, allocations: 62.47 MB / 0.5427 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008382/0.352, allocations: 5.825 MB / 0.5484 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004377/0.3564, allocations: 1.88 MB / 0.5502 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005455/0.3569, allocations: 29.72 kB / 0.5502 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.3591, allocations: 0.6783 MB / 0.5509 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.3603, allocations: 383.8 kB / 0.5513 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.3617, allocations: 403.4 kB / 0.5517 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.3632, allocations: 0.9412 MB / 0.5526 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006896/0.3639, allocations: 396.5 kB / 0.5529 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007893/0.3647, allocations: 455.6 kB / 0.5534 GB, free: 8.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000823/0.3655, allocations: 0.5678 MB / 0.5539 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.3656, allocations: 58 kB / 0.554 GB, free: 7.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005384/0.3662, allocations: 246.6 kB / 0.5542 GB, free: 7.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000453/0.3666, allocations: 426.6 kB / 0.5546 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.3671, allocations: 356.3 kB / 0.555 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.3684, allocations: 1.034 MB / 0.556 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3684, allocations: 4 kB / 0.556 GB, free: 6.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3684, allocations: 0 / 0.556 GB, free: 6.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.059e-05/0.3684, allocations: 5.344 kB / 0.556 GB, free: 6.605 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.001993/0.3704, allocations: 1.022 MB / 0.557 GB, free: 5.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.3704, allocations: 15.98 kB / 0.557 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.585e-05/0.3705, allocations: 18.19 kB / 0.557 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.3706, allocations: 131.3 kB / 0.5571 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/0.3717, allocations: 212.2 kB / 0.5574 GB, free: 5.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.3727, allocations: 490.1 kB / 0.5578 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.729e-05/0.3728, allocations: 58.12 kB / 0.5579 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.3729, allocations: 83.92 kB / 0.558 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.3748, allocations: 1.13 MB / 0.5591 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.3748, allocations: 7.938 kB / 0.5591 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.548e-05/0.3749, allocations: 28 kB / 0.5591 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-05/0.3749, allocations: 49.98 kB / 0.5591 GB, free: 3.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.3764, allocations: 0.8701 MB / 0.56 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006272/0.3827, allocations: 4.82 MB / 0.5647 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007484/0.3835, allocations: 397.2 kB / 0.5651 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/0.3838, allocations: 189.7 kB / 0.5653 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.3838, allocations: 7.984 kB / 0.5653 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.257e-05/0.3839, allocations: 38.56 kB / 0.5653 GB, free: 12.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 5.09e-06/0.3839, allocations: 7.984 kB / 0.5653 GB, free: 12.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.002169/0.386, allocations: 1.089 MB / 0.5664 GB, free: 11.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.3861, allocations: 81.11 kB / 0.5664 GB, free: 11.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006048/0.3867, allocations: 0.4901 MB / 0.5669 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/0.3868, allocations: 33.7 kB / 0.567 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.3871, allocations: 471.3 kB / 0.5674 GB, free: 10.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.3873, allocations: 166.6 kB / 0.5676 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/0.3876, allocations: 154.6 kB / 0.5677 GB, free: 10.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3877, allocations: 370.7 kB / 0.5681 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.3881, allocations: 242 kB / 0.5683 GB, free: 9.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006992/0.3888, allocations: 0.6168 MB / 0.5689 GB, free: 8.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.3901, allocations: 0.9338 MB / 0.5698 GB, free: 7.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.3901, allocations: 4 kB / 0.5698 GB, free: 7.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001451/0.3915, allocations: 0.9039 MB / 0.5707 GB, free: 6.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3916, allocations: 12 kB / 0.5707 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/0.3916, allocations: 12 kB / 0.5707 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.294e-05/0.3916, allocations: 20 kB / 0.5707 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.3923, allocations: 211.7 kB / 0.5709 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-05/0.3924, allocations: 32.33 kB / 0.571 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.3928, allocations: 59.91 kB / 0.571 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.771e-05/0.3929, allocations: 44 kB / 0.5711 GB, free: 6.297 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.0004401/0.3933, allocations: 305.6 kB / 0.5714 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.3934, allocations: 55.67 kB / 0.5714 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000996/0.3944, allocations: 0.5562 MB / 0.572 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3944, allocations: 4 kB / 0.572 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3944, allocations: 4 kB / 0.572 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3944, allocations: 11.92 kB / 0.572 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/0.3965, allocations: 1.258 MB / 0.5732 GB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.3966, allocations: 4 kB / 0.5732 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.397, allocations: 111.8 kB / 0.5733 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.397, allocations: 4 kB / 0.5733 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.397, allocations: 16.23 kB / 0.5733 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.397, allocations: 8 kB / 0.5733 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3971, allocations: 4 kB / 0.5734 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000856/0.3979, allocations: 0.6459 MB / 0.574 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.466e-05/0.398, allocations: 59.56 kB / 0.574 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.428e-05/0.3981, allocations: 8 kB / 0.574 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.3983, allocations: 23.97 kB / 0.5741 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.3984, allocations: 43.66 kB / 0.5741 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.3984, allocations: 16 kB / 0.5741 GB, free: 3.035 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003891/0.3988, allocations: 326.8 kB / 0.5744 GB, free: 2.719 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3988, allocations: 4 kB / 0.5744 GB, free: 2.715 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007078/0.3995, allocations: 167.9 kB / 0.5746 GB, free: 2.551 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.001338/0.4009, allocations: 1.195 MB / 0.5758 GB, free: 1.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.4019, allocations: 0.5794 MB / 0.5763 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.402, allocations: 4 kB / 0.5763 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003696/0.4023, allocations: 220.2 kB / 0.5765 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00071/0.403, allocations: 118.6 kB / 0.5767 GB, free: 408 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007977/0.411, allocations: 5.812 MB / 0.5823 GB, free: 10.08 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.4115, allocations: 402.9 kB / 0.5827 GB, free: 9.664 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005506/0.4121, allocations: 224.9 kB / 0.5829 GB, free: 9.441 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003774/0.4124, allocations: 255.3 kB / 0.5832 GB, free: 9.191 MB / 430.1 MB Notification: Performance of SimCode: time 1.362e-06/0.4124, allocations: 0 / 0.5832 GB, free: 9.191 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03856/0.451, allocations: 12.23 MB / 0.5951 GB, free: 13.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.67, allocations: 7.188 kB / 0.5951 GB, free: 13.18 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.89567838399671]