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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001372, allocations: 112.8 kB / 17.06 MB, free: 5.984 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.001396/0.001396, allocations: 198.9 kB / 18 MB, free: 5.066 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.492/1.492, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2035/0.2035, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 67.89 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.327, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006821/0.3339, allocations: 6.1 MB / 0.5096 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002941/0.3368, allocations: 1.943 MB / 0.5115 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000295/0.3371, allocations: 22.69 kB / 0.5115 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.3387, allocations: 0.6923 MB / 0.5122 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007236/0.3395, allocations: 384.7 kB / 0.5125 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009478/0.3404, allocations: 392.3 kB / 0.5129 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009337/0.3414, allocations: 0.9346 MB / 0.5138 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006194/0.342, allocations: 0.5085 MB / 0.5143 GB, free: 384 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.3425, allocations: 428.5 kB / 0.5147 GB, free: 196 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007032/0.3432, allocations: 0.532 MB / 0.5152 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-05/0.3433, allocations: 57.41 kB / 0.5153 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005238/0.3439, allocations: 242.2 kB / 0.5155 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004431/0.3443, allocations: 416.2 kB / 0.5159 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000503/0.3448, allocations: 428.7 kB / 0.5163 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001614/0.3464, allocations: 1.02 MB / 0.5173 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3465, allocations: 0.5938 kB / 0.5173 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3465, allocations: 0.5625 kB / 0.5173 GB, free: 15.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.191e-05/0.3465, allocations: 0 / 0.5173 GB, free: 15.17 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.002025/0.3485, allocations: 1.063 MB / 0.5184 GB, free: 14.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3486, allocations: 13.64 kB / 0.5184 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001726/0.3488, allocations: 135 kB / 0.5185 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007003/0.3495, allocations: 134.9 kB / 0.5186 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.3505, allocations: 0.55 MB / 0.5192 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.3506, allocations: 58.64 kB / 0.5192 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.3507, allocations: 86.14 kB / 0.5193 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.3525, allocations: 1.13 MB / 0.5204 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/0.3525, allocations: 7.281 kB / 0.5204 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.001e-05/0.3526, allocations: 40.03 kB / 0.5205 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-05/0.3527, allocations: 50.41 kB / 0.5205 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.354, allocations: 0.8612 MB / 0.5213 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005447/0.3595, allocations: 5.034 MB / 0.5263 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.3602, allocations: 417.1 kB / 0.5267 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003587/0.3606, allocations: 209.7 kB / 0.5269 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.686e-05/0.3607, allocations: 21.23 kB / 0.5269 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.3607, allocations: 37.09 kB / 0.5269 GB, free: 8.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 3.015e-06/0.3607, allocations: 0 / 0.5269 GB, free: 8.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002041/0.3628, allocations: 1.068 MB / 0.528 GB, free: 8.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.3628, allocations: 82.88 kB / 0.528 GB, free: 8.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006052/0.3635, allocations: 0.4912 MB / 0.5285 GB, free: 7.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.3635, allocations: 35.86 kB / 0.5285 GB, free: 7.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.3638, allocations: 455.3 kB / 0.529 GB, free: 7.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.364, allocations: 158.6 kB / 0.5291 GB, free: 7.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.3642, allocations: 147.4 kB / 0.5293 GB, free: 7.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3644, allocations: 370.8 kB / 0.5296 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.3647, allocations: 237.3 kB / 0.5299 GB, free: 6.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006605/0.3654, allocations: 0.6234 MB / 0.5305 GB, free: 6.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3666, allocations: 0.9375 MB / 0.5314 GB, free: 5.621 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.3666, allocations: 4.422 kB / 0.5314 GB, free: 5.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001474/0.3681, allocations: 0.8977 MB / 0.5323 GB, free: 5.266 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.3682, allocations: 11.84 kB / 0.5323 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.3682, allocations: 13.72 kB / 0.5323 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-05/0.3682, allocations: 18.09 kB / 0.5323 GB, free: 5.266 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008427/0.3691, allocations: 224.6 kB / 0.5325 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.212e-05/0.3691, allocations: 29.58 kB / 0.5325 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.3697, allocations: 58.06 kB / 0.5326 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.926e-05/0.3697, allocations: 44.3 kB / 0.5326 GB, free: 5.203 MB / 398.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.0004774/0.3702, allocations: 310.8 kB / 0.5329 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.3703, allocations: 52.69 kB / 0.533 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000941/0.3713, allocations: 0.5599 MB / 0.5335 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.3713, allocations: 5 kB / 0.5335 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3713, allocations: 0.9062 kB / 0.5335 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3713, allocations: 3.891 kB / 0.5335 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.3735, allocations: 1.334 MB / 0.5348 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.3735, allocations: 6.797 kB / 0.5349 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004348/0.374, allocations: 111.8 kB / 0.535 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.374, allocations: 8.375 kB / 0.535 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.374, allocations: 12.53 kB / 0.535 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.374, allocations: 8.531 kB / 0.535 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.374, allocations: 3.406 kB / 0.535 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000747/0.3748, allocations: 0.6465 MB / 0.5356 GB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.3749, allocations: 133.1 kB / 0.5357 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.271e-05/0.375, allocations: 8.938 kB / 0.5358 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.3753, allocations: 21.17 kB / 0.5358 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.3753, allocations: 40.98 kB / 0.5358 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.3754, allocations: 15.72 kB / 0.5358 GB, free: 3.188 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.3757, allocations: 328.1 kB / 0.5361 GB, free: 2.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3757, allocations: 3.938 kB / 0.5361 GB, free: 2.992 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007119/0.3764, allocations: 162.2 kB / 0.5363 GB, free: 2.973 MB / 398.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.001007/0.3774, allocations: 1.194 MB / 0.5375 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000914/0.3783, allocations: 0.6161 MB / 0.5381 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3784, allocations: 1.469 kB / 0.5381 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.3787, allocations: 237.5 kB / 0.5383 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.3794, allocations: 121.2 kB / 0.5384 GB, free: 1.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.3866, allocations: 5.776 MB / 0.5441 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006807/0.3873, allocations: 1 MB / 0.545 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006072/0.3879, allocations: 218 kB / 0.5452 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/0.3883, allocations: 258.3 kB / 0.5455 GB, free: 12.13 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3883, allocations: 0 / 0.5455 GB, free: 12.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.4201, allocations: 11.54 MB / 0.5568 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.342/8.762, allocations: 4.062 kB / 0.5568 GB, free: 0.7266 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) 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) Reference file matches