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.001502/0.001502, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001572/0.001572, allocations: 200 kB / 18.01 MB, free: 4.918 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 67.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3284, allocations: 58.05 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.006727/0.3352, allocations: 7.556 MB / 0.511 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005173/0.3404, allocations: 4.168 MB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004875/0.3409, allocations: 12.78 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002745/0.3436, allocations: 1.02 MB / 0.5161 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003051/0.3467, allocations: 1.105 MB / 0.5172 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009675/0.3477, allocations: 308.3 kB / 0.5175 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002051/0.3497, allocations: 1.364 MB / 0.5188 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009298/0.3507, allocations: 461.5 kB / 0.5192 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.352, allocations: 0.5578 MB / 0.5198 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008866/0.3529, allocations: 0.587 MB / 0.5204 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.092e-05/0.353, allocations: 35.69 kB / 0.5204 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.355, allocations: 0.9864 MB / 0.5214 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.3553, allocations: 273 kB / 0.5216 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003368/0.3557, allocations: 248.1 kB / 0.5218 GB, free: 12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.3572, allocations: 0.8197 MB / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3572, allocations: 0 / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3572, allocations: 1.469 kB / 0.5227 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3572, allocations: 0 / 0.5227 GB, free: 11.7 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.001256/0.3585, allocations: 0.8135 MB / 0.5234 GB, free: 11.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3586, allocations: 12.11 kB / 0.5235 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.3587, allocations: 87.7 kB / 0.5235 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/0.3602, allocations: 136.8 kB / 0.5237 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005239/0.3608, allocations: 339.1 kB / 0.524 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.3608, allocations: 32.48 kB / 0.524 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.382e-05/0.3609, allocations: 39.97 kB / 0.5241 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009255/0.3618, allocations: 0.5827 MB / 0.5246 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3618, allocations: 6.5 kB / 0.5246 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.428e-05/0.3619, allocations: 17.92 kB / 0.5247 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.707e-05/0.362, allocations: 36.5 kB / 0.5247 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006334/0.3626, allocations: 384.2 kB / 0.5251 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003033/0.3656, allocations: 2.596 MB / 0.5276 GB, free: 8.004 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007878/0.3665, allocations: 429.6 kB / 0.528 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.3668, allocations: 211.2 kB / 0.5282 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.3668, allocations: 7.766 kB / 0.5282 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.3669, allocations: 41.53 kB / 0.5282 GB, free: 7.672 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.3669, allocations: 0 / 0.5282 GB, free: 7.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001814/0.3687, allocations: 0.7628 MB / 0.529 GB, free: 7.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/0.3688, allocations: 107.5 kB / 0.5291 GB, free: 7.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.3691, allocations: 323.8 kB / 0.5294 GB, free: 7.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.3692, allocations: 31.2 kB / 0.5294 GB, free: 7.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.3694, allocations: 259.7 kB / 0.5297 GB, free: 6.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3695, allocations: 124.9 kB / 0.5298 GB, free: 6.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3696, allocations: 80.19 kB / 0.5299 GB, free: 6.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3698, allocations: 355.5 kB / 0.5302 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.37, allocations: 124 kB / 0.5303 GB, free: 6.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.3703, allocations: 278.6 kB / 0.5306 GB, free: 6.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.3709, allocations: 460.3 kB / 0.531 GB, free: 5.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3709, allocations: 2.625 kB / 0.531 GB, free: 5.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000912/0.3719, allocations: 0.563 MB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3719, allocations: 7.375 kB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3719, allocations: 8.875 kB / 0.5316 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.3723, allocations: 118.3 kB / 0.5317 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.3725, allocations: 74.61 kB / 0.5318 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.3753, allocations: 2.566 MB / 0.5343 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.3756, allocations: 41.25 kB / 0.5343 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.3756, allocations: 19.53 kB / 0.5344 GB, free: 3.391 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.0002592/0.3759, allocations: 199 kB / 0.5345 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.376, allocations: 38.62 kB / 0.5346 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.481e-05/0.3761, allocations: 49.94 kB / 0.5346 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.3761, allocations: 7.844 kB / 0.5346 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.3761, allocations: 8.062 kB / 0.5346 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3761, allocations: 2.016 kB / 0.5346 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.3775, allocations: 0.9433 MB / 0.5356 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3775, allocations: 10.34 kB / 0.5356 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.3777, allocations: 35.33 kB / 0.5356 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.378, allocations: 104 kB / 0.5357 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.378, allocations: 6.781 kB / 0.5357 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/0.3806, allocations: 2.56 MB / 0.5382 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.3807, allocations: 5.156 kB / 0.5382 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008139/0.3815, allocations: 0.6326 MB / 0.5388 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.3816, allocations: 117.3 kB / 0.539 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.3817, allocations: 11.41 kB / 0.539 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.3818, allocations: 6.281 kB / 0.539 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.3819, allocations: 23.25 kB / 0.539 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.3819, allocations: 15.25 kB / 0.539 GB, free: 15.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.3822, allocations: 220.7 kB / 0.5392 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3822, allocations: 0 / 0.5392 GB, free: 15.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000723/0.3829, allocations: 164.1 kB / 0.5394 GB, free: 15.46 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.001094/0.384, allocations: 1.16 MB / 0.5405 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008884/0.3849, allocations: 0.5247 MB / 0.541 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3849, allocations: 1.312 kB / 0.541 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004821/0.3854, allocations: 352.9 kB / 0.5414 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.386, allocations: 62.16 kB / 0.5414 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/0.391, allocations: 3.999 MB / 0.5453 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005494/0.3916, allocations: 0.8883 MB / 0.5462 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.3918, allocations: 65.41 kB / 0.5463 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.3919, allocations: 114.5 kB / 0.5464 GB, free: 10 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3919, allocations: 0 / 0.5464 GB, free: 10 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.4259, allocations: 7.668 MB / 0.5538 GB, free: 4.047 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.97, allocations: 7.922 kB / 0.5539 GB, free: 4.039 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