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.001283/0.001283, allocations: 172.5 kB / 17.39 MB, free: 4.297 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.462/1.462, allocations: 205.4 MB / 223.5 MB, free: 9.012 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.0007907/0.0007907, allocations: 93.48 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1899/0.1899, allocations: 38.07 MB / 358.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003235/0.0003235, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2699, allocations: 56.32 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4142, allocations: 102.3 MB / 0.5702 GB, free: 15.97 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001827/0.4161, allocations: 0.8821 MB / 0.571 GB, free: 15.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04041/0.4565, allocations: 15.14 MB / 0.5858 GB, free: 15.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4565, allocations: 0 / 0.5858 GB, free: 15.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.523e-05/0.4566, allocations: 12 kB / 0.5858 GB, free: 15.77 MB / 426.7 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.001629/0.4582, allocations: 0.789 MB / 0.5866 GB, free: 14.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.4583, allocations: 12.03 kB / 0.5866 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.4584, allocations: 52.28 kB / 0.5867 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.4595, allocations: 0.5561 MB / 0.5872 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.4596, allocations: 25.38 kB / 0.5872 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.4597, allocations: 36.38 kB / 0.5873 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007116/0.4604, allocations: 463.4 kB / 0.5877 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.4604, allocations: 192 / 0.5877 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.261e-05/0.4605, allocations: 19.94 kB / 0.5877 GB, free: 13.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4605, allocations: 8 kB / 0.5877 GB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.461, allocations: 282.3 kB / 0.588 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.4633, allocations: 1.866 MB / 0.5898 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005235/0.4638, allocations: 239.7 kB / 0.59 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.464, allocations: 90.48 kB / 0.5901 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.4641, allocations: 8 kB / 0.5901 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.4643, allocations: 173.6 kB / 0.5903 GB, free: 10.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.4643, allocations: 0 / 0.5903 GB, free: 10.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001736/0.4661, allocations: 0.9094 MB / 0.5912 GB, free: 9.898 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.467e-05/0.4662, allocations: 136.5 kB / 0.5913 GB, free: 9.734 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004988/0.4667, allocations: 397.9 kB / 0.5917 GB, free: 9.336 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.4667, allocations: 29.7 kB / 0.5917 GB, free: 9.301 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.4669, allocations: 267.6 kB / 0.592 GB, free: 9.035 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.467, allocations: 94.8 kB / 0.5921 GB, free: 8.941 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.467, allocations: 8 kB / 0.5921 GB, free: 8.934 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4672, allocations: 358.8 kB / 0.5924 GB, free: 8.574 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.4674, allocations: 79.95 kB / 0.5925 GB, free: 8.496 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.4677, allocations: 220.5 kB / 0.5927 GB, free: 8.223 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004451/0.4681, allocations: 319.1 kB / 0.593 GB, free: 7.855 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4681, allocations: 0 / 0.593 GB, free: 7.855 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008355/0.469, allocations: 421.4 kB / 0.5934 GB, free: 7.434 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.469, allocations: 8 kB / 0.5934 GB, free: 7.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.469, allocations: 7.938 kB / 0.5934 GB, free: 7.418 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004133/0.4694, allocations: 93.23 kB / 0.5935 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.4697, allocations: 67.91 kB / 0.5936 GB, free: 7.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.472, allocations: 1.827 MB / 0.5954 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.4723, allocations: 24 kB / 0.5954 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.4723, allocations: 15.98 kB / 0.5954 GB, free: 5.262 MB / 426.7 MB 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 () * Number of clocked 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.0002701/0.4726, allocations: 197.7 kB / 0.5956 GB, free: 5.059 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.4727, allocations: 43.44 kB / 0.5956 GB, free: 5.016 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006027/0.4733, allocations: 302.1 kB / 0.5959 GB, free: 4.703 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.4733, allocations: 4 kB / 0.5959 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.4733, allocations: 0 / 0.5959 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.4733, allocations: 0 / 0.5959 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.4744, allocations: 0.7646 MB / 0.5967 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4744, allocations: 0 / 0.5967 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.4747, allocations: 47.92 kB / 0.5967 GB, free: 3.828 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001953/0.4749, allocations: 52.8 kB / 0.5968 GB, free: 3.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.4749, allocations: 4 kB / 0.5968 GB, free: 3.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.4762, allocations: 1.441 MB / 0.5982 GB, free: 2.191 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4762, allocations: 0 / 0.5982 GB, free: 2.191 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007403/0.477, allocations: 0.493 MB / 0.5987 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001587/0.4771, allocations: 132.7 kB / 0.5988 GB, free: 1.527 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.4772, allocations: 11.94 kB / 0.5988 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4774, allocations: 15.98 kB / 0.5988 GB, free: 1.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.346e-05/0.4775, allocations: 19.97 kB / 0.5988 GB, free: 1.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.4775, allocations: 8 kB / 0.5988 GB, free: 1.473 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000315/0.4778, allocations: 283.1 kB / 0.5991 GB, free: 1.199 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4778, allocations: 4 kB / 0.5991 GB, free: 1.195 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005526/0.4784, allocations: 123.9 kB / 0.5992 GB, free: 1.074 MB / 426.7 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 () * Number of clocked 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.0009293/0.4793, allocations: 437.5 kB / 0.5997 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008992/0.4802, allocations: 392.2 kB / 0.6 GB, free: 312 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4803, allocations: 8.062 kB / 0.6 GB, free: 304 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.4807, allocations: 243.4 kB / 0.6003 GB, free: 48 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007305/0.4814, allocations: 126 kB / 0.6004 GB, free: 15.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.4835, allocations: 1.354 MB / 0.6017 GB, free: 14.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/0.484, allocations: 0.866 MB / 0.6026 GB, free: 13.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.4843, allocations: 67.23 kB / 0.6026 GB, free: 13.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.123e-05/0.4844, allocations: 27.44 kB / 0.6026 GB, free: 13.55 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4844, allocations: 4 kB / 0.6026 GB, free: 13.55 MB / 442.7 MB Notification: Performance of Templates: time 0.01326/0.4977, allocations: 6.073 MB / 0.6086 GB, free: 7.484 MB / 442.7 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/jenkins1/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