Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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: translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006748/0.0006749, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0007175/0.0007175, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.178/1.178, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1548/0.1548, allocations: 38.09 MB / 330.8 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 16 kB / 400.7 MB, free: 34.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08706/0.08733, allocations: 59.17 MB / 459.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.00652/0.09391, allocations: 6.476 MB / 466.4 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.09642, allocations: 1.527 MB / 467.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004234/0.09686, allocations: 47.69 kB / 467.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.09707, allocations: 55.53 kB / 468 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006027/0.09768, allocations: 282.6 kB / 468.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.09797, allocations: 119.9 kB / 468.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007857/0.09877, allocations: 0.9541 MB / 469.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.09904, allocations: 148.2 kB / 469.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003377/0.09938, allocations: 258.7 kB / 469.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004453/0.09984, allocations: 326.8 kB / 470.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.111e-05/0.09989, allocations: 16 kB / 470.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.101e-05/0.09995, allocations: 20 kB / 470.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1001, allocations: 139.5 kB / 470.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.1003, allocations: 260.3 kB / 470.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1006, allocations: 458.2 kB / 470.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1007, allocations: 0 / 470.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1007, allocations: 4 kB / 470.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1007, allocations: 0 / 470.9 MB, free: 11.98 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001029/0.1017, allocations: 0.7152 MB / 471.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1018, allocations: 8.031 kB / 471.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.383e-05/0.1018, allocations: 56.28 kB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005035/0.1024, allocations: 436.2 kB / 472.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.1024, allocations: 29 kB / 472.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/0.1025, allocations: 39.91 kB / 472.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005693/0.103, allocations: 459.6 kB / 472.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1031, allocations: 3.938 kB / 472.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.1031, allocations: 12 kB / 472.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.1031, allocations: 8 kB / 472.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.1035, allocations: 308.7 kB / 473 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1053, allocations: 1.771 MB / 474.7 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.1055, allocations: 143.6 kB / 474.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.497e-05/0.1056, allocations: 62.67 kB / 475 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.1056, allocations: 4 kB / 475 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.1056, allocations: 42.48 kB / 475 MB, free: 7.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.532e-06/0.1056, allocations: 0 / 475 MB, free: 7.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008599/0.1065, allocations: 0.5999 MB / 475.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1066, allocations: 106.8 kB / 475.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.1069, allocations: 377.5 kB / 476.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1069, allocations: 25.7 kB / 476.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.1071, allocations: 283.3 kB / 476.4 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.357e-05/0.1072, allocations: 55.28 kB / 476.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.1072, allocations: 33.7 kB / 476.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1074, allocations: 350.8 kB / 476.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.019e-05/0.1074, allocations: 47.97 kB / 476.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.1076, allocations: 194.5 kB / 477 MB, free: 5.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.1079, allocations: 266.6 kB / 477.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1079, allocations: 4 kB / 477.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003702/0.1083, allocations: 285.6 kB / 477.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1083, allocations: 12.12 kB / 477.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1083, allocations: 4.156 kB / 477.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1083, allocations: 8 kB / 477.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.1085, allocations: 67.91 kB / 477.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/0.1086, allocations: 15.92 kB / 477.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.1087, allocations: 15.91 kB / 477.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.1088, allocations: 15.94 kB / 477.7 MB, free: 4.66 MB / 350.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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.1089, allocations: 181.6 kB / 477.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.376e-05/0.109, allocations: 43.53 kB / 477.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002572/0.1092, allocations: 172.7 kB / 478.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1093, allocations: 0 / 478.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1093, allocations: 0 / 478.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1093, allocations: 4 kB / 478.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005636/0.1098, allocations: 0.5265 MB / 478.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1099, allocations: 0 / 478.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.11, allocations: 39.92 kB / 478.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.11, allocations: 8.016 kB / 478.7 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1101, allocations: 4 kB / 478.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1101, allocations: 3.938 kB / 478.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1101, allocations: 7.938 kB / 478.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.1104, allocations: 403.9 kB / 479.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.1105, allocations: 112.6 kB / 479.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.1106, allocations: 8.438 kB / 479.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.1107, allocations: 7.938 kB / 479.2 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.1107, allocations: 15.92 kB / 479.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.1108, allocations: 8 kB / 479.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.111, allocations: 255.2 kB / 479.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.111, allocations: 0 / 479.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.1114, allocations: 68 kB / 479.6 MB, free: 2.703 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.944e-05/0.1115, allocations: 107.2 kB / 479.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002316/0.1117, allocations: 155.6 kB / 479.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1117, allocations: 1.25 kB / 479.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.971e-05/0.1118, allocations: 59.86 kB / 479.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006433/0.1124, allocations: 89.84 kB / 480 MB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.1137, allocations: 1.093 MB / 481.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.1141, allocations: 0.8389 MB / 481.9 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001573/0.1142, allocations: 51.23 kB / 481.9 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.1143, allocations: 27.44 kB / 482 MB, free: 224 kB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1143, allocations: 4 kB / 482 MB, free: 220 kB / 350.1 MB Notification: Performance of Templates: time 0.005968/0.1203, allocations: 3.062 MB / 485 MB, free: 13.2 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches