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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.001139, allocations: 108.1 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 187.1 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1718/0.1718, allocations: 38.04 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 59.91 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.4371, allocations: 58.06 MB / 0.5041 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007702/0.4449, allocations: 5.7 MB / 0.5097 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003884/0.4488, allocations: 2.114 MB / 0.5117 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004218/0.4492, allocations: 20.31 kB / 0.5117 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006775/0.4499, allocations: 178.5 kB / 0.5119 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.4512, allocations: 416.8 kB / 0.5123 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008933/0.4521, allocations: 245.4 kB / 0.5125 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.4536, allocations: 0.8414 MB / 0.5134 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007705/0.4544, allocations: 0.5042 MB / 0.5139 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005952/0.455, allocations: 361.1 kB / 0.5142 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005259/0.4556, allocations: 336.8 kB / 0.5145 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.647e-05/0.4557, allocations: 57.92 kB / 0.5146 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.456, allocations: 93.86 kB / 0.5147 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.4562, allocations: 187.5 kB / 0.5149 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000322/0.4565, allocations: 306.2 kB / 0.5151 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.4576, allocations: 0.7372 MB / 0.5159 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4576, allocations: 5.25 kB / 0.5159 GB, free: 0.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4576, allocations: 0 / 0.5159 GB, free: 0.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.4576, allocations: 0 / 0.5159 GB, free: 0.543 MB / 382.1 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.001559/0.4592, allocations: 0.8899 MB / 0.5167 GB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.4593, allocations: 13.67 kB / 0.5168 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.4594, allocations: 61.94 kB / 0.5168 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009977/0.4604, allocations: 0.5243 MB / 0.5173 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.27e-05/0.4605, allocations: 35.47 kB / 0.5174 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.4606, allocations: 45.16 kB / 0.5174 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.4617, allocations: 0.5211 MB / 0.5179 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.4617, allocations: 5.062 kB / 0.5179 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.252e-05/0.4618, allocations: 17.08 kB / 0.5179 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.823e-05/0.4619, allocations: 20.77 kB / 0.5179 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007241/0.4626, allocations: 336.6 kB / 0.5183 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.4659, allocations: 2.052 MB / 0.5203 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005463/0.4664, allocations: 233.9 kB / 0.5205 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.4666, allocations: 80.12 kB / 0.5206 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.4666, allocations: 11.25 kB / 0.5206 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.4671, allocations: 168.3 kB / 0.5207 GB, free: 13.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 3.978e-06/0.4671, allocations: 0 / 0.5207 GB, free: 13.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001947/0.469, allocations: 0.9261 MB / 0.5216 GB, free: 12.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.4691, allocations: 133.3 kB / 0.5218 GB, free: 12.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005917/0.4697, allocations: 424.7 kB / 0.5222 GB, free: 12.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.4698, allocations: 36.23 kB / 0.5222 GB, free: 12.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/0.47, allocations: 295.5 kB / 0.5225 GB, free: 11.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.058e-05/0.4701, allocations: 90.58 kB / 0.5226 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.4703, allocations: 80.95 kB / 0.5227 GB, free: 11.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.4705, allocations: 359.6 kB / 0.523 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.4707, allocations: 84.89 kB / 0.5231 GB, free: 11.42 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.471, allocations: 217.7 kB / 0.5233 GB, free: 11.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005028/0.4715, allocations: 322.9 kB / 0.5236 GB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4716, allocations: 1.094 kB / 0.5236 GB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001016/0.4726, allocations: 446.2 kB / 0.524 GB, free: 10.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4726, allocations: 11.86 kB / 0.524 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4726, allocations: 4.125 kB / 0.524 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004537/0.4731, allocations: 92.58 kB / 0.5241 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/0.4734, allocations: 68.94 kB / 0.5242 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.4758, allocations: 1.833 MB / 0.526 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.4762, allocations: 21.39 kB / 0.526 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.4762, allocations: 18.92 kB / 0.526 GB, free: 9.105 MB / 398.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003169/0.4765, allocations: 201.7 kB / 0.5262 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.658e-05/0.4766, allocations: 52.81 kB / 0.5263 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006144/0.4772, allocations: 278.8 kB / 0.5265 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4773, allocations: 3.938 kB / 0.5265 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4773, allocations: 1.797 kB / 0.5265 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.4773, allocations: 2.609 kB / 0.5265 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/0.4787, allocations: 0.7758 MB / 0.5273 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4787, allocations: 4 kB / 0.5273 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.479, allocations: 53.69 kB / 0.5274 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002312/0.4792, allocations: 50.12 kB / 0.5274 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.4793, allocations: 8.047 kB / 0.5274 GB, free: 8.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/0.4807, allocations: 1.537 MB / 0.5289 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4807, allocations: 1.469 kB / 0.5289 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007969/0.4815, allocations: 481.2 kB / 0.5294 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.4817, allocations: 138.5 kB / 0.5295 GB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.554e-05/0.4818, allocations: 12.78 kB / 0.5295 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.482, allocations: 16.92 kB / 0.5295 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.4821, allocations: 21.69 kB / 0.5296 GB, free: 6.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.4821, allocations: 14.67 kB / 0.5296 GB, free: 6.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004111/0.4825, allocations: 298 kB / 0.5298 GB, free: 6.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4825, allocations: 0 / 0.5298 GB, free: 6.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006093/0.4832, allocations: 111.7 kB / 0.53 GB, free: 6.168 MB / 398.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009379/0.4841, allocations: 398.5 kB / 0.5303 GB, free: 5.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008443/0.485, allocations: 395.8 kB / 0.5307 GB, free: 5.762 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.485, allocations: 0 / 0.5307 GB, free: 5.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.4854, allocations: 239.4 kB / 0.5309 GB, free: 5.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007062/0.4861, allocations: 135.4 kB / 0.5311 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.4881, allocations: 1.186 MB / 0.5322 GB, free: 4.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.4887, allocations: 0.8791 MB / 0.5331 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002541/0.4889, allocations: 67.84 kB / 0.5332 GB, free: 4.082 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.662e-05/0.489, allocations: 34.17 kB / 0.5332 GB, free: 4.074 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.489, allocations: 0 / 0.5332 GB, free: 4.074 MB / 398.1 MB Notification: Performance of Templates: time 0.01528/0.5043, allocations: 6.548 MB / 0.5396 GB, free: 1.305 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches