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.001267/0.001267, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001673/0.001673, allocations: 209.2 kB / 23.73 MB, free: 4.387 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.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.738 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.2191/0.2191, allocations: 38.55 MB / 352.5 MB, free: 12.27 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",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.002069/0.002069, allocations: 67.89 kB / 492.5 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.328, allocations: 62.47 MB / 0.5419 GB, free: 216 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.01264/0.3407, allocations: 5.833 MB / 0.5476 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005778/0.3464, allocations: 1.88 MB / 0.5495 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006781/0.3471, allocations: 31.12 kB / 0.5495 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002742/0.3499, allocations: 0.6818 MB / 0.5502 GB, free: 9.754 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.3514, allocations: 385 kB / 0.5505 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.3529, allocations: 402.3 kB / 0.5509 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001845/0.3548, allocations: 0.9416 MB / 0.5518 GB, free: 8.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.356, allocations: 384.4 kB / 0.5522 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001524/0.3575, allocations: 462.9 kB / 0.5526 GB, free: 8.133 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.3592, allocations: 0.5371 MB / 0.5532 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003195/0.3595, allocations: 57.59 kB / 0.5532 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.3607, allocations: 247.6 kB / 0.5534 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009076/0.3616, allocations: 417.7 kB / 0.5538 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.3627, allocations: 361.8 kB / 0.5542 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002305/0.365, allocations: 1.036 MB / 0.5552 GB, free: 6.586 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.365, allocations: 3.938 kB / 0.5552 GB, free: 6.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.365, allocations: 0 / 0.5552 GB, free: 6.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.365, allocations: 8 kB / 0.5552 GB, free: 6.574 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.002678/0.3677, allocations: 1.011 MB / 0.5562 GB, free: 5.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.3678, allocations: 15.92 kB / 0.5562 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002276/0.368, allocations: 135.3 kB / 0.5563 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/0.3694, allocations: 212.2 kB / 0.5565 GB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.3709, allocations: 490.1 kB / 0.557 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.259e-05/0.371, allocations: 66.34 kB / 0.5571 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.3712, allocations: 75.94 kB / 0.5572 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.3736, allocations: 1.13 MB / 0.5583 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.83e-05/0.3736, allocations: 7.938 kB / 0.5583 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.3737, allocations: 36 kB / 0.5583 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-05/0.3738, allocations: 49.98 kB / 0.5583 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.3759, allocations: 0.8584 MB / 0.5592 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00845/0.3844, allocations: 4.823 MB / 0.5639 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.3854, allocations: 389.3 kB / 0.5643 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.3858, allocations: 189.7 kB / 0.5644 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.417e-05/0.3859, allocations: 15.92 kB / 0.5645 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.3859, allocations: 34.56 kB / 0.5645 GB, free: 12.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 3.707e-06/0.3859, allocations: 4 kB / 0.5645 GB, free: 12.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.002684/0.3886, allocations: 1.089 MB / 0.5656 GB, free: 11.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.3887, allocations: 85.11 kB / 0.5656 GB, free: 11.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009025/0.3896, allocations: 0.5094 MB / 0.5661 GB, free: 10.92 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.3896, allocations: 33.7 kB / 0.5662 GB, free: 10.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005789/0.3902, allocations: 467.2 kB / 0.5666 GB, free: 10.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.3904, allocations: 170.6 kB / 0.5668 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.3907, allocations: 154.5 kB / 0.5669 GB, free: 10.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002484/0.391, allocations: 370.7 kB / 0.5673 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/0.3915, allocations: 246 kB / 0.5675 GB, free: 9.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009271/0.3924, allocations: 0.6207 MB / 0.5681 GB, free: 8.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.3936, allocations: 0.9299 MB / 0.569 GB, free: 7.566 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.3937, allocations: 4 kB / 0.569 GB, free: 7.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001439/0.3951, allocations: 0.8962 MB / 0.5699 GB, free: 6.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.3951, allocations: 12 kB / 0.5699 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.3951, allocations: 12 kB / 0.5699 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.55e-05/0.3952, allocations: 23.98 kB / 0.57 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007523/0.3959, allocations: 219.6 kB / 0.5702 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.857e-05/0.396, allocations: 24.36 kB / 0.5702 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/0.3964, allocations: 59.91 kB / 0.5702 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.401e-05/0.3965, allocations: 40 kB / 0.5703 GB, free: 6.277 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.0004476/0.3969, allocations: 313.6 kB / 0.5706 GB, free: 5.961 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.484e-05/0.397, allocations: 59.62 kB / 0.5706 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.398, allocations: 0.5485 MB / 0.5712 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.398, allocations: 4 kB / 0.5712 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.398, allocations: 4 kB / 0.5712 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.398, allocations: 11.92 kB / 0.5712 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.4003, allocations: 1.254 MB / 0.5724 GB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.4003, allocations: 4 kB / 0.5724 GB, free: 3.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/0.4007, allocations: 111.8 kB / 0.5725 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.4007, allocations: 7.938 kB / 0.5725 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.4008, allocations: 12.23 kB / 0.5725 GB, free: 3.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.4008, allocations: 8 kB / 0.5726 GB, free: 3.855 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.4008, allocations: 4 kB / 0.5726 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.4017, allocations: 0.6499 MB / 0.5732 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.4018, allocations: 55.56 kB / 0.5732 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.015e-05/0.4019, allocations: 15.98 kB / 0.5733 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.4021, allocations: 15.98 kB / 0.5733 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.4022, allocations: 43.66 kB / 0.5733 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.4022, allocations: 16 kB / 0.5733 GB, free: 3.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004059/0.4026, allocations: 330.8 kB / 0.5736 GB, free: 2.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4026, allocations: 4 kB / 0.5737 GB, free: 2.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006772/0.4033, allocations: 164 kB / 0.5738 GB, free: 2.531 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.001183/0.4045, allocations: 1.199 MB / 0.575 GB, free: 1.273 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009182/0.4054, allocations: 0.5795 MB / 0.5755 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4054, allocations: 0 / 0.5755 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.4057, allocations: 227.8 kB / 0.5758 GB, free: 488 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.4064, allocations: 122.6 kB / 0.5759 GB, free: 376 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007702/0.4141, allocations: 5.799 MB / 0.5815 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.4146, allocations: 402.9 kB / 0.5819 GB, free: 9.641 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005539/0.4151, allocations: 225 kB / 0.5821 GB, free: 9.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/0.4156, allocations: 259.3 kB / 0.5824 GB, free: 9.168 MB / 430.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4156, allocations: 0 / 0.5824 GB, free: 9.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06434/0.4799, allocations: 12.26 MB / 0.5944 GB, free: 13.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.98, allocations: 3.984 kB / 0.5944 GB, free: 13.12 MB / 446.1 MB " [Timeout remaining time 648] (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: 14.996571657713503]