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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001242/0.001242, allocations: 191 kB / 18 MB, free: 4.977 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1871/0.1871, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 63.89 kB / 458.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4485/0.4499, allocations: 58.04 MB / 0.5041 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007218/0.4572, allocations: 5.168 MB / 0.5091 GB, free: 4.246 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00397/0.4612, allocations: 1.983 MB / 0.5111 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005285/0.4618, allocations: 18 kB / 0.5111 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006938/0.4625, allocations: 146.5 kB / 0.5112 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.4639, allocations: 360.8 kB / 0.5116 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007927/0.4647, allocations: 221.6 kB / 0.5118 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.4657, allocations: 0.7013 MB / 0.5125 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006552/0.4664, allocations: 439 kB / 0.5129 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000531/0.467, allocations: 299.4 kB / 0.5132 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004577/0.4674, allocations: 282.9 kB / 0.5134 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.558e-05/0.4675, allocations: 47 kB / 0.5135 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.4678, allocations: 97.44 kB / 0.5136 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.468, allocations: 149.6 kB / 0.5137 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003129/0.4683, allocations: 272.3 kB / 0.514 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009878/0.4693, allocations: 0.6544 MB / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.4693, allocations: 0 / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4693, allocations: 0 / 0.5146 GB, free: 1.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.4694, allocations: 1 kB / 0.5146 GB, free: 1.105 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001567/0.4709, allocations: 0.8358 MB / 0.5154 GB, free: 492 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.471, allocations: 12.67 kB / 0.5155 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.4711, allocations: 57.31 kB / 0.5155 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007688/0.4719, allocations: 489.1 kB / 0.516 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.4719, allocations: 28.06 kB / 0.516 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.001e-05/0.472, allocations: 40.94 kB / 0.516 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007797/0.4728, allocations: 454.3 kB / 0.5165 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.4729, allocations: 1.094 kB / 0.5165 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.554e-05/0.4729, allocations: 16.69 kB / 0.5165 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.4729, allocations: 14.03 kB / 0.5165 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007069/0.4736, allocations: 281.7 kB / 0.5168 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/0.4767, allocations: 1.844 MB / 0.5186 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006447/0.4773, allocations: 250.8 kB / 0.5188 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.4775, allocations: 87.92 kB / 0.5189 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.601e-05/0.4775, allocations: 14.84 kB / 0.5189 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.4779, allocations: 179.9 kB / 0.5191 GB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 4.178e-06/0.4779, allocations: 0 / 0.5191 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.002076/0.48, allocations: 0.9128 MB / 0.52 GB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.4801, allocations: 133.6 kB / 0.5201 GB, free: 13.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006697/0.4808, allocations: 406.7 kB / 0.5205 GB, free: 12.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.4809, allocations: 31.89 kB / 0.5205 GB, free: 12.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.4811, allocations: 262.2 kB / 0.5208 GB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-05/0.4812, allocations: 90.52 kB / 0.5209 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.4814, allocations: 74.45 kB / 0.5209 GB, free: 12.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4816, allocations: 353.6 kB / 0.5213 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.4818, allocations: 82.34 kB / 0.5213 GB, free: 12.24 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003499/0.4821, allocations: 214.8 kB / 0.5215 GB, free: 12.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.4827, allocations: 316 kB / 0.5218 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4827, allocations: 1.219 kB / 0.5219 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001021/0.4838, allocations: 427.1 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.4838, allocations: 6.406 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4838, allocations: 5.688 kB / 0.5223 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005097/0.4843, allocations: 99.52 kB / 0.5224 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.4846, allocations: 65.38 kB / 0.5224 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002763/0.4874, allocations: 2.014 MB / 0.5244 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/0.4877, allocations: 21.47 kB / 0.5244 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.4877, allocations: 17.45 kB / 0.5244 GB, free: 9.797 MB / 398.1 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 (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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002526/0.488, allocations: 194.3 kB / 0.5246 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.635e-05/0.4881, allocations: 40.81 kB / 0.5247 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006615/0.4887, allocations: 304.6 kB / 0.5249 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.4887, allocations: 2.75 kB / 0.5249 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.4888, allocations: 5.312 kB / 0.525 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.4888, allocations: 2.734 kB / 0.525 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.49, allocations: 0.7679 MB / 0.5257 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.49, allocations: 0.5156 kB / 0.5257 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.4903, allocations: 40.38 kB / 0.5257 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002205/0.4905, allocations: 53.47 kB / 0.5258 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.4905, allocations: 7.938 kB / 0.5258 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.492, allocations: 1.545 MB / 0.5273 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.492, allocations: 1.812 kB / 0.5273 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008325/0.4928, allocations: 0.4976 MB / 0.5278 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.493, allocations: 126.8 kB / 0.5279 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.493, allocations: 8.594 kB / 0.5279 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.4933, allocations: 17.33 kB / 0.5279 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.4934, allocations: 30.36 kB / 0.528 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.4934, allocations: 7.031 kB / 0.528 GB, free: 7.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000396/0.4938, allocations: 286.9 kB / 0.5283 GB, free: 6.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4938, allocations: 0 / 0.5283 GB, free: 6.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006249/0.4944, allocations: 107.5 kB / 0.5284 GB, free: 6.844 MB / 398.1 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 (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.001062/0.4955, allocations: 397 kB / 0.5287 GB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009797/0.4965, allocations: 403.9 kB / 0.5291 GB, free: 6.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4965, allocations: 5.5 kB / 0.5291 GB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004661/0.497, allocations: 243.8 kB / 0.5294 GB, free: 6.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.4978, allocations: 134.6 kB / 0.5295 GB, free: 6.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.4999, allocations: 1.084 MB / 0.5305 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.5005, allocations: 0.8593 MB / 0.5314 GB, free: 4.855 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002879/0.5008, allocations: 62.52 kB / 0.5314 GB, free: 4.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.957e-05/0.5009, allocations: 34.17 kB / 0.5315 GB, free: 4.832 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5009, allocations: 0 / 0.5315 GB, free: 4.832 MB / 398.1 MB Notification: Performance of Templates: time 0.01721/0.5181, allocations: 6.275 MB / 0.5376 GB, free: 2.473 MB / 398.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches