Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.00148/0.001487, allocations: 105.8 kB / 17.06 MB, free: 6.023 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.001765/0.001765, allocations: 195 kB / 18 MB, free: 5.105 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.447/1.447, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1868/0.1868, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 63.91 kB / 457.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3359, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.006548/0.3425, allocations: 7.557 MB / 0.511 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.3475, allocations: 4.169 MB / 0.5151 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004787/0.348, allocations: 17.34 kB / 0.5151 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00281/0.3508, allocations: 1.021 MB / 0.5161 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002673/0.3535, allocations: 1.102 MB / 0.5172 GB, free: 14.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.3546, allocations: 308.7 kB / 0.5175 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.3574, allocations: 1.364 MB / 0.5188 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001337/0.3588, allocations: 456.4 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.3604, allocations: 0.5733 MB / 0.5198 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.3618, allocations: 0.5807 MB / 0.5204 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.362, allocations: 35.06 kB / 0.5204 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002112/0.3641, allocations: 0.9885 MB / 0.5214 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005728/0.3647, allocations: 270.6 kB / 0.5216 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006953/0.3654, allocations: 247.8 kB / 0.5218 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.3675, allocations: 0.8205 MB / 0.5226 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3676, allocations: 0 / 0.5226 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3676, allocations: 0 / 0.5226 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.3676, allocations: 0 / 0.5226 GB, free: 11.75 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001883/0.3695, allocations: 0.7988 MB / 0.5234 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3696, allocations: 13.61 kB / 0.5234 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.3697, allocations: 83.84 kB / 0.5235 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.3714, allocations: 132.5 kB / 0.5236 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007373/0.3722, allocations: 330.4 kB / 0.524 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.721e-05/0.3722, allocations: 33.45 kB / 0.524 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.3723, allocations: 41.7 kB / 0.524 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009857/0.3733, allocations: 0.5816 MB / 0.5246 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.3733, allocations: 1.375 kB / 0.5246 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.456e-05/0.3734, allocations: 20.91 kB / 0.5246 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.199e-05/0.3735, allocations: 36.34 kB / 0.5247 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006855/0.3742, allocations: 388.8 kB / 0.525 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.3772, allocations: 2.593 MB / 0.5276 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/0.378, allocations: 426.5 kB / 0.528 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000322/0.3784, allocations: 209.4 kB / 0.5282 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.3784, allocations: 12.36 kB / 0.5282 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.3784, allocations: 41.98 kB / 0.5282 GB, free: 7.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.013e-06/0.3784, allocations: 0 / 0.5282 GB, free: 7.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002117/0.3806, allocations: 0.7626 MB / 0.529 GB, free: 7.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.3807, allocations: 107.2 kB / 0.5291 GB, free: 7.285 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/0.3812, allocations: 325.4 kB / 0.5294 GB, free: 7.117 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.3813, allocations: 30.86 kB / 0.5294 GB, free: 7.082 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.3815, allocations: 254.5 kB / 0.5297 GB, free: 6.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.3816, allocations: 116.3 kB / 0.5298 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.3818, allocations: 79.27 kB / 0.5298 GB, free: 6.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.382, allocations: 356.1 kB / 0.5302 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.3822, allocations: 128.1 kB / 0.5303 GB, free: 6.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/0.3826, allocations: 279.3 kB / 0.5306 GB, free: 6.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006631/0.3833, allocations: 459.9 kB / 0.531 GB, free: 5.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.3833, allocations: 1.922 kB / 0.531 GB, free: 5.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00102/0.3843, allocations: 0.5632 MB / 0.5316 GB, free: 5.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3844, allocations: 6.844 kB / 0.5316 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.3844, allocations: 5.406 kB / 0.5316 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004241/0.3848, allocations: 117.5 kB / 0.5317 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.3851, allocations: 75.86 kB / 0.5318 GB, free: 5.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.3882, allocations: 2.565 MB / 0.5343 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.3885, allocations: 44.28 kB / 0.5343 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.3885, allocations: 15.81 kB / 0.5343 GB, free: 3.477 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.3888, allocations: 200.1 kB / 0.5345 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3889, allocations: 37.27 kB / 0.5345 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.177e-05/0.389, allocations: 53.44 kB / 0.5346 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.389, allocations: 4.938 kB / 0.5346 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.3891, allocations: 15.14 kB / 0.5346 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3891, allocations: 2.859 kB / 0.5346 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001478/0.3905, allocations: 0.945 MB / 0.5355 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3906, allocations: 1.25 kB / 0.5355 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.3907, allocations: 35.08 kB / 0.5356 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002613/0.391, allocations: 108.5 kB / 0.5357 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.391, allocations: 11.31 kB / 0.5357 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002772/0.3938, allocations: 2.545 MB / 0.5382 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3938, allocations: 2.438 kB / 0.5382 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008705/0.3947, allocations: 0.6316 MB / 0.5388 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.3949, allocations: 113.9 kB / 0.5389 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.3949, allocations: 14.67 kB / 0.5389 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.3951, allocations: 6.719 kB / 0.5389 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.721e-05/0.3952, allocations: 31.59 kB / 0.5389 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.3952, allocations: 6.406 kB / 0.539 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002825/0.3955, allocations: 224.4 kB / 0.5392 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3955, allocations: 0 / 0.5392 GB, free: 15.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008351/0.3964, allocations: 157.3 kB / 0.5393 GB, free: 15.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001385/0.3978, allocations: 1.163 MB / 0.5405 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3988, allocations: 0.522 MB / 0.541 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3988, allocations: 0 / 0.541 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.3993, allocations: 341.1 kB / 0.5413 GB, free: 13.99 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.3999, allocations: 59.91 kB / 0.5413 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005797/0.4058, allocations: 3.989 MB / 0.5452 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.4063, allocations: 0.8841 MB / 0.5461 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.4065, allocations: 69.41 kB / 0.5462 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.4066, allocations: 118 kB / 0.5463 GB, free: 10.07 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4066, allocations: 0 / 0.5463 GB, free: 10.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.4366, allocations: 7.778 MB / 0.5539 GB, free: 4.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.829/10.27, allocations: 18.31 kB / 0.5539 GB, free: 4 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches