Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00172/0.00172, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001414/0.001414, allocations: 107.5 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1803/0.1803, allocations: 38 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 55.92 kB / 421.9 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3564, allocations: 55.23 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.008098/0.3646, allocations: 5.44 MB / 482.5 MB, free: 6.086 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.3673, allocations: 1.723 MB / 484.3 MB, free: 4.852 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002849/0.3676, allocations: 30.81 kB / 484.3 MB, free: 4.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004052/0.368, allocations: 102.3 kB / 484.4 MB, free: 4.785 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006501/0.3687, allocations: 233.5 kB / 484.6 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.369, allocations: 119.6 kB / 484.7 MB, free: 4.578 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.3701, allocations: 0.7193 MB / 485.5 MB, free: 4.297 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005207/0.3706, allocations: 335 kB / 485.8 MB, free: 4.156 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.3709, allocations: 208.6 kB / 486 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003944/0.3713, allocations: 236.5 kB / 486.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.099e-05/0.3714, allocations: 26.12 kB / 486.2 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.509e-05/0.3715, allocations: 30.06 kB / 486.3 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.3716, allocations: 105.6 kB / 486.4 MB, free: 3.918 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002403/0.3719, allocations: 215.2 kB / 486.6 MB, free: 3.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006147/0.3725, allocations: 497.7 kB / 487.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3725, allocations: 1.188 kB / 487.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.3725, allocations: 0 / 487.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3725, allocations: 0 / 487.1 MB, free: 3.598 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00139/0.3739, allocations: 0.7085 MB / 487.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.374, allocations: 10.33 kB / 487.8 MB, free: 3.043 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.3741, allocations: 45.91 kB / 487.8 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00066/0.3748, allocations: 391.1 kB / 488.2 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-05/0.3749, allocations: 61.02 kB / 488.3 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.192e-05/0.375, allocations: 40.11 kB / 488.3 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007765/0.3757, allocations: 435.4 kB / 488.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.3758, allocations: 1.938 kB / 488.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.3758, allocations: 16.06 kB / 488.8 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.3758, allocations: 9.625 kB / 488.8 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005287/0.3764, allocations: 282.9 kB / 489 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.3784, allocations: 1.846 MB / 490.9 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.3787, allocations: 177.9 kB / 491.1 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.3789, allocations: 76.64 kB / 491.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.3789, allocations: 2.312 kB / 491.1 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.379, allocations: 37.36 kB / 491.2 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of pre-optimization done (n=18): time 1.472e-06/0.379, allocations: 0 / 491.2 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.001271/0.3802, allocations: 0.7068 MB / 491.9 MB, free: 96 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.3803, allocations: 110.4 kB / 492 MB, free: 15.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.3808, allocations: 312.6 kB / 492.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.3808, allocations: 35.72 kB / 492.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.381, allocations: 240.2 kB / 492.6 MB, free: 15.56 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.332e-05/0.3811, allocations: 75.19 kB / 492.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.3812, allocations: 67.14 kB / 492.7 MB, free: 15.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3813, allocations: 339.5 kB / 493 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.3815, allocations: 73.03 kB / 493.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.3818, allocations: 196 kB / 493.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005064/0.3824, allocations: 297.3 kB / 493.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3824, allocations: 1.312 kB / 493.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006152/0.383, allocations: 329 kB / 493.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.383, allocations: 11.31 kB / 493.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.383, allocations: 4.125 kB / 493.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.3831, allocations: 7.094 kB / 493.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.3834, allocations: 71.67 kB / 494 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.012e-05/0.3834, allocations: 12.03 kB / 494 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.3836, allocations: 11.58 kB / 494 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.3836, allocations: 21.39 kB / 494.1 MB, free: 14.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002071/0.3838, allocations: 183.2 kB / 494.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.3839, allocations: 34.86 kB / 494.3 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005149/0.3845, allocations: 198.7 kB / 494.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3845, allocations: 3.641 kB / 494.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.3845, allocations: 1.188 kB / 494.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.3845, allocations: 2.875 kB / 494.5 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.3856, allocations: 0.6152 MB / 495.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.3856, allocations: 5.875 kB / 495.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3859, allocations: 41.72 kB / 495.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3859, allocations: 4.812 kB / 495.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.386, allocations: 11.36 kB / 495.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.386, allocations: 2.969 kB / 495.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.386, allocations: 1.562 kB / 495.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.3887, allocations: 1.898 MB / 497 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.3888, allocations: 102.4 kB / 497.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.3888, allocations: 7.203 kB / 497.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.389, allocations: 3.531 kB / 497.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.212e-05/0.3891, allocations: 32.08 kB / 497.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.3891, allocations: 5.469 kB / 497.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002405/0.3894, allocations: 217 kB / 497.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3894, allocations: 1.312 kB / 497.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005551/0.3899, allocations: 97.66 kB / 497.5 MB, free: 12 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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): 19 * 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 0.0002071/0.3902, allocations: 102.6 kB / 497.6 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005375/0.3907, allocations: 195.6 kB / 497.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3907, allocations: 0 / 497.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.391, allocations: 82.27 kB / 497.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007444/0.3917, allocations: 89.84 kB / 498 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.3937, allocations: 1.213 MB / 499.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005973/0.3943, allocations: 0.8211 MB / 500 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002277/0.3945, allocations: 54.75 kB / 0.4883 GB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.549e-05/0.3946, allocations: 28.53 kB / 0.4884 GB, free: 10.16 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3946, allocations: 3.938 kB / 0.4884 GB, free: 10.16 MB / 330.7 MB Notification: Performance of Templates: time 0.008527/0.4031, allocations: 3.562 MB / 0.4918 GB, free: 8.793 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches