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.001552/0.001552, allocations: 111.2 kB / 17.06 MB, free: 5.996 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.001701/0.001701, allocations: 197.3 kB / 18 MB, free: 5.074 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.503/1.503, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2332/0.2332, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002558/0.002558, allocations: 67.89 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4682/0.4708, allocations: 58.05 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.009038/0.4799, allocations: 7.562 MB / 0.511 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006024/0.486, allocations: 4.159 MB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007604/0.4868, allocations: 16.72 kB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00298/0.4898, allocations: 1.025 MB / 0.5161 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004236/0.4941, allocations: 1.098 MB / 0.5172 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.4957, allocations: 305.6 kB / 0.5175 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.4991, allocations: 1.368 MB / 0.5188 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001078/0.5002, allocations: 462 kB / 0.5192 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.5021, allocations: 0.5614 MB / 0.5198 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.5034, allocations: 0.5799 MB / 0.5204 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.908e-05/0.5035, allocations: 35.56 kB / 0.5204 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.5061, allocations: 0.9894 MB / 0.5214 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006861/0.5068, allocations: 275 kB / 0.5216 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004755/0.5073, allocations: 243.2 kB / 0.5219 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002941/0.5102, allocations: 0.8151 MB / 0.5226 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.33e-05/0.5102, allocations: 9.094 kB / 0.5227 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5103, allocations: 0 / 0.5227 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.5103, 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.001719/0.512, allocations: 0.8178 MB / 0.5235 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.5121, allocations: 12.88 kB / 0.5235 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.5122, allocations: 83.25 kB / 0.5235 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/0.5139, allocations: 133.1 kB / 0.5237 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006431/0.5146, allocations: 338.8 kB / 0.524 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/0.5146, allocations: 34.28 kB / 0.524 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.615e-05/0.5147, allocations: 41.09 kB / 0.5241 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009576/0.5157, allocations: 0.592 MB / 0.5246 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.5157, allocations: 1.375 kB / 0.5247 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.5157, allocations: 17.48 kB / 0.5247 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.356e-05/0.5158, allocations: 36.77 kB / 0.5247 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006184/0.5164, allocations: 389 kB / 0.5251 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.5194, allocations: 2.593 MB / 0.5276 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000734/0.5202, allocations: 421.2 kB / 0.528 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003166/0.5205, allocations: 208.6 kB / 0.5282 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.5205, allocations: 12.64 kB / 0.5282 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.5206, allocations: 41.27 kB / 0.5283 GB, free: 7.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.5206, allocations: 0 / 0.5283 GB, free: 7.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001938/0.5225, allocations: 0.7619 MB / 0.529 GB, free: 7.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.889e-05/0.5226, allocations: 107.7 kB / 0.5291 GB, free: 7.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/0.523, allocations: 321.5 kB / 0.5294 GB, free: 7.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.5231, allocations: 39.05 kB / 0.5294 GB, free: 6.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.5233, allocations: 255.3 kB / 0.5297 GB, free: 6.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.5234, allocations: 115.4 kB / 0.5298 GB, free: 6.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.5236, allocations: 84.72 kB / 0.5299 GB, free: 6.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.5238, allocations: 347.6 kB / 0.5302 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.524, allocations: 128.2 kB / 0.5303 GB, free: 6.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.5244, allocations: 282.9 kB / 0.5306 GB, free: 6.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.525, allocations: 452.4 kB / 0.531 GB, free: 5.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.525, allocations: 2.062 kB / 0.531 GB, free: 5.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009839/0.526, allocations: 0.5635 MB / 0.5316 GB, free: 5.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.526, allocations: 10.67 kB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.5261, allocations: 5.469 kB / 0.5316 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003753/0.5264, allocations: 113 kB / 0.5317 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.5267, allocations: 78.86 kB / 0.5318 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00355/0.5303, allocations: 2.579 MB / 0.5343 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.5307, allocations: 40.55 kB / 0.5343 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.615e-05/0.5307, allocations: 20.09 kB / 0.5344 GB, free: 3.379 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.0003871/0.5311, allocations: 195.7 kB / 0.5346 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.5312, allocations: 36.39 kB / 0.5346 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.5314, allocations: 51.73 kB / 0.5346 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5314, allocations: 7.781 kB / 0.5346 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.292e-05/0.5314, allocations: 7.109 kB / 0.5346 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.5314, allocations: 2.719 kB / 0.5347 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.5332, allocations: 0.9524 MB / 0.5356 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.5332, allocations: 0.9688 kB / 0.5356 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.5334, allocations: 39.67 kB / 0.5356 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/0.5337, allocations: 106.3 kB / 0.5357 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.5338, allocations: 6.094 kB / 0.5357 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002936/0.5367, allocations: 2.558 MB / 0.5382 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.5367, allocations: 1.188 kB / 0.5382 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009302/0.5377, allocations: 0.6327 MB / 0.5388 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.5378, allocations: 113.9 kB / 0.539 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.5379, allocations: 10.41 kB / 0.539 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.5381, allocations: 6.781 kB / 0.539 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.5381, allocations: 26.31 kB / 0.539 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.5382, allocations: 12.09 kB / 0.539 GB, free: 15.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002898/0.5385, allocations: 224.2 kB / 0.5392 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5385, allocations: 3.938 kB / 0.5392 GB, free: 15.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008262/0.5393, allocations: 164.6 kB / 0.5394 GB, free: 15.45 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.001248/0.5406, allocations: 1.16 MB / 0.5405 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.5417, allocations: 0.5231 MB / 0.541 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5417, allocations: 3.938 kB / 0.541 GB, free: 14.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005433/0.5422, allocations: 348.9 kB / 0.5414 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.5429, allocations: 59.44 kB / 0.5414 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.5488, allocations: 4.002 MB / 0.5453 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/0.5495, allocations: 0.8797 MB / 0.5462 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.5497, allocations: 72.95 kB / 0.5463 GB, free: 10.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.5499, allocations: 115.2 kB / 0.5464 GB, free: 9.984 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5499, allocations: 0 / 0.5464 GB, free: 9.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04509/0.595, allocations: 7.67 MB / 0.5539 GB, free: 4.078 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.79, allocations: 14.3 kB / 0.5539 GB, free: 4.07 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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