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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002131/0.002131, allocations: 112.3 kB / 17.29 MB, free: 6.059 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.002697/0.002697, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.561/2.561, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4386/0.4386, allocations: 38.03 MB / 330.1 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 62.56 kB / 398.9 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.28, allocations: 58.06 MB / 457 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.01202/0.2921, allocations: 5.181 MB / 462.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004753/0.2969, allocations: 1.663 MB / 463.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008936/0.2979, allocations: 35.81 kB / 463.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008328/0.2988, allocations: 103.3 kB / 464 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001495/0.3004, allocations: 246.7 kB / 464.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005825/0.301, allocations: 99.89 kB / 464.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.3024, allocations: 0.5098 MB / 464.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.3028, allocations: 167.8 kB / 465 MB, free: 408 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005139/0.3034, allocations: 199.1 kB / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005923/0.304, allocations: 219.2 kB / 465.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.3041, allocations: 24 kB / 465.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.3043, allocations: 28 kB / 465.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.3045, allocations: 95.67 kB / 465.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003653/0.3049, allocations: 187 kB / 465.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.3055, allocations: 287.3 kB / 466 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.647e-06/0.3055, allocations: 4 kB / 466 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3055, allocations: 0 / 466 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.671e-05/0.3056, allocations: 0 / 466 MB, free: 15.38 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.002222/0.3078, allocations: 0.6554 MB / 466.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.355e-05/0.3079, allocations: 15.89 kB / 466.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.3081, allocations: 40.47 kB / 466.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.3091, allocations: 379.6 kB / 467.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.718e-05/0.3092, allocations: 24.5 kB / 467.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.334e-05/0.3093, allocations: 24 kB / 467.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008283/0.3101, allocations: 338.2 kB / 467.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.3101, allocations: 7.938 kB / 467.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.195e-05/0.3102, allocations: 8 kB / 467.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.3102, allocations: 8 kB / 467.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.3108, allocations: 205.5 kB / 467.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.3132, allocations: 1.494 MB / 469.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.3139, allocations: 198.3 kB / 469.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3141, allocations: 71.48 kB / 469.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.366e-05/0.3142, allocations: 7.969 kB / 469.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/0.3142, allocations: 42.75 kB / 469.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 4.699e-06/0.3142, allocations: 0 / 469.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001879/0.3161, allocations: 0.6821 MB / 470.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.3163, allocations: 132.5 kB / 470.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005287/0.3168, allocations: 317.6 kB / 470.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.3169, allocations: 29.7 kB / 470.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.3171, allocations: 215.8 kB / 470.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.3172, allocations: 66.98 kB / 470.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.3173, allocations: 57.67 kB / 471 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.3176, allocations: 346.9 kB / 471.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.3177, allocations: 47.97 kB / 471.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.318, allocations: 148.8 kB / 471.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004198/0.3185, allocations: 219.8 kB / 471.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3185, allocations: 4 kB / 471.7 MB, free: 9.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006156/0.3191, allocations: 260.8 kB / 472 MB, free: 8.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3191, allocations: 4 kB / 472 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3192, allocations: 4 kB / 472 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.417e-05/0.3192, allocations: 8.375 kB / 472 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.3198, allocations: 83.89 kB / 472.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.3213, allocations: 1.377 MB / 473.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.3216, allocations: 12 kB / 473.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.3217, allocations: 8 kB / 473.5 MB, free: 7.254 MB / 350.1 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.0003193/0.322, allocations: 169.8 kB / 473.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.3222, allocations: 35.53 kB / 473.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000491/0.3227, allocations: 188.4 kB / 473.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3227, allocations: 4 kB / 473.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3227, allocations: 0 / 473.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3227, allocations: 0 / 473.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.324, allocations: 0.552 MB / 474.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.324, allocations: 4.031 kB / 474.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000367/0.3244, allocations: 39.98 kB / 474.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3244, allocations: 0 / 474.5 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.3245, allocations: 8 kB / 474.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.3245, allocations: 0 / 474.5 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.3245, allocations: 3.938 kB / 474.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.3253, allocations: 0.4894 MB / 475 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.3254, allocations: 108.7 kB / 475.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.07e-05/0.3255, allocations: 8 kB / 475.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003352/0.3258, allocations: 0 / 475.1 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.3259, allocations: 19.92 kB / 475.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.3259, allocations: 4 kB / 475.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004412/0.3263, allocations: 231.1 kB / 475.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.665e-06/0.3264, allocations: 4 kB / 475.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007439/0.3271, allocations: 59.94 kB / 475.4 MB, free: 5.238 MB / 350.1 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.0001766/0.3273, allocations: 99.25 kB / 475.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000713/0.328, allocations: 172.4 kB / 475.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.3281, allocations: 8.125 kB / 475.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.3282, allocations: 67.91 kB / 475.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.3294, allocations: 90.88 kB / 475.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.332, allocations: 0.9729 MB / 476.8 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.3326, allocations: 0.8029 MB / 477.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3328, allocations: 23.44 kB / 477.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3328, allocations: 0 / 477.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of Templates: time 0.01266/0.3454, allocations: 4.728 MB / 482.4 MB, free: 14.23 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches