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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.0009728/0.0009728, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.619/1.619, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008864/0.0008864, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1988/0.1988, allocations: 37.98 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.168e-05, allocations: 4 kB / 417.7 MB, free: 29.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 56.31 MB / 474.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4223/0.5257, allocations: 100.2 MB / 0.5608 GB, free: 2.465 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.526, allocations: 92.19 kB / 0.5609 GB, free: 2.418 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03452/0.5606, allocations: 13.04 MB / 0.5736 GB, free: 7.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5606, allocations: 0 / 0.5736 GB, free: 7.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.324e-05/0.5607, allocations: 16.38 kB / 0.5736 GB, free: 7.305 MB / 378.7 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.001118/0.5618, allocations: 0.6794 MB / 0.5743 GB, free: 6.605 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5619, allocations: 8.031 kB / 0.5743 GB, free: 6.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.562, allocations: 59.3 kB / 0.5743 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.5635, allocations: 0.6687 MB / 0.575 GB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.212e-05/0.5636, allocations: 59.83 kB / 0.575 GB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.1e-05/0.5637, allocations: 40.62 kB / 0.5751 GB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007665/0.5644, allocations: 499.8 kB / 0.5756 GB, free: 5.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.5645, allocations: 3.938 kB / 0.5756 GB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.5645, allocations: 19.19 kB / 0.5756 GB, free: 5.473 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.5645, allocations: 12 kB / 0.5756 GB, free: 5.461 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005524/0.5651, allocations: 302.6 kB / 0.5759 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.5676, allocations: 2.002 MB / 0.5778 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.5679, allocations: 210.7 kB / 0.578 GB, free: 3.262 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.5681, allocations: 84.31 kB / 0.5781 GB, free: 3.195 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.5681, allocations: 11.98 kB / 0.5781 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.5681, allocations: 34.5 kB / 0.5782 GB, free: 3.141 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 2.344e-06/0.5681, allocations: 0 / 0.5782 GB, free: 3.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001294/0.5694, allocations: 0.739 MB / 0.5789 GB, free: 2.434 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.5695, allocations: 110.8 kB / 0.579 GB, free: 2.301 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.5699, allocations: 283.4 kB / 0.5793 GB, free: 2.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.5699, allocations: 33.27 kB / 0.5793 GB, free: 2.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.5701, allocations: 268.2 kB / 0.5796 GB, free: 1.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-05/0.5701, allocations: 84.83 kB / 0.5796 GB, free: 1.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.275e-05/0.5702, allocations: 5 kB / 0.5796 GB, free: 1.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5703, allocations: 349.8 kB / 0.58 GB, free: 1.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.5704, allocations: 72.25 kB / 0.58 GB, free: 1.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.5706, allocations: 208.7 kB / 0.5802 GB, free: 1.133 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006351/0.5713, allocations: 273.6 kB / 0.5805 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5713, allocations: 4 kB / 0.5805 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006908/0.572, allocations: 398.2 kB / 0.5809 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.572, allocations: 13.19 kB / 0.5809 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.5721, allocations: 8.531 kB / 0.5809 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003179/0.5724, allocations: 78.25 kB / 0.581 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002539/0.5726, allocations: 63.91 kB / 0.581 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.5748, allocations: 1.785 MB / 0.5828 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.5751, allocations: 23.36 kB / 0.5828 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.5752, allocations: 15.62 kB / 0.5828 GB, free: 14.68 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001961/0.5754, allocations: 130.5 kB / 0.5829 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.853e-05/0.5755, allocations: 39.47 kB / 0.583 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001422/0.5756, allocations: 37.91 kB / 0.583 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/0.5756, allocations: 11.95 kB / 0.583 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.5757, allocations: 3.938 kB / 0.583 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.5757, allocations: 7.984 kB / 0.583 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.5771, allocations: 0.748 MB / 0.5838 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.5771, allocations: 3.984 kB / 0.5838 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.5774, allocations: 47.95 kB / 0.5838 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.5776, allocations: 24.22 kB / 0.5838 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.5776, allocations: 3.562 kB / 0.5838 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.5787, allocations: 1.275 MB / 0.5851 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5787, allocations: 4.031 kB / 0.5851 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006258/0.5793, allocations: 0.5099 MB / 0.5856 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.5795, allocations: 124 kB / 0.5857 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.5795, allocations: 3.25 kB / 0.5857 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.5797, allocations: 11.98 kB / 0.5857 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.36e-05/0.5798, allocations: 19.48 kB / 0.5857 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.5798, allocations: 7.562 kB / 0.5858 GB, free: 11.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002411/0.5801, allocations: 222.4 kB / 0.586 GB, free: 11.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5801, allocations: 0 / 0.586 GB, free: 11.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000596/0.5807, allocations: 92.94 kB / 0.5861 GB, free: 11.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete 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 0.0002533/0.581, allocations: 122.6 kB / 0.5862 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006914/0.5817, allocations: 351.8 kB / 0.5865 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.5817, allocations: 0 / 0.5865 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.5819, allocations: 204.1 kB / 0.5867 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.5825, allocations: 101.2 kB / 0.5868 GB, free: 10.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.5839, allocations: 0.6841 MB / 0.5875 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004939/0.5845, allocations: 0.8535 MB / 0.5883 GB, free: 9.258 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.5847, allocations: 51.25 kB / 0.5883 GB, free: 9.211 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.119e-05/0.5848, allocations: 27.42 kB / 0.5884 GB, free: 9.184 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5848, allocations: 4 kB / 0.5884 GB, free: 9.18 MB / 394.7 MB Notification: Performance of Templates: time 0.01011/0.5949, allocations: 4.466 MB / 0.5927 GB, free: 4.734 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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) 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