Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.001273/0.001273, allocations: 114.5 kB / 17.07 MB, free: 6.016 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.001236/0.001236, allocations: 189.4 kB / 18 MB, free: 5.098 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.4/1.4, 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.1827/0.1827, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001989/0.00199, allocations: 63.89 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3257, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.006592/0.3323, allocations: 7.421 MB / 0.5109 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005239/0.3376, allocations: 4.388 MB / 0.5152 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004299/0.3381, allocations: 16.97 kB / 0.5152 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.3408, allocations: 1.034 MB / 0.5162 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002925/0.3437, allocations: 1.2 MB / 0.5174 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009367/0.3446, allocations: 319.1 kB / 0.5177 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001819/0.3465, allocations: 1.409 MB / 0.519 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.3477, allocations: 0.6594 MB / 0.5197 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009924/0.3487, allocations: 0.6106 MB / 0.5203 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000878/0.3496, allocations: 0.6842 MB / 0.521 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.3497, allocations: 68.22 kB / 0.521 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0025/0.3522, allocations: 1.325 MB / 0.5223 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005672/0.3528, allocations: 480.2 kB / 0.5228 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005666/0.3534, allocations: 438.3 kB / 0.5232 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002431/0.3558, allocations: 1.461 MB / 0.5246 GB, free: 10.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3558, allocations: 3.938 kB / 0.5246 GB, free: 10.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3558, allocations: 1.375 kB / 0.5246 GB, free: 10.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.3559, allocations: 0 / 0.5246 GB, free: 10.95 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00194/0.3578, allocations: 1.149 MB / 0.5257 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3579, allocations: 13.02 kB / 0.5258 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.358, allocations: 133.3 kB / 0.5259 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003168/0.3612, allocations: 394.8 kB / 0.5263 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008374/0.3621, allocations: 489.9 kB / 0.5267 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.3621, allocations: 55.14 kB / 0.5268 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.3623, allocations: 78.38 kB / 0.5269 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002037/0.3643, allocations: 1.17 MB / 0.528 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.3644, allocations: 9.734 kB / 0.528 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.3645, allocations: 31.7 kB / 0.528 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001044/0.3646, allocations: 69.09 kB / 0.5281 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.3666, allocations: 1.241 MB / 0.5293 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00614/0.3727, allocations: 3.494 MB / 0.5327 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.3744, allocations: 1.063 MB / 0.5338 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009517/0.3754, allocations: 0.6548 MB / 0.5344 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.928e-05/0.3755, allocations: 24.22 kB / 0.5344 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.3755, allocations: 38.22 kB / 0.5345 GB, free: 5.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 3.506e-06/0.3755, allocations: 9.312 kB / 0.5345 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.006912/0.3824, allocations: 3.113 MB / 0.5375 GB, free: 3.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.3825, allocations: 90.45 kB / 0.5376 GB, free: 3.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.383, allocations: 359.8 kB / 0.5379 GB, free: 3.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.3831, allocations: 36.05 kB / 0.538 GB, free: 3.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.3833, allocations: 323.3 kB / 0.5383 GB, free: 3.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/0.3837, allocations: 329.7 kB / 0.5386 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/0.384, allocations: 164.3 kB / 0.5388 GB, free: 2.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.3842, allocations: 365.9 kB / 0.5391 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007127/0.3849, allocations: 470.3 kB / 0.5396 GB, free: 2.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008192/0.3857, allocations: 0.5698 MB / 0.5401 GB, free: 1.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.3874, allocations: 1.113 MB / 0.5412 GB, free: 1.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3874, allocations: 1.062 kB / 0.5412 GB, free: 1.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002693/0.3901, allocations: 1.48 MB / 0.5426 GB, free: 336 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3901, allocations: 7.938 kB / 0.5426 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3901, allocations: 4 kB / 0.5427 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.3912, allocations: 338.5 kB / 0.543 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007555/0.3919, allocations: 179.7 kB / 0.5431 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/0.3978, allocations: 4.194 MB / 0.5472 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/0.3984, allocations: 47.94 kB / 0.5473 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-05/0.3985, allocations: 35.98 kB / 0.5473 GB, free: 11.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (80): * Single equations (assignments): 79 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005022/0.399, allocations: 297.6 kB / 0.5476 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.3991, allocations: 59.62 kB / 0.5477 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/0.402, allocations: 1.567 MB / 0.5492 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.402, allocations: 11.94 kB / 0.5492 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.402, allocations: 12 kB / 0.5492 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.402, allocations: 3.984 kB / 0.5492 GB, free: 9.395 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005258/0.4073, allocations: 3.024 MB / 0.5522 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.4073, allocations: 4 kB / 0.5522 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000679/0.408, allocations: 167.8 kB / 0.5523 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008498/0.4089, allocations: 284.7 kB / 0.5526 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/0.4089, allocations: 27.94 kB / 0.5526 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005368/0.4143, allocations: 3.917 MB / 0.5565 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.4143, allocations: 7.938 kB / 0.5565 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002612/0.417, allocations: 1.594 MB / 0.558 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.4172, allocations: 152.6 kB / 0.5582 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.4173, allocations: 31.94 kB / 0.5582 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.4178, allocations: 35.97 kB / 0.5582 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.4179, allocations: 88.81 kB / 0.5583 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.883e-05/0.418, allocations: 39.92 kB / 0.5584 GB, free: 15.67 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003162/0.4184, allocations: 255.2 kB / 0.5586 GB, free: 15.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4184, allocations: 0 / 0.5586 GB, free: 15.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00113/0.4195, allocations: 304 kB / 0.5589 GB, free: 15.13 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (82): * Single equations (assignments): 80 * 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 {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002921/0.4224, allocations: 2.163 MB / 0.561 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.4248, allocations: 1.413 MB / 0.5624 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.4248, allocations: 64 / 0.5624 GB, free: 11.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.4262, allocations: 0.8402 MB / 0.5632 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007744/0.427, allocations: 104.7 kB / 0.5633 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.4385, allocations: 7.556 MB / 0.5707 GB, free: 2.715 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008991/0.4394, allocations: 1.072 MB / 0.5717 GB, free: 1.617 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.44, allocations: 184.6 kB / 0.5719 GB, free: 1.438 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004688/0.4405, allocations: 259.3 kB / 0.5722 GB, free: 1.184 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4405, allocations: 0 / 0.5722 GB, free: 1.184 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04798/0.4885, allocations: 16.52 MB / 0.5883 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.63, allocations: 7.594 kB / 0.5883 GB, free: 0.7773 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches