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.001182/0.001182, allocations: 110.3 kB / 17.06 MB, free: 6.004 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.001217/0.001217, allocations: 198.9 kB / 18 MB, free: 5.082 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.382/1.382, 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.1859/0.1859, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.88 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3715, allocations: 58.06 MB / 0.5036 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.006927/0.3785, allocations: 7.56 MB / 0.511 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005637/0.3841, allocations: 4.165 MB / 0.5151 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007501/0.3849, allocations: 12.41 kB / 0.5151 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003138/0.3881, allocations: 1.025 MB / 0.5161 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003481/0.3916, allocations: 1.102 MB / 0.5172 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.3928, allocations: 312.4 kB / 0.5175 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002797/0.3956, allocations: 1.365 MB / 0.5188 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.3968, allocations: 456.2 kB / 0.5192 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.3984, allocations: 0.5661 MB / 0.5198 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.3997, allocations: 0.5789 MB / 0.5203 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001599/0.3999, allocations: 35.5 kB / 0.5204 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002635/0.4025, allocations: 0.9945 MB / 0.5214 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005987/0.4032, allocations: 268.8 kB / 0.5216 GB, free: 12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006713/0.4038, allocations: 248.9 kB / 0.5218 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002154/0.406, allocations: 0.8203 MB / 0.5226 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.852e-06/0.406, allocations: 0.6094 kB / 0.5226 GB, free: 11.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.406, allocations: 0 / 0.5226 GB, free: 11.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.4061, allocations: 0 / 0.5226 GB, free: 11.57 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.001952/0.408, allocations: 0.7984 MB / 0.5234 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.4081, allocations: 14.3 kB / 0.5234 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.4082, allocations: 86.8 kB / 0.5235 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001742/0.41, allocations: 127.7 kB / 0.5236 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.4106, allocations: 330.7 kB / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.4106, allocations: 34.53 kB / 0.524 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-05/0.4107, allocations: 38.11 kB / 0.524 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009444/0.4117, allocations: 0.5897 MB / 0.5246 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.4117, allocations: 6.688 kB / 0.5246 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.248e-05/0.4117, allocations: 16.88 kB / 0.5246 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.456e-05/0.4118, allocations: 36.81 kB / 0.5247 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006529/0.4125, allocations: 384.9 kB / 0.525 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002837/0.4153, allocations: 2.592 MB / 0.5276 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007166/0.4161, allocations: 433.5 kB / 0.528 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.4164, allocations: 204.5 kB / 0.5282 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.4164, allocations: 11.42 kB / 0.5282 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.4165, allocations: 38.05 kB / 0.5282 GB, free: 7.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.4165, allocations: 0 / 0.5282 GB, free: 7.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001773/0.4182, allocations: 0.7627 MB / 0.529 GB, free: 7.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.4183, allocations: 106.6 kB / 0.5291 GB, free: 7.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.4187, allocations: 328.4 kB / 0.5294 GB, free: 6.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.4187, allocations: 36.89 kB / 0.5294 GB, free: 6.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.4189, allocations: 249.6 kB / 0.5297 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.4191, allocations: 116.1 kB / 0.5298 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.4192, allocations: 80.55 kB / 0.5298 GB, free: 6.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4194, allocations: 351.5 kB / 0.5302 GB, free: 6.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.4196, allocations: 129.4 kB / 0.5303 GB, free: 6.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.42, allocations: 273.1 kB / 0.5306 GB, free: 5.953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006457/0.4206, allocations: 468.3 kB / 0.531 GB, free: 5.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4206, allocations: 3.078 kB / 0.531 GB, free: 5.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001029/0.4217, allocations: 0.5586 MB / 0.5316 GB, free: 5.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.4217, allocations: 10.81 kB / 0.5316 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.4217, allocations: 5.375 kB / 0.5316 GB, free: 5.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003778/0.4221, allocations: 118 kB / 0.5317 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.4224, allocations: 78.25 kB / 0.5318 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/0.4256, allocations: 2.562 MB / 0.5343 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.426, allocations: 44.25 kB / 0.5343 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.426, allocations: 16.72 kB / 0.5343 GB, free: 3.305 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.0003177/0.4263, allocations: 201.7 kB / 0.5345 GB, free: 3.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.4264, allocations: 38.16 kB / 0.5345 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.4265, allocations: 51.23 kB / 0.5346 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4266, allocations: 7.656 kB / 0.5346 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/0.4266, allocations: 8.375 kB / 0.5346 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4266, allocations: 1.172 kB / 0.5346 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.4283, allocations: 0.9512 MB / 0.5355 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4283, allocations: 2.781 kB / 0.5355 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.4284, allocations: 31.23 kB / 0.5356 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/0.4287, allocations: 107.8 kB / 0.5357 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.4287, allocations: 6.125 kB / 0.5357 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003238/0.432, allocations: 2.549 MB / 0.5382 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/0.432, allocations: 10.2 kB / 0.5382 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.4332, allocations: 0.6285 MB / 0.5388 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.4334, allocations: 124.6 kB / 0.5389 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.556e-05/0.4334, allocations: 11.12 kB / 0.5389 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.4337, allocations: 6.125 kB / 0.5389 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.4337, allocations: 28.03 kB / 0.539 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.4337, allocations: 11.06 kB / 0.539 GB, free: 15.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.434, allocations: 223.9 kB / 0.5392 GB, free: 15.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.434, allocations: 0 / 0.5392 GB, free: 15.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001007/0.435, allocations: 153.5 kB / 0.5393 GB, free: 15.38 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.001229/0.4363, allocations: 1.159 MB / 0.5405 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.4374, allocations: 0.5252 MB / 0.541 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4374, allocations: 1.156 kB / 0.541 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005363/0.438, allocations: 344.3 kB / 0.5413 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006216/0.4386, allocations: 56.28 kB / 0.5414 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.4444, allocations: 3.985 MB / 0.5452 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006498/0.4451, allocations: 0.887 MB / 0.5461 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.4453, allocations: 66.78 kB / 0.5462 GB, free: 10.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.4455, allocations: 114.5 kB / 0.5463 GB, free: 9.945 MB / 414.1 MB Notification: Performance of SimCode: time 3.136e-06/0.4455, allocations: 0 / 0.5463 GB, free: 9.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03747/0.483, allocations: 7.769 MB / 0.5539 GB, free: 3.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.695/10.18, allocations: 22.19 kB / 0.5539 GB, free: 3.918 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