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.001427/0.001427, allocations: 176.2 kB / 17.4 MB, free: 4.301 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.447/1.447, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.0007333/0.0007334, allocations: 93.53 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1724/0.1724, allocations: 38.08 MB / 358.3 MB, free: 1.711 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 12 kB / 425.2 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2735, allocations: 56.32 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.4196, allocations: 102.8 MB / 0.5706 GB, free: 15.46 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001792/0.4214, allocations: 0.886 MB / 0.5715 GB, free: 14.58 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04335/0.4648, allocations: 16.72 MB / 0.5878 GB, free: 13.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4648, allocations: 3.938 kB / 0.5878 GB, free: 13.66 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.732e-05/0.4649, allocations: 15.94 kB / 0.5879 GB, free: 13.65 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.001351/0.4662, allocations: 0.8286 MB / 0.5887 GB, free: 12.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.4663, allocations: 12.02 kB / 0.5887 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.4664, allocations: 64.19 kB / 0.5887 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.4675, allocations: 0.5923 MB / 0.5893 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.4675, allocations: 29.38 kB / 0.5893 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.4676, allocations: 64.16 kB / 0.5894 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008264/0.4684, allocations: 0.5196 MB / 0.5899 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.4685, allocations: 3.938 kB / 0.5899 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.4685, allocations: 16 kB / 0.5899 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.4685, allocations: 12 kB / 0.5899 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005294/0.4691, allocations: 327.7 kB / 0.5903 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00262/0.4717, allocations: 2.084 MB / 0.5923 GB, free: 8.852 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004467/0.4722, allocations: 234.8 kB / 0.5925 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.4723, allocations: 82.55 kB / 0.5926 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.4723, allocations: 4 kB / 0.5926 GB, free: 8.504 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.4726, allocations: 169.7 kB / 0.5928 GB, free: 8.316 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.556e-06/0.4726, allocations: 0 / 0.5928 GB, free: 8.316 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.001717/0.4744, allocations: 0.9142 MB / 0.5937 GB, free: 7.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.954e-05/0.4745, allocations: 140.5 kB / 0.5938 GB, free: 7.172 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005324/0.475, allocations: 429.8 kB / 0.5942 GB, free: 6.742 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.475, allocations: 33.7 kB / 0.5942 GB, free: 6.703 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.4753, allocations: 291.6 kB / 0.5945 GB, free: 6.414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.053e-05/0.4753, allocations: 90.97 kB / 0.5946 GB, free: 6.324 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.4754, allocations: 8 kB / 0.5946 GB, free: 6.316 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.4755, allocations: 355.3 kB / 0.5949 GB, free: 5.961 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4757, allocations: 80.84 kB / 0.595 GB, free: 5.883 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.476, allocations: 233.7 kB / 0.5952 GB, free: 5.594 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000408/0.4764, allocations: 321.5 kB / 0.5955 GB, free: 5.223 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4764, allocations: 0 / 0.5955 GB, free: 5.223 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008332/0.4773, allocations: 443.3 kB / 0.596 GB, free: 4.781 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.4773, allocations: 11.88 kB / 0.596 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4773, allocations: 8 kB / 0.596 GB, free: 4.762 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003887/0.4777, allocations: 89.19 kB / 0.5961 GB, free: 4.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.478, allocations: 75.84 kB / 0.5961 GB, free: 4.598 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.4799, allocations: 1.695 MB / 0.5978 GB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.4802, allocations: 19.98 kB / 0.5978 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.4803, allocations: 20.06 kB / 0.5978 GB, free: 2.73 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.0003159/0.4806, allocations: 221.5 kB / 0.598 GB, free: 2.504 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.579e-05/0.4807, allocations: 43.44 kB / 0.5981 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005611/0.4812, allocations: 278.1 kB / 0.5984 GB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.4813, allocations: 4 kB / 0.5984 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.4813, allocations: 0 / 0.5984 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.4813, allocations: 7.938 kB / 0.5984 GB, free: 2.168 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.4824, allocations: 0.7687 MB / 0.5991 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4825, allocations: 4 kB / 0.5991 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.4827, allocations: 43.97 kB / 0.5992 GB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/0.4829, allocations: 44.81 kB / 0.5992 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.483, allocations: 27.91 kB / 0.5992 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.4843, allocations: 1.425 MB / 0.6006 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4843, allocations: 4.062 kB / 0.6006 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.485, allocations: 481.8 kB / 0.6011 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.4852, allocations: 140.5 kB / 0.6012 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.4852, allocations: 4 kB / 0.6012 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.4854, allocations: 23.92 kB / 0.6012 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.4855, allocations: 19.97 kB / 0.6013 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.4855, allocations: 8 kB / 0.6013 GB, free: 14.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003461/0.4859, allocations: 295.1 kB / 0.6016 GB, free: 14.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4859, allocations: 0 / 0.6016 GB, free: 14.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005442/0.4865, allocations: 127.9 kB / 0.6017 GB, free: 14.54 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.0009455/0.4874, allocations: 440.3 kB / 0.6021 GB, free: 14.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008221/0.4882, allocations: 383.1 kB / 0.6025 GB, free: 13.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4883, allocations: 0 / 0.6025 GB, free: 13.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003907/0.4887, allocations: 239.3 kB / 0.6027 GB, free: 13.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007587/0.4894, allocations: 138.2 kB / 0.6028 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.4917, allocations: 1.475 MB / 0.6043 GB, free: 11.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.4922, allocations: 0.8817 MB / 0.6051 GB, free: 10.97 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002986/0.4925, allocations: 68.22 kB / 0.6052 GB, free: 10.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.074e-05/0.4926, allocations: 31.44 kB / 0.6052 GB, free: 10.87 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4926, allocations: 0 / 0.6052 GB, free: 10.87 MB / 442.7 MB Notification: Performance of Templates: time 0.01323/0.5058, allocations: 6.34 MB / 0.6114 GB, free: 4.535 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/jenkins1/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