Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008965/0.0008965, allocations: 96.41 kB / 16.3 MB, free: 6.457 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.000878/0.0008781, allocations: 185.1 kB / 17.2 MB, free: 6.34 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.23/1.23, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2533/0.2533, allocations: 38.08 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 8 kB / 400 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2553, allocations: 59.16 MB / 459.1 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004491/0.2598, allocations: 5.162 MB / 464.3 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.262, allocations: 1.73 MB / 466 MB, free: 25.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002841/0.2623, allocations: 32 kB / 466 MB, free: 25.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.2626, allocations: 128 kB / 466.2 MB, free: 25.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006125/0.2632, allocations: 320.9 kB / 466.5 MB, free: 25.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.2636, allocations: 165.2 kB / 466.6 MB, free: 24.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.2641, allocations: 416.6 kB / 467 MB, free: 24.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.2645, allocations: 325.6 kB / 467.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.2648, allocations: 215.4 kB / 467.6 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.265, allocations: 209.7 kB / 467.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.2651, allocations: 23.72 kB / 467.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.742e-05/0.2652, allocations: 24.19 kB / 467.8 MB, free: 24.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2653, allocations: 114.2 kB / 467.9 MB, free: 24.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.643e-05/0.2654, allocations: 123.9 kB / 468.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004507/0.2659, allocations: 456.2 kB / 468.5 MB, free: 24.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.2659, allocations: 0 / 468.5 MB, free: 24.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2659, allocations: 1.375 kB / 468.5 MB, free: 24.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2659, allocations: 0 / 468.5 MB, free: 24.24 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001054/0.267, allocations: 0.7055 MB / 469.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.267, allocations: 9.562 kB / 469.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.208e-05/0.2671, allocations: 49.7 kB / 469.3 MB, free: 23.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006071/0.2677, allocations: 426.6 kB / 469.7 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.477e-05/0.2678, allocations: 64.69 kB / 469.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.2679, allocations: 48.77 kB / 469.8 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007468/0.2686, allocations: 0.4984 MB / 470.3 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.2687, allocations: 1.125 kB / 470.3 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.2687, allocations: 20.59 kB / 470.3 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.2687, allocations: 10.56 kB / 470.3 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005987/0.2693, allocations: 353.7 kB / 470.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2712, allocations: 1.985 MB / 472.7 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003674/0.2716, allocations: 223.4 kB / 472.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.2716, allocations: 2.688 kB / 472.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.2717, allocations: 42 kB / 472.9 MB, free: 21.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.2717, allocations: 0 / 472.9 MB, free: 21.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001444/0.2731, allocations: 0.8644 MB / 473.8 MB, free: 20.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.2732, allocations: 106.2 kB / 473.9 MB, free: 20.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.2735, allocations: 332.9 kB / 474.2 MB, free: 20.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.2735, allocations: 27.52 kB / 474.2 MB, free: 20.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.2736, allocations: 268.7 kB / 474.5 MB, free: 20.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.089e-05/0.2737, allocations: 80.88 kB / 474.6 MB, free: 19.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/0.2737, allocations: 9.375 kB / 474.6 MB, free: 19.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.2738, allocations: 347 kB / 474.9 MB, free: 19.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.274, allocations: 85.36 kB / 475 MB, free: 19.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.2742, allocations: 218.3 kB / 475.2 MB, free: 19.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006759/0.2749, allocations: 311.4 kB / 475.5 MB, free: 19.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2749, allocations: 1.188 kB / 475.5 MB, free: 19.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007418/0.2756, allocations: 422.6 kB / 475.9 MB, free: 19.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.2757, allocations: 8.312 kB / 476 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2757, allocations: 8.719 kB / 476 MB, free: 19.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.276, allocations: 83.34 kB / 476 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.2762, allocations: 64.7 kB / 476.1 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.2777, allocations: 1.774 MB / 477.9 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.2779, allocations: 17.48 kB / 477.9 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.2779, allocations: 16.38 kB / 477.9 MB, free: 17.43 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001872/0.2781, allocations: 191.4 kB / 478.1 MB, free: 17.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.2782, allocations: 36.72 kB / 478.1 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.922e-05/0.2783, allocations: 41.77 kB / 478.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2783, allocations: 2.75 kB / 478.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.2783, allocations: 5.625 kB / 478.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.2783, allocations: 2.875 kB / 478.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2793, allocations: 0.793 MB / 479 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2793, allocations: 1.5 kB / 479 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.2796, allocations: 46.25 kB / 479 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.645e-05/0.2797, allocations: 22.56 kB / 479.1 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.2797, allocations: 6.891 kB / 479.1 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005646/0.2802, allocations: 1.291 MB / 480.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2803, allocations: 2.25 kB / 480.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006313/0.2809, allocations: 0.5512 MB / 480.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.579e-05/0.281, allocations: 121.4 kB / 481 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.281, allocations: 7.844 kB / 481 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2812, allocations: 7.891 kB / 481 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.2813, allocations: 26.02 kB / 481.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2813, allocations: 5.719 kB / 481.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.2815, allocations: 230.2 kB / 481.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2815, allocations: 0 / 481.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.282, allocations: 90.86 kB / 481.4 MB, free: 14.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.578e-05/0.2821, allocations: 102 kB / 481.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006424/0.2828, allocations: 370.8 kB / 481.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2828, allocations: 320 / 481.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.2831, allocations: 223 kB / 482.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005022/0.2836, allocations: 106.4 kB / 482.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.2849, allocations: 1.181 MB / 483.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.2851, allocations: 0.8606 MB / 484.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001737/0.2853, allocations: 52.41 kB / 484.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.2854, allocations: 26.06 kB / 484.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2854, allocations: 5.125 kB / 484.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Templates: time 0.007528/0.2929, allocations: 4.069 MB / 488.4 MB, free: 9.852 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches