Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001408/0.001409, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000825/0.0008252, allocations: 82.14 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1671/0.1671, allocations: 37.99 MB / 348 MB, free: 7.785 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.429e-05/1.433e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.09999, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4939, allocations: 101.5 MB / 0.555 GB, free: 9.48 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001469/0.4954, allocations: 0.5815 MB / 0.5556 GB, free: 8.898 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04064/0.536, allocations: 14.96 MB / 0.5702 GB, free: 9.793 MB / 411.1 MB Notification: Performance of FrontEnd: time 4.979e-06/0.5361, allocations: 0 / 0.5702 GB, free: 9.793 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.248e-05/0.5361, allocations: 11.94 kB / 0.5702 GB, free: 9.781 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001191/0.5373, allocations: 0.7339 MB / 0.571 GB, free: 8.996 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.5374, allocations: 8.031 kB / 0.571 GB, free: 8.988 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.5375, allocations: 59.3 kB / 0.571 GB, free: 8.93 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.5389, allocations: 0.6872 MB / 0.5717 GB, free: 8.203 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.539, allocations: 12 kB / 0.5717 GB, free: 8.191 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.539, allocations: 24 kB / 0.5717 GB, free: 8.168 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004222/0.5395, allocations: 237.4 kB / 0.5719 GB, free: 7.934 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.5401, allocations: 390.8 kB / 0.5723 GB, free: 7.508 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.5401, allocations: 7.906 kB / 0.5723 GB, free: 7.5 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.5402, allocations: 3.984 kB / 0.5723 GB, free: 7.496 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.5402, allocations: 15.95 kB / 0.5723 GB, free: 7.48 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.5424, allocations: 1.788 MB / 0.5741 GB, free: 5.59 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.5429, allocations: 228.1 kB / 0.5743 GB, free: 5.34 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.543, allocations: 75 kB / 0.5744 GB, free: 5.258 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.543, allocations: 4.188 kB / 0.5744 GB, free: 5.254 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.5433, allocations: 166.3 kB / 0.5745 GB, free: 5.07 MB / 411.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.5433, allocations: 0 / 0.5745 GB, free: 5.07 MB / 411.1 MB Notification: Performance of matching and sorting (n=26): time 0.001552/0.5449, allocations: 0.8022 MB / 0.5753 GB, free: 4.207 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.545, allocations: 132.5 kB / 0.5755 GB, free: 4.047 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.5454, allocations: 309.3 kB / 0.5758 GB, free: 3.742 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.5454, allocations: 29.64 kB / 0.5758 GB, free: 3.707 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.5457, allocations: 275.8 kB / 0.576 GB, free: 3.43 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.5457, allocations: 82.81 kB / 0.5761 GB, free: 3.348 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.438e-05/0.5458, allocations: 0 / 0.5761 GB, free: 3.348 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.546, allocations: 350.8 kB / 0.5765 GB, free: 2.996 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.5461, allocations: 71.98 kB / 0.5765 GB, free: 2.926 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.5464, allocations: 200.2 kB / 0.5767 GB, free: 2.672 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.5466, allocations: 99.92 kB / 0.5768 GB, free: 2.574 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.5466, allocations: 4 kB / 0.5768 GB, free: 2.57 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007754/0.5474, allocations: 381.4 kB / 0.5772 GB, free: 2.188 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.5474, allocations: 8 kB / 0.5772 GB, free: 2.18 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.5474, allocations: 8 kB / 0.5772 GB, free: 2.172 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004297/0.5478, allocations: 93.2 kB / 0.5773 GB, free: 2.078 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.5481, allocations: 75.78 kB / 0.5774 GB, free: 2.004 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.5503, allocations: 1.756 MB / 0.5791 GB, free: 140 kB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.5505, allocations: 19.98 kB / 0.5791 GB, free: 120 kB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/0.5505, allocations: 20 kB / 0.5791 GB, free: 100 kB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001711/0.5507, allocations: 110.8 kB / 0.5792 GB, free: 15.98 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.5508, allocations: 43.48 kB / 0.5793 GB, free: 15.94 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005635/0.5514, allocations: 269.6 kB / 0.5795 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.5514, allocations: 4 kB / 0.5795 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.5514, allocations: 4 kB / 0.5795 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.5514, allocations: 0 / 0.5795 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.5525, allocations: 0.6909 MB / 0.5802 GB, free: 14.92 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.5525, allocations: 0 / 0.5802 GB, free: 14.92 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.5527, allocations: 47.92 kB / 0.5802 GB, free: 14.87 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.5529, allocations: 48.81 kB / 0.5803 GB, free: 14.82 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.553, allocations: 4 kB / 0.5803 GB, free: 14.82 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.5542, allocations: 1.398 MB / 0.5817 GB, free: 13.3 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.5542, allocations: 0 / 0.5817 GB, free: 13.3 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007142/0.5549, allocations: 488.5 kB / 0.5821 GB, free: 12.79 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.5551, allocations: 140.6 kB / 0.5823 GB, free: 12.63 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.5551, allocations: 0 / 0.5823 GB, free: 12.63 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.5553, allocations: 8 kB / 0.5823 GB, free: 12.62 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.158e-05/0.5554, allocations: 27.95 kB / 0.5823 GB, free: 12.6 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.5554, allocations: 4 kB / 0.5823 GB, free: 12.59 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002667/0.5557, allocations: 243 kB / 0.5825 GB, free: 12.36 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5557, allocations: 4 kB / 0.5825 GB, free: 12.36 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005341/0.5563, allocations: 108 kB / 0.5826 GB, free: 12.25 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008969/0.5572, allocations: 386.6 kB / 0.583 GB, free: 11.89 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007673/0.5579, allocations: 371.1 kB / 0.5834 GB, free: 11.52 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.558, allocations: 0 / 0.5834 GB, free: 11.52 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.5584, allocations: 222.1 kB / 0.5836 GB, free: 11.29 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.5589, allocations: 102.1 kB / 0.5837 GB, free: 11.19 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.5604, allocations: 0.7769 MB / 0.5844 GB, free: 10.39 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.5609, allocations: 0.8696 MB / 0.5853 GB, free: 9.492 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.5611, allocations: 59.22 kB / 0.5853 GB, free: 9.434 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.184e-05/0.5612, allocations: 35.42 kB / 0.5854 GB, free: 9.398 MB / 427.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5612, allocations: 4 kB / 0.5854 GB, free: 9.395 MB / 427.1 MB Notification: Performance of Templates: time 0.01041/0.5717, allocations: 5.106 MB / 0.5904 GB, free: 4.281 MB / 427.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches