Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.PMeterTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009048, allocations: 91.86 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009844/0.0009844, allocations: 182.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 223.2 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1567/0.1567, allocations: 38.09 MB / 330.8 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 8 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07746/0.07774, allocations: 59.17 MB / 460 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.PMeterTest): time 0.003421/0.0812, allocations: 3.314 MB / 463.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.08309, allocations: 1.551 MB / 464.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.08325, allocations: 11.94 kB / 464.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.08339, allocations: 27.78 kB / 464.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005687/0.08396, allocations: 275.1 kB / 465.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.08423, allocations: 111.7 kB / 465.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004997/0.08474, allocations: 0.569 MB / 465.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.08528, allocations: 322 kB / 466.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002047/0.0855, allocations: 123.4 kB / 466.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.08573, allocations: 147.5 kB / 466.4 MB, free: 496 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.08576, allocations: 8 kB / 466.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005058/0.08627, allocations: 415 kB / 466.8 MB, free: 72 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.08639, allocations: 91.84 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.08649, allocations: 129.1 kB / 467 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.08687, allocations: 366.8 kB / 467.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.08688, allocations: 0 / 467.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.08689, allocations: 0 / 467.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.0869, allocations: 0 / 467.4 MB, free: 15.49 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0004972/0.0874, allocations: 478.7 kB / 467.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.08744, allocations: 12.03 kB / 467.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.489e-05/0.0875, allocations: 50.73 kB / 467.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008122/0.08832, allocations: 108.5 kB / 468 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.08858, allocations: 268.3 kB / 468.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.0886, allocations: 20.08 kB / 468.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.08865, allocations: 16 kB / 468.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004316/0.08908, allocations: 318.3 kB / 468.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.0891, allocations: 3.938 kB / 468.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.08913, allocations: 12 kB / 468.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.08916, allocations: 19.98 kB / 468.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.08958, allocations: 295.8 kB / 469 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.09103, allocations: 1.293 MB / 470.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.09131, allocations: 202.3 kB / 470.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.632e-05/0.0914, allocations: 41.77 kB / 470.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.09142, allocations: 8.188 kB / 470.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.09145, allocations: 38.44 kB / 470.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.09146, allocations: 3.938 kB / 470.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002587/0.09172, allocations: 137.4 kB / 470.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.09178, allocations: 81.11 kB / 470.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.09196, allocations: 215.7 kB / 471 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.09198, allocations: 25.7 kB / 471 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.313e-05/0.09208, allocations: 171.7 kB / 471.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.09211, allocations: 31.55 kB / 471.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.182e-05/0.09216, allocations: 29.7 kB / 471.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.09226, allocations: 330.7 kB / 471.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.03e-05/0.09232, allocations: 39.97 kB / 471.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.09244, allocations: 136.8 kB / 471.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.09264, allocations: 192.7 kB / 471.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.09265, allocations: 0 / 471.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00027/0.09293, allocations: 205.5 kB / 472.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.09295, allocations: 14.19 kB / 472.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.09296, allocations: 4 kB / 472.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.09298, allocations: 4 kB / 472.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.09313, allocations: 52.44 kB / 472.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.09314, allocations: 4 kB / 472.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.09326, allocations: 23.75 kB / 472.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.09328, allocations: 8 kB / 472.2 MB, free: 10.24 MB / 350.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 (23): * Single equations (assignments): 23 * 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.0001114/0.0934, allocations: 161.6 kB / 472.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.09344, allocations: 27.75 kB / 472.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001755/0.09362, allocations: 119 kB / 472.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.09363, allocations: 0 / 472.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.09364, allocations: 0 / 472.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.09365, allocations: 4.031 kB / 472.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006205/0.09428, allocations: 0.572 MB / 473.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.09429, allocations: 4 kB / 473.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.233e-05/0.09437, allocations: 23.92 kB / 473.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.09438, allocations: 7.938 kB / 473.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.0944, allocations: 4 kB / 473.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.0944, allocations: 320 / 473.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.09441, allocations: 8 kB / 473.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.09463, allocations: 283.8 kB / 473.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.09469, allocations: 96.86 kB / 473.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.09472, allocations: 11.98 kB / 473.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.09483, allocations: 4 kB / 473.5 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.09486, allocations: 11.94 kB / 473.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.09488, allocations: 11.98 kB / 473.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.09499, allocations: 153.5 kB / 473.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.095, allocations: 0 / 473.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003132/0.09532, allocations: 55.78 kB / 473.8 MB, free: 8.535 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (11): * Single equations (assignments): 10 * 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.0004047/0.09573, allocations: 0.8181 MB / 474.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.09592, allocations: 115.8 kB / 474.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.09593, allocations: 0.875 kB / 474.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/0.09599, allocations: 44.11 kB / 474.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.09639, allocations: 35.98 kB / 474.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.09841, allocations: 2.401 MB / 477.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.0987, allocations: 0.7634 MB / 477.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.817e-05/0.0988, allocations: 33.52 kB / 478 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.417e-05/0.09888, allocations: 55.42 kB / 478 MB, free: 3.957 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.09889, allocations: 0 / 478 MB, free: 3.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0963/0.1952, allocations: 3.046 MB / 481.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/0.1954, allocations: 203.9 kB / 481.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.006, allocations: 0 / 481.3 MB, free: 0.7695 MB / 350.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_PMeterTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.PMeterTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.PMeterTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches