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.001012/0.001012, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.246/1.246, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008048/0.0008048, allocations: 100.3 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1634/0.1634, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 15.98 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2774, allocations: 56.31 MB / 480.3 MB, free: 9.535 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.417, allocations: 100.3 MB / 0.567 GB, free: 2.113 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4173, allocations: 87.95 kB / 0.5671 GB, free: 2.027 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03381/0.4511, allocations: 13.03 MB / 0.5798 GB, free: 4.836 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4512, allocations: 0 / 0.5798 GB, free: 4.836 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.041e-05/0.4512, allocations: 15.98 kB / 0.5798 GB, free: 4.82 MB / 410.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.001202/0.4524, allocations: 0.7274 MB / 0.5805 GB, free: 4.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.4525, allocations: 8.031 kB / 0.5805 GB, free: 4.035 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.4526, allocations: 63.3 kB / 0.5806 GB, free: 3.973 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.454, allocations: 0.6858 MB / 0.5813 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.4541, allocations: 58.7 kB / 0.5813 GB, free: 3.176 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.4542, allocations: 44 kB / 0.5814 GB, free: 3.133 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007879/0.455, allocations: 0.5065 MB / 0.5819 GB, free: 2.582 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.455, allocations: 0 / 0.5819 GB, free: 2.582 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.066e-05/0.4551, allocations: 19.94 kB / 0.5819 GB, free: 2.562 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.4551, allocations: 12 kB / 0.5819 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006073/0.4557, allocations: 339.7 kB / 0.5822 GB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002293/0.458, allocations: 2.002 MB / 0.5842 GB, free: 104 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004522/0.4585, allocations: 227.7 kB / 0.5844 GB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.4585, allocations: 4.062 kB / 0.5844 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.4585, allocations: 38.55 kB / 0.5844 GB, free: 15.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 1.773e-06/0.4586, allocations: 0 / 0.5844 GB, free: 15.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.001664/0.4602, allocations: 0.8616 MB / 0.5853 GB, free: 14.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.4603, allocations: 106.8 kB / 0.5854 GB, free: 14.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.4606, allocations: 296.7 kB / 0.5857 GB, free: 14.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.4606, allocations: 29.7 kB / 0.5857 GB, free: 14.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.4608, allocations: 267.5 kB / 0.5859 GB, free: 14.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.456e-05/0.4609, allocations: 74.91 kB / 0.586 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.692e-05/0.4609, allocations: 15.94 kB / 0.586 GB, free: 14.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4611, allocations: 350.8 kB / 0.5864 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.4613, allocations: 83.95 kB / 0.5864 GB, free: 13.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.4615, allocations: 221 kB / 0.5866 GB, free: 13.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000769/0.4623, allocations: 313.1 kB / 0.5869 GB, free: 13.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4623, allocations: 0 / 0.5869 GB, free: 13.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008342/0.4632, allocations: 424.9 kB / 0.5874 GB, free: 12.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4632, allocations: 8 kB / 0.5874 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4632, allocations: 4 kB / 0.5874 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003383/0.4636, allocations: 88.95 kB / 0.5874 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4638, allocations: 63.91 kB / 0.5875 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.4659, allocations: 1.809 MB / 0.5893 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.4661, allocations: 15.91 kB / 0.5893 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.4661, allocations: 23.98 kB / 0.5893 GB, free: 10.46 MB / 426.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 () * Number of clocked 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.0002637/0.4664, allocations: 193.1 kB / 0.5895 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.329e-05/0.4665, allocations: 31.62 kB / 0.5895 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.763e-05/0.4666, allocations: 43.5 kB / 0.5896 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.4666, allocations: 256 / 0.5896 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.4666, allocations: 19.83 kB / 0.5896 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.4666, allocations: 4 kB / 0.5896 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.4678, allocations: 0.7804 MB / 0.5904 GB, free: 9.316 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4678, allocations: 3.984 kB / 0.5904 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002604/0.468, allocations: 47.91 kB / 0.5904 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.299e-05/0.4681, allocations: 24.84 kB / 0.5904 GB, free: 9.238 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.4682, allocations: 4 kB / 0.5904 GB, free: 9.234 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008558/0.469, allocations: 1.28 MB / 0.5917 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.469, allocations: 0 / 0.5917 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007391/0.4698, allocations: 0.5566 MB / 0.5922 GB, free: 7.219 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.4699, allocations: 120.7 kB / 0.5923 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.47, allocations: 11.94 kB / 0.5924 GB, free: 7.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.4702, allocations: 12 kB / 0.5924 GB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.617e-05/0.4702, allocations: 19.97 kB / 0.5924 GB, free: 7.039 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.4703, allocations: 8 kB / 0.5924 GB, free: 7.031 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002192/0.4705, allocations: 227.2 kB / 0.5926 GB, free: 6.812 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.4705, allocations: 0 / 0.5926 GB, free: 6.812 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005213/0.471, allocations: 99.94 kB / 0.5927 GB, free: 6.715 MB / 426.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 () * 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 0.0002151/0.4712, allocations: 123.2 kB / 0.5928 GB, free: 6.582 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007772/0.472, allocations: 379.3 kB / 0.5932 GB, free: 6.199 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.472, allocations: 0 / 0.5932 GB, free: 6.199 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.4724, allocations: 227.3 kB / 0.5934 GB, free: 5.965 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005353/0.4729, allocations: 86 kB / 0.5935 GB, free: 5.879 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.4746, allocations: 1.185 MB / 0.5946 GB, free: 4.652 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.475, allocations: 0.8544 MB / 0.5955 GB, free: 3.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000198/0.4752, allocations: 55.25 kB / 0.5955 GB, free: 3.719 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.4753, allocations: 27.44 kB / 0.5955 GB, free: 3.691 MB / 426.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4753, allocations: 0 / 0.5955 GB, free: 3.691 MB / 426.7 MB Notification: Performance of Templates: time 0.008696/0.484, allocations: 4.407 MB / 0.5999 GB, free: 15.29 MB / 442.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