Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.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.AC3ph.Precalculation.Z_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") translateModel(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|zr_d.1.|zr_d.2.|zr_d.3.|zr_q.1.|zr_q.2.|zr_q.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 106.6 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.001526/0.001526, 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.302/1.302, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.05 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.98 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09454, allocations: 58.05 MB / 456.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2): time 0.00324/0.09782, allocations: 2.046 MB / 458.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006862/0.09853, allocations: 0.5259 MB / 459.4 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.555e-05/0.09858, allocations: 7.938 kB / 459.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.0987, allocations: 7.922 kB / 459.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.73e-05/0.0988, allocations: 23.89 kB / 459.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.09909, allocations: 67.78 kB / 459.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.675e-05/0.0992, allocations: 59.78 kB / 459.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.09925, allocations: 7.984 kB / 459.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.264e-05/0.09933, allocations: 27.84 kB / 459.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.447e-05/0.09938, allocations: 27.91 kB / 459.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.828e-06/0.0994, allocations: 4 kB / 459.7 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001582/0.09956, allocations: 71.84 kB / 459.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.178e-05/0.09962, allocations: 27.92 kB / 459.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.09967, allocations: 35.67 kB / 459.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.09986, allocations: 131.8 kB / 459.9 MB, free: 4.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.09988, allocations: 7.938 kB / 459.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.09989, allocations: 0 / 459.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.0999, allocations: 3.938 kB / 459.9 MB, free: 4.98 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004046/0.1003, allocations: 424.8 kB / 460.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.1003, allocations: 8.031 kB / 460.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.1004, allocations: 16.75 kB / 460.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.1006, allocations: 184.2 kB / 460.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1006, allocations: 4.375 kB / 460.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.1006, allocations: 4.125 kB / 460.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.1007, allocations: 89.61 kB / 460.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.1008, allocations: 0 / 460.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.1008, allocations: 0 / 460.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1008, allocations: 4 kB / 460.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.609e-05/0.1009, allocations: 55.97 kB / 460.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.101, allocations: 185.5 kB / 460.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.1011, allocations: 94.56 kB / 461 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.514e-05/0.1012, allocations: 95.64 kB / 461.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-06/0.1012, allocations: 0 / 461.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.1013, allocations: 34.5 kB / 461.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.012e-06/0.1013, allocations: 0 / 461.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003471/0.1016, allocations: 307.4 kB / 461.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.1017, allocations: 101.1 kB / 461.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1018, allocations: 136.8 kB / 461.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1018, allocations: 29.64 kB / 461.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.225e-05/0.1019, allocations: 92.58 kB / 461.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.1019, allocations: 78.8 kB / 461.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.102, allocations: 25.7 kB / 461.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.1021, allocations: 326.8 kB / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.16e-05/0.1021, allocations: 51.98 kB / 462.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.257e-05/0.1022, allocations: 63.97 kB / 462.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.1024, allocations: 246.4 kB / 462.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1024, allocations: 0 / 462.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000225/0.1026, allocations: 230.6 kB / 462.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.418e-05/0.1027, allocations: 61.67 kB / 462.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1027, allocations: 3.984 kB / 462.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.1027, allocations: 0 / 462.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.1027, allocations: 4 kB / 462.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.1027, allocations: 0 / 462.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.649e-05/0.1028, allocations: 15.84 kB / 462.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.1028, allocations: 8.062 kB / 462.9 MB, free: 1.805 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001329/0.1029, allocations: 191.4 kB / 463 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.103, allocations: 15.81 kB / 463.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.555e-05/0.103, allocations: 17.12 kB / 463.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.103, allocations: 0 / 463.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.103, allocations: 0 / 463.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-06/0.103, allocations: 3.938 kB / 463.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.1031, allocations: 205.4 kB / 463.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1032, allocations: 0 / 463.3 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.1032, allocations: 4 kB / 463.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1032, allocations: 0 / 463.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.1032, allocations: 8 kB / 463.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1032, allocations: 0 / 463.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1032, allocations: 0 / 463.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.1037, allocations: 0.5022 MB / 463.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.1037, allocations: 88.95 kB / 463.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.1038, allocations: 4 kB / 463.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.63e-05/0.1038, allocations: 8.031 kB / 463.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/0.1038, allocations: 11.98 kB / 463.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1038, allocations: 4 kB / 463.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.84e-05/0.1039, allocations: 103.2 kB / 464 MB, free: 0.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1039, allocations: 0 / 464 MB, free: 0.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.1042, allocations: 44 kB / 464.1 MB, free: 0.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.000156/0.1043, allocations: 119.2 kB / 464.2 MB, free: 384 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006171/0.1049, allocations: 0.7024 MB / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.105, allocations: 4.062 kB / 464.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004182/0.1054, allocations: 0.5694 MB / 465.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002236/0.1056, allocations: 22.44 kB / 465.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.1062, allocations: 432 kB / 465.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1064, allocations: 0.7238 MB / 466.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.086e-05/0.1065, allocations: 3.938 kB / 466.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.065e-05/0.1065, allocations: 11.44 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1065, allocations: 0 / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of Templates: time 0.004253/0.1108, allocations: 1.905 MB / 468.5 MB, free: 11.95 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches