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.001163/0.001163, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001083/0.001083, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.305/1.305, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1671/0.1671, allocations: 38.04 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 64.95 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1038, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.009608/0.1134, allocations: 7.41 MB / 464.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005991/0.1195, allocations: 4.389 MB / 468.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.12, allocations: 15.94 kB / 468.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.1227, allocations: 1.042 MB / 469.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003169/0.1259, allocations: 1.195 MB / 471 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009155/0.1269, allocations: 327.1 kB / 471.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.1288, allocations: 1.406 MB / 472.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.1299, allocations: 0.6611 MB / 473.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009882/0.1309, allocations: 0.6108 MB / 474 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.1322, allocations: 0.6775 MB / 474.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.1324, allocations: 68 kB / 474.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.1349, allocations: 1.329 MB / 476.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005569/0.1355, allocations: 482.8 kB / 476.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000927/0.1364, allocations: 434 kB / 477 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003389/0.1398, allocations: 1.449 MB / 478.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.1399, allocations: 0 / 478.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1399, allocations: 0 / 478.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.731e-05/0.1399, allocations: 4 kB / 478.4 MB, free: 2.418 MB / 350.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.002179/0.1421, allocations: 1.124 MB / 479.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.1422, allocations: 11.89 kB / 479.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002365/0.1424, allocations: 135.2 kB / 479.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003262/0.1457, allocations: 383.4 kB / 480.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/0.1466, allocations: 478.6 kB / 480.6 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.1467, allocations: 54.36 kB / 480.6 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001988/0.1469, allocations: 72.31 kB / 480.7 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/0.1489, allocations: 1.176 MB / 481.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.1489, allocations: 11.89 kB / 481.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.149, allocations: 27.98 kB / 481.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.775e-05/0.1492, allocations: 77.84 kB / 482 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.1511, allocations: 1.245 MB / 483.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005361/0.1564, allocations: 3.507 MB / 486.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.1581, allocations: 1.07 MB / 487.8 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008713/0.159, allocations: 0.6566 MB / 488.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.259e-05/0.159, allocations: 20.97 kB / 488.5 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1591, allocations: 43.56 kB / 488.5 MB, free: 8.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.296e-06/0.1591, allocations: 0 / 488.5 MB, free: 8.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006241/0.1653, allocations: 3.083 MB / 491.6 MB, free: 4.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.1654, allocations: 90.23 kB / 491.7 MB, free: 4.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.1658, allocations: 369.5 kB / 492 MB, free: 4.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.426e-05/0.1659, allocations: 37.7 kB / 492.1 MB, free: 4.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.1661, allocations: 316.1 kB / 492.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.1664, allocations: 307.5 kB / 492.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.1666, allocations: 158.5 kB / 492.8 MB, free: 3.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1668, allocations: 370.8 kB / 493.2 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/0.1674, allocations: 465.7 kB / 493.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000738/0.1682, allocations: 0.5773 MB / 494.2 MB, free: 2.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.1696, allocations: 1.105 MB / 495.3 MB, free: 1.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1696, allocations: 4 kB / 495.3 MB, free: 1.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002416/0.1721, allocations: 1.481 MB / 496.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1721, allocations: 4 kB / 496.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1721, allocations: 4 kB / 496.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009355/0.1731, allocations: 334.4 kB / 497.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007135/0.1738, allocations: 183.7 kB / 497.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005318/0.1791, allocations: 4.191 MB / 0.4898 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005286/0.1797, allocations: 43.95 kB / 0.4898 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.1798, allocations: 35.98 kB / 0.4899 GB, free: 10.68 MB / 382.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.0004424/0.1802, allocations: 293.7 kB / 0.4901 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.1804, allocations: 59.33 kB / 0.4902 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/0.183, allocations: 1.563 MB / 0.4917 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.183, allocations: 12 kB / 0.4917 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.183, allocations: 4 kB / 0.4917 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.1831, allocations: 7.922 kB / 0.4917 GB, free: 8.723 MB / 382.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.00478/0.1878, allocations: 3.044 MB / 0.4947 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.1879, allocations: 8 kB / 0.4947 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/0.1885, allocations: 163.8 kB / 0.4949 GB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007537/0.1892, allocations: 296.9 kB / 0.4952 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.1893, allocations: 24 kB / 0.4952 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004746/0.1941, allocations: 3.898 MB / 0.499 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/0.1941, allocations: 11.88 kB / 0.499 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1573/0.3514, allocations: 1.595 MB / 0.5006 GB, free: 55.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.3517, allocations: 145.1 kB / 0.5007 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3518, allocations: 25.86 kB / 0.5007 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.3522, allocations: 40.08 kB / 0.5008 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.3524, allocations: 82.98 kB / 0.5008 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-05/0.3525, allocations: 36.38 kB / 0.5009 GB, free: 55.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002813/0.3528, allocations: 257.2 kB / 0.5011 GB, free: 55.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3528, allocations: 1.312 kB / 0.5011 GB, free: 55.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009006/0.3537, allocations: 307.2 kB / 0.5014 GB, free: 55.22 MB / 382.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.002323/0.356, allocations: 2.16 MB / 0.5035 GB, free: 54.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.3585, allocations: 1.678 MB / 0.5052 GB, free: 54.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3585, allocations: 1.094 kB / 0.5052 GB, free: 54.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.3596, allocations: 0.842 MB / 0.506 GB, free: 53.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007121/0.3604, allocations: 104.7 kB / 0.5061 GB, free: 53.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009923/0.3703, allocations: 7.604 MB / 0.5135 GB, free: 50.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.3709, allocations: 1.068 MB / 0.5146 GB, free: 49.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004542/0.3714, allocations: 180.2 kB / 0.5147 GB, free: 49.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.3717, allocations: 265.2 kB / 0.515 GB, free: 49.08 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3717, allocations: 0 / 0.515 GB, free: 49.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.113/0.4847, allocations: 16.21 MB / 0.5308 GB, free: 40.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.406/9.891, allocations: 8.922 kB / 0.5308 GB, free: 40.11 MB / 382.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