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.00111/0.00111, allocations: 112.9 kB / 17.06 MB, free: 5.992 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.001106/0.001106, allocations: 196 kB / 18.01 MB, free: 5.074 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 458.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4483/0.4496, allocations: 58.06 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007566/0.4572, allocations: 5.695 MB / 0.5097 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003666/0.4609, allocations: 2.115 MB / 0.5117 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005247/0.4615, allocations: 19.97 kB / 0.5117 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006876/0.4622, allocations: 173.1 kB / 0.5119 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.4634, allocations: 416.8 kB / 0.5123 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007553/0.4642, allocations: 251.2 kB / 0.5126 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001478/0.4657, allocations: 0.8363 MB / 0.5134 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000795/0.4665, allocations: 0.4992 MB / 0.5139 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000669/0.4672, allocations: 347.4 kB / 0.5142 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005463/0.4677, allocations: 341.5 kB / 0.5145 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.4678, allocations: 56.94 kB / 0.5146 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003086/0.4681, allocations: 105.8 kB / 0.5147 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.4684, allocations: 181.3 kB / 0.5148 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.4687, allocations: 304.2 kB / 0.5151 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.4699, allocations: 0.7406 MB / 0.5159 GB, free: 336 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4699, allocations: 0.9688 kB / 0.5159 GB, free: 336 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4699, allocations: 0 / 0.5159 GB, free: 336 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.47, allocations: 0 / 0.5159 GB, free: 336 kB / 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.001831/0.4718, allocations: 0.9091 MB / 0.5167 GB, free: 15.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4718, allocations: 13.33 kB / 0.5168 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.472, allocations: 67.56 kB / 0.5168 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.4731, allocations: 0.5314 MB / 0.5173 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/0.4731, allocations: 30.91 kB / 0.5174 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.4733, allocations: 51.06 kB / 0.5174 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.4743, allocations: 0.5158 MB / 0.5179 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.4743, allocations: 1.281 kB / 0.5179 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.417e-05/0.4744, allocations: 21.48 kB / 0.5179 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.328e-05/0.4745, allocations: 16.38 kB / 0.518 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.4751, allocations: 333 kB / 0.5183 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.4783, allocations: 2.065 MB / 0.5203 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.4788, allocations: 234.5 kB / 0.5205 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.479, allocations: 79.41 kB / 0.5206 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.479, allocations: 6.625 kB / 0.5206 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003484/0.4794, allocations: 167.3 kB / 0.5208 GB, free: 12.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.4794, allocations: 5.094 kB / 0.5208 GB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002117/0.4815, allocations: 0.9364 MB / 0.5217 GB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4817, allocations: 141 kB / 0.5218 GB, free: 12.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006968/0.4824, allocations: 434.2 kB / 0.5222 GB, free: 11.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.4824, allocations: 30.83 kB / 0.5223 GB, free: 11.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002855/0.4827, allocations: 302.4 kB / 0.5225 GB, free: 11.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.462e-05/0.4828, allocations: 90.19 kB / 0.5226 GB, free: 11.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.4829, allocations: 72.45 kB / 0.5227 GB, free: 11.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.4832, allocations: 360.6 kB / 0.523 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.4834, allocations: 87.3 kB / 0.5231 GB, free: 11.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.4837, allocations: 223.2 kB / 0.5233 GB, free: 10.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/0.4842, allocations: 329.7 kB / 0.5237 GB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4842, allocations: 1.375 kB / 0.5237 GB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009708/0.4852, allocations: 442.3 kB / 0.5241 GB, free: 10.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.4852, allocations: 6.656 kB / 0.5241 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.4852, allocations: 5.078 kB / 0.5241 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/0.4857, allocations: 93.75 kB / 0.5242 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.486, allocations: 76.03 kB / 0.5242 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.4883, allocations: 1.83 MB / 0.526 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.4886, allocations: 17.86 kB / 0.5261 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.4886, allocations: 22.42 kB / 0.5261 GB, free: 8.828 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.0003025/0.4889, allocations: 208.7 kB / 0.5263 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.932e-05/0.489, allocations: 49.03 kB / 0.5263 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006099/0.4896, allocations: 281.8 kB / 0.5266 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4897, allocations: 3.719 kB / 0.5266 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4897, allocations: 2.328 kB / 0.5266 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.4897, allocations: 6 kB / 0.5266 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.4911, allocations: 0.7797 MB / 0.5274 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4911, allocations: 1.031 kB / 0.5274 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/0.4914, allocations: 50.12 kB / 0.5274 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002104/0.4916, allocations: 48.2 kB / 0.5275 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.4916, allocations: 12.36 kB / 0.5275 GB, free: 7.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.493, allocations: 1.538 MB / 0.529 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.493, allocations: 1.219 kB / 0.529 GB, free: 6.488 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007943/0.4938, allocations: 490.1 kB / 0.5294 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.494, allocations: 134.8 kB / 0.5296 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.4941, allocations: 11.77 kB / 0.5296 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.4943, allocations: 14 kB / 0.5296 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.4944, allocations: 22.19 kB / 0.5296 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.4944, allocations: 6.344 kB / 0.5296 GB, free: 6.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005047/0.4949, allocations: 298.3 kB / 0.5299 GB, free: 5.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.495, allocations: 0 / 0.5299 GB, free: 5.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006792/0.4956, allocations: 115 kB / 0.53 GB, free: 5.887 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.0009844/0.4966, allocations: 399.6 kB / 0.5304 GB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.4975, allocations: 399 kB / 0.5308 GB, free: 5.473 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4976, allocations: 5.594 kB / 0.5308 GB, free: 5.469 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.498, allocations: 234.3 kB / 0.531 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007594/0.4987, allocations: 145 kB / 0.5311 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.5009, allocations: 1.203 MB / 0.5323 GB, free: 4.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.5015, allocations: 0.8755 MB / 0.5332 GB, free: 3.793 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002595/0.5017, allocations: 64.36 kB / 0.5332 GB, free: 3.773 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.805e-05/0.5018, allocations: 34.16 kB / 0.5333 GB, free: 3.766 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5018, allocations: 3.938 kB / 0.5333 GB, free: 3.762 MB / 398.1 MB Notification: Performance of Templates: time 0.0141/0.5159, allocations: 6.537 MB / 0.5397 GB, free: 0.9883 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