Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.00107, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.257/1.257, 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.0009109/0.0009108, allocations: 92.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.158/0.158, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2708, allocations: 56.32 MB / 480.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.4032, allocations: 102.7 MB / 0.5694 GB, free: 15.69 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001853/0.4051, allocations: 0.8705 MB / 0.5702 GB, free: 14.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04461/0.4497, allocations: 16.72 MB / 0.5866 GB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4498, allocations: 0 / 0.5866 GB, free: 13.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.404e-05/0.4498, allocations: 12 kB / 0.5866 GB, free: 13.89 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001401/0.4512, allocations: 0.8401 MB / 0.5874 GB, free: 13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4513, allocations: 8.031 kB / 0.5874 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4514, allocations: 75.14 kB / 0.5875 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.453, allocations: 0.7606 MB / 0.5882 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.4531, allocations: 33 kB / 0.5882 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.453e-05/0.4531, allocations: 47.98 kB / 0.5883 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007801/0.4539, allocations: 0.519 MB / 0.5888 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.454, allocations: 8 kB / 0.5888 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.454, allocations: 16 kB / 0.5888 GB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.454, allocations: 12 kB / 0.5888 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.4545, allocations: 331.6 kB / 0.5891 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.4571, allocations: 2.081 MB / 0.5912 GB, free: 8.906 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003934/0.4575, allocations: 235.7 kB / 0.5914 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.4575, allocations: 3.938 kB / 0.5914 GB, free: 8.645 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.4578, allocations: 162.4 kB / 0.5916 GB, free: 8.465 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.4578, allocations: 4 kB / 0.5916 GB, free: 8.461 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.00155/0.4593, allocations: 0.9214 MB / 0.5925 GB, free: 7.48 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.4594, allocations: 136.5 kB / 0.5926 GB, free: 7.316 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003975/0.4598, allocations: 369.1 kB / 0.5929 GB, free: 6.957 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.4598, allocations: 33.95 kB / 0.593 GB, free: 6.918 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.46, allocations: 295.6 kB / 0.5933 GB, free: 6.625 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.4601, allocations: 90.97 kB / 0.5933 GB, free: 6.535 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.552e-05/0.4601, allocations: 11.94 kB / 0.5934 GB, free: 6.523 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4603, allocations: 354.8 kB / 0.5937 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.4604, allocations: 88.83 kB / 0.5938 GB, free: 6.082 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.4607, allocations: 221.7 kB / 0.594 GB, free: 5.805 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.4609, allocations: 121.1 kB / 0.5941 GB, free: 5.688 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4609, allocations: 0 / 0.5941 GB, free: 5.688 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008053/0.4617, allocations: 439.8 kB / 0.5945 GB, free: 5.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.4617, allocations: 10.97 kB / 0.5945 GB, free: 5.242 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4617, allocations: 4 kB / 0.5945 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004094/0.4621, allocations: 100.7 kB / 0.5946 GB, free: 5.137 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.4624, allocations: 75.84 kB / 0.5947 GB, free: 5.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/0.4644, allocations: 1.722 MB / 0.5964 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002639/0.4647, allocations: 31.89 kB / 0.5964 GB, free: 3.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.4647, allocations: 12 kB / 0.5964 GB, free: 3.168 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0002561/0.465, allocations: 217.6 kB / 0.5966 GB, free: 2.945 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.4651, allocations: 43.53 kB / 0.5967 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000556/0.4656, allocations: 278.1 kB / 0.5969 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4656, allocations: 0 / 0.5969 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4656, allocations: 7.938 kB / 0.597 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.4657, allocations: 7.922 kB / 0.597 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.4668, allocations: 0.7726 MB / 0.5977 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4668, allocations: 0 / 0.5977 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000284/0.4671, allocations: 47.97 kB / 0.5978 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002135/0.4674, allocations: 48.8 kB / 0.5978 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.4674, allocations: 7.984 kB / 0.5978 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.4687, allocations: 1.445 MB / 0.5992 GB, free: 84 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4687, allocations: 0 / 0.5992 GB, free: 84 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007695/0.4695, allocations: 0.5012 MB / 0.5997 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.4697, allocations: 128.7 kB / 0.5998 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.4698, allocations: 12.12 kB / 0.5998 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.47, allocations: 15.98 kB / 0.5999 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.4701, allocations: 31.91 kB / 0.5999 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.4701, allocations: 7.984 kB / 0.5999 GB, free: 15.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003441/0.4704, allocations: 295.1 kB / 0.6002 GB, free: 15.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4704, allocations: 0 / 0.6002 GB, free: 15.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005638/0.471, allocations: 131.9 kB / 0.6003 GB, free: 14.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.0009549/0.472, allocations: 425 kB / 0.6007 GB, free: 14.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000783/0.4728, allocations: 387.3 kB / 0.6011 GB, free: 14.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4728, allocations: 0 / 0.6011 GB, free: 14.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.4732, allocations: 238.4 kB / 0.6013 GB, free: 13.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006246/0.4738, allocations: 114.6 kB / 0.6014 GB, free: 13.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.4758, allocations: 1.486 MB / 0.6029 GB, free: 12.28 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004493/0.4762, allocations: 0.8973 MB / 0.6037 GB, free: 11.36 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000325/0.4766, allocations: 68.22 kB / 0.6038 GB, free: 11.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.292e-05/0.4767, allocations: 31.44 kB / 0.6038 GB, free: 11.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4767, allocations: 0 / 0.6038 GB, free: 11.25 MB / 442.7 MB Notification: Performance of Templates: time 0.01117/0.4878, allocations: 6.271 MB / 0.61 GB, free: 4.984 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches