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.001373/0.001373, allocations: 114.9 kB / 17.74 MB, free: 5.324 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.001255/0.001255, allocations: 188.4 kB / 18.67 MB, free: 4.398 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.351/1.351, allocations: 222.9 MB / 242.4 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.1757/0.1757, allocations: 38.05 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 71.89 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3529, allocations: 58.04 MB / 0.5048 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006876/0.3598, allocations: 5.16 MB / 0.5098 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003231/0.3631, allocations: 1.987 MB / 0.5117 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003513/0.3634, allocations: 17.91 kB / 0.5118 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005758/0.3641, allocations: 147.9 kB / 0.5119 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009993/0.3651, allocations: 353.9 kB / 0.5122 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006471/0.3657, allocations: 225.1 kB / 0.5124 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.3668, allocations: 0.696 MB / 0.5131 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006286/0.3674, allocations: 436.5 kB / 0.5135 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.368, allocations: 298.6 kB / 0.5138 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004465/0.3684, allocations: 287 kB / 0.5141 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.488e-05/0.3685, allocations: 51.2 kB / 0.5141 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002575/0.3688, allocations: 93.94 kB / 0.5142 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.369, allocations: 145.5 kB / 0.5144 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002578/0.3692, allocations: 275.8 kB / 0.5146 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008815/0.3701, allocations: 0.6498 MB / 0.5153 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3701, allocations: 1.125 kB / 0.5153 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3701, allocations: 0 / 0.5153 GB, free: 1.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3702, allocations: 0 / 0.5153 GB, free: 1.152 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.001574/0.3717, allocations: 0.8405 MB / 0.5161 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3718, allocations: 12.45 kB / 0.5161 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.3719, allocations: 56.53 kB / 0.5162 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.3727, allocations: 489.6 kB / 0.5166 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.3728, allocations: 28.61 kB / 0.5167 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/0.3728, allocations: 36.06 kB / 0.5167 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008089/0.3737, allocations: 462.5 kB / 0.5171 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.3737, allocations: 5.406 kB / 0.5171 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/0.3737, allocations: 21.44 kB / 0.5172 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.3738, allocations: 9.75 kB / 0.5172 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005622/0.3743, allocations: 273.3 kB / 0.5174 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002494/0.3768, allocations: 1.844 MB / 0.5192 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/0.3774, allocations: 258.9 kB / 0.5195 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.3776, allocations: 86.67 kB / 0.5196 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3776, allocations: 12.19 kB / 0.5196 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003033/0.3779, allocations: 181.9 kB / 0.5197 GB, free: 13.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 3.496e-06/0.3779, allocations: 0 / 0.5197 GB, free: 13.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001892/0.3798, allocations: 0.9079 MB / 0.5206 GB, free: 13.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.3799, allocations: 140.1 kB / 0.5208 GB, free: 13.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004603/0.3804, allocations: 404.7 kB / 0.5211 GB, free: 13.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3804, allocations: 31.86 kB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.3806, allocations: 261.3 kB / 0.5214 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.3807, allocations: 91.08 kB / 0.5215 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3808, allocations: 73.23 kB / 0.5216 GB, free: 12.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.381, allocations: 354.2 kB / 0.5219 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.3812, allocations: 82.08 kB / 0.522 GB, free: 12.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.3814, allocations: 215.4 kB / 0.5222 GB, free: 12.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.3819, allocations: 314.6 kB / 0.5225 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3819, allocations: 2.344 kB / 0.5225 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008579/0.3827, allocations: 426.8 kB / 0.5229 GB, free: 11.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3828, allocations: 7.844 kB / 0.5229 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3828, allocations: 3.969 kB / 0.5229 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004222/0.3832, allocations: 95.53 kB / 0.523 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.3835, allocations: 66.42 kB / 0.5231 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.386, allocations: 2.013 MB / 0.525 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.3863, allocations: 20.77 kB / 0.5251 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.3864, allocations: 18.67 kB / 0.5251 GB, free: 9.844 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.000261/0.3867, allocations: 198.6 kB / 0.5253 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.3867, allocations: 40.28 kB / 0.5253 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006551/0.3874, allocations: 304.2 kB / 0.5256 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3874, allocations: 2.719 kB / 0.5256 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3874, allocations: 1.75 kB / 0.5256 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3874, allocations: 2.875 kB / 0.5256 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.3886, allocations: 0.7705 MB / 0.5264 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3886, allocations: 5.938 kB / 0.5264 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.3888, allocations: 39.77 kB / 0.5264 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000206/0.389, allocations: 50.62 kB / 0.5265 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.3891, allocations: 6.031 kB / 0.5265 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.3904, allocations: 1.542 MB / 0.528 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.3904, allocations: 5.312 kB / 0.528 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.3912, allocations: 0.4977 MB / 0.5285 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.3914, allocations: 127.3 kB / 0.5286 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.3914, allocations: 8.094 kB / 0.5286 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.3917, allocations: 16.91 kB / 0.5286 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.03e-05/0.3917, allocations: 23.81 kB / 0.5286 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.3918, allocations: 6.328 kB / 0.5286 GB, free: 7.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003354/0.3921, allocations: 285.8 kB / 0.5289 GB, free: 6.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3921, allocations: 1.125 kB / 0.5289 GB, free: 6.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.3927, allocations: 107.4 kB / 0.529 GB, free: 6.895 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.0009129/0.3936, allocations: 411.8 kB / 0.5294 GB, free: 6.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008878/0.3945, allocations: 401.2 kB / 0.5298 GB, free: 6.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3945, allocations: 4.188 kB / 0.5298 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004061/0.3949, allocations: 247.6 kB / 0.53 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007213/0.3956, allocations: 126.3 kB / 0.5301 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.3979, allocations: 1.134 MB / 0.5313 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006771/0.3986, allocations: 0.8542 MB / 0.5321 GB, free: 4.859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3988, allocations: 39.83 kB / 0.5321 GB, free: 4.848 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3988, allocations: 0 / 0.5321 GB, free: 4.848 MB / 398.1 MB Notification: Performance of Templates: time 0.01545/0.4142, allocations: 8.239 MB / 0.5402 GB, free: 1.164 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","/var/lib/jenkins1/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