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.001871/0.00187, allocations: 109 kB / 17.06 MB, free: 5.961 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.002167/0.002167, allocations: 200 kB / 18 MB, free: 5.051 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.484/1.484, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1821/0.1821, allocations: 38.06 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.89 kB / 458.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4818/0.4839, allocations: 58.06 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007639/0.4916, allocations: 5.158 MB / 0.5091 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.4949, allocations: 1.98 MB / 0.5111 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.4953, allocations: 18.28 kB / 0.5111 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006571/0.4959, allocations: 146.6 kB / 0.5112 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001066/0.497, allocations: 360.8 kB / 0.5116 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006791/0.4977, allocations: 216.2 kB / 0.5118 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.4988, allocations: 0.6961 MB / 0.5125 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006881/0.4995, allocations: 446 kB / 0.5129 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.5, allocations: 289.6 kB / 0.5132 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000472/0.5004, allocations: 283.1 kB / 0.5134 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.05e-05/0.5005, allocations: 47.28 kB / 0.5135 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002576/0.5008, allocations: 92.92 kB / 0.5136 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.501, allocations: 154.3 kB / 0.5137 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00027/0.5013, allocations: 271.2 kB / 0.514 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000981/0.5023, allocations: 0.6577 MB / 0.5146 GB, free: 1.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.5023, allocations: 0 / 0.5146 GB, free: 1.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5023, allocations: 0 / 0.5146 GB, free: 1.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.5023, allocations: 1 kB / 0.5146 GB, free: 1.062 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.001619/0.5039, allocations: 0.8572 MB / 0.5155 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.504, allocations: 13.27 kB / 0.5155 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.5041, allocations: 57.3 kB / 0.5155 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007593/0.5049, allocations: 492.2 kB / 0.516 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.5049, allocations: 27.91 kB / 0.516 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.113e-05/0.505, allocations: 46.98 kB / 0.5161 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008708/0.5059, allocations: 453.7 kB / 0.5165 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.5059, allocations: 5.672 kB / 0.5165 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/0.506, allocations: 20.19 kB / 0.5165 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.506, allocations: 12.97 kB / 0.5165 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005964/0.5066, allocations: 274.5 kB / 0.5168 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/0.5093, allocations: 1.852 MB / 0.5186 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005941/0.51, allocations: 249.6 kB / 0.5188 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.5101, allocations: 87.44 kB / 0.5189 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.5102, allocations: 15.42 kB / 0.5189 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.5105, allocations: 171.7 kB / 0.5191 GB, free: 13.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.5105, allocations: 1.406 kB / 0.5191 GB, free: 13.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001902/0.5124, allocations: 0.9265 MB / 0.52 GB, free: 13.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.5125, allocations: 132.7 kB / 0.5201 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005764/0.5131, allocations: 403.9 kB / 0.5205 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.5131, allocations: 36.86 kB / 0.5206 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.5134, allocations: 263.7 kB / 0.5208 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.788e-05/0.5135, allocations: 99.53 kB / 0.5209 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.5136, allocations: 75.09 kB / 0.521 GB, free: 12.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5138, allocations: 354 kB / 0.5213 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.514, allocations: 82.55 kB / 0.5214 GB, free: 12.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.5143, allocations: 209.7 kB / 0.5216 GB, free: 11.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004652/0.5148, allocations: 316.3 kB / 0.5219 GB, free: 11.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.5148, allocations: 1.156 kB / 0.5219 GB, free: 11.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008947/0.5157, allocations: 432.7 kB / 0.5223 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.5157, allocations: 6.906 kB / 0.5223 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.5157, allocations: 5.031 kB / 0.5223 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004465/0.5162, allocations: 100.4 kB / 0.5224 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.5164, allocations: 60.81 kB / 0.5225 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/0.519, allocations: 2.016 MB / 0.5244 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.5192, allocations: 17.48 kB / 0.5245 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.5193, allocations: 18.55 kB / 0.5245 GB, free: 9.707 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.0002612/0.5196, allocations: 198.5 kB / 0.5247 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.614e-05/0.5196, allocations: 46.95 kB / 0.5247 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006666/0.5203, allocations: 301.3 kB / 0.525 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.5203, allocations: 4.125 kB / 0.525 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.5203, allocations: 1.375 kB / 0.525 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.5204, allocations: 3.016 kB / 0.525 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.5216, allocations: 0.7737 MB / 0.5258 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5216, allocations: 1.281 kB / 0.5258 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.5219, allocations: 40.17 kB / 0.5258 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.5221, allocations: 49.84 kB / 0.5258 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.5221, allocations: 7.609 kB / 0.5259 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00142/0.5235, allocations: 1.542 MB / 0.5274 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5236, allocations: 1.5 kB / 0.5274 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008526/0.5244, allocations: 0.4936 MB / 0.5278 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.5246, allocations: 131.4 kB / 0.528 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.4e-05/0.5246, allocations: 7.391 kB / 0.528 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.5249, allocations: 17.86 kB / 0.528 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.245e-05/0.525, allocations: 26.92 kB / 0.528 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.525, allocations: 15 kB / 0.528 GB, free: 6.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003837/0.5254, allocations: 286.9 kB / 0.5283 GB, free: 6.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5254, allocations: 0 / 0.5283 GB, free: 6.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.526, allocations: 107.1 kB / 0.5284 GB, free: 6.746 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.001001/0.527, allocations: 403.5 kB / 0.5288 GB, free: 6.551 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009906/0.528, allocations: 405.4 kB / 0.5292 GB, free: 6.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.528, allocations: 4.188 kB / 0.5292 GB, free: 6.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004421/0.5285, allocations: 243.5 kB / 0.5294 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007447/0.5292, allocations: 133.8 kB / 0.5295 GB, free: 6.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.5314, allocations: 1.101 MB / 0.5306 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005644/0.5319, allocations: 0.8607 MB / 0.5315 GB, free: 4.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000254/0.5322, allocations: 58.23 kB / 0.5315 GB, free: 4.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.59e-05/0.5323, allocations: 34.03 kB / 0.5315 GB, free: 4.715 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5323, allocations: 0 / 0.5315 GB, free: 4.715 MB / 398.1 MB Notification: Performance of Templates: time 0.01439/0.5467, allocations: 6.278 MB / 0.5377 GB, free: 2.348 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