Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001217, allocations: 182.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.731/1.731, allocations: 205.1 MB / 223.1 MB, free: 8.473 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.001036/0.001036, allocations: 94.31 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1819/0.1819, allocations: 38.01 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3489, allocations: 55.23 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.008417/0.3574, allocations: 5.178 MB / 482.3 MB, free: 6.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.3606, allocations: 1.728 MB / 484 MB, free: 5.031 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.361, allocations: 29.88 kB / 484 MB, free: 5.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000484/0.3614, allocations: 106.2 kB / 484.1 MB, free: 4.965 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000634/0.3622, allocations: 248.4 kB / 484.4 MB, free: 4.824 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.3625, allocations: 96.31 kB / 484.5 MB, free: 4.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000889/0.3634, allocations: 0.6456 MB / 485.1 MB, free: 4.523 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.3636, allocations: 130.4 kB / 485.2 MB, free: 4.477 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.3639, allocations: 175.9 kB / 485.4 MB, free: 4.402 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.3643, allocations: 220.2 kB / 485.6 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.769e-05/0.3643, allocations: 18.81 kB / 485.6 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.3644, allocations: 19.03 kB / 485.7 MB, free: 4.309 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.3645, allocations: 93.88 kB / 485.8 MB, free: 4.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.3647, allocations: 175.4 kB / 485.9 MB, free: 4.168 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004237/0.3652, allocations: 364.6 kB / 486.3 MB, free: 4.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.285e-06/0.3652, allocations: 4.641 kB / 486.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.3652, allocations: 0 / 486.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3652, allocations: 1.375 kB / 486.3 MB, free: 4.016 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001161/0.3664, allocations: 0.6587 MB / 487 MB, free: 3.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.3664, allocations: 9.562 kB / 487 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.198e-05/0.3665, allocations: 40.5 kB / 487 MB, free: 3.461 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006653/0.3672, allocations: 385.6 kB / 487.4 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.3672, allocations: 26.97 kB / 487.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-05/0.3673, allocations: 29.94 kB / 487.4 MB, free: 3.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005278/0.3678, allocations: 331.9 kB / 487.8 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.3679, allocations: 9.094 kB / 487.8 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.3679, allocations: 11.12 kB / 487.8 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.3679, allocations: 11.47 kB / 487.8 MB, free: 2.914 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003957/0.3683, allocations: 208 kB / 488 MB, free: 2.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001472/0.3698, allocations: 1.486 MB / 489.5 MB, free: 1.598 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004007/0.3702, allocations: 201.4 kB / 489.7 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.3704, allocations: 71.45 kB / 489.7 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.3704, allocations: 10.75 kB / 489.8 MB, free: 1.398 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.3704, allocations: 36.55 kB / 489.8 MB, free: 1.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.3704, allocations: 3.938 kB / 489.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.001089/0.3715, allocations: 0.6778 MB / 490.5 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.165e-05/0.3716, allocations: 132.3 kB / 490.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003746/0.372, allocations: 318.8 kB / 490.9 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.372, allocations: 31.11 kB / 490.9 MB, free: 488 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.3721, allocations: 216.2 kB / 491.2 MB, free: 300 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.3722, allocations: 64.48 kB / 491.2 MB, free: 248 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/0.3723, allocations: 56.61 kB / 491.3 MB, free: 208 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3725, allocations: 340.6 kB / 491.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3726, allocations: 48.52 kB / 491.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.3728, allocations: 148.7 kB / 491.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.3731, allocations: 224 kB / 492 MB, free: 15.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3731, allocations: 1.219 kB / 492 MB, free: 15.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004485/0.3735, allocations: 257.9 kB / 492.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3736, allocations: 7.125 kB / 492.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.3736, allocations: 2.656 kB / 492.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3736, allocations: 8.812 kB / 492.3 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.374, allocations: 77.94 kB / 492.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009938/0.375, allocations: 1.284 MB / 493.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.3751, allocations: 13.88 kB / 493.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.3752, allocations: 14.09 kB / 493.7 MB, free: 14.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.3754, allocations: 172.4 kB / 493.8 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.33e-05/0.3755, allocations: 36.12 kB / 493.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004398/0.3759, allocations: 180.5 kB / 494.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3759, allocations: 10.28 kB / 494.1 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3759, allocations: 1.875 kB / 494.1 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.376, allocations: 5.703 kB / 494.1 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009317/0.3769, allocations: 0.5398 MB / 494.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3769, allocations: 4 kB / 494.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.3772, allocations: 47.67 kB / 494.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3772, allocations: 1.469 kB / 494.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.3772, allocations: 3.5 kB / 494.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3772, allocations: 2.125 kB / 494.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3772, allocations: 1.5 kB / 494.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.3796, allocations: 1.843 MB / 496.5 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.3797, allocations: 103 kB / 496.6 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.3798, allocations: 6.859 kB / 496.6 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.38, allocations: 3.297 kB / 496.6 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.3801, allocations: 22.86 kB / 496.6 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3801, allocations: 5.562 kB / 496.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003217/0.3804, allocations: 227.2 kB / 496.9 MB, free: 11.58 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3804, allocations: 0 / 496.9 MB, free: 11.58 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005482/0.381, allocations: 85.19 kB / 497 MB, free: 11.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.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 (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.0001553/0.3811, allocations: 95.61 kB / 497 MB, free: 11.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004566/0.3816, allocations: 160.8 kB / 497.2 MB, free: 11.44 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3816, allocations: 4.125 kB / 497.2 MB, free: 11.44 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.3818, allocations: 69.58 kB / 497.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007665/0.3825, allocations: 86.25 kB / 497.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.3846, allocations: 1.124 MB / 498.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.3851, allocations: 0.8098 MB / 499.3 MB, free: 9.863 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.3854, allocations: 56.58 kB / 499.4 MB, free: 9.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.3855, allocations: 27.81 kB / 499.4 MB, free: 9.844 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3855, allocations: 0 / 499.4 MB, free: 9.844 MB / 330.7 MB Notification: Performance of Templates: time 0.009133/0.3946, allocations: 3.372 MB / 0.491 GB, free: 8.887 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches