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.001421/0.001421, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001555/0.001555, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.359/1.359, allocations: 222.9 MB / 242.4 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.1817/0.1817, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.12 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3536, allocations: 58.05 MB / 0.5048 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006443/0.3601, allocations: 5.699 MB / 0.5103 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.3632, allocations: 2.127 MB / 0.5124 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003235/0.3636, allocations: 15.97 kB / 0.5124 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005888/0.3642, allocations: 176.9 kB / 0.5126 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000957/0.3652, allocations: 415 kB / 0.513 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006167/0.3658, allocations: 254.5 kB / 0.5132 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.3669, allocations: 0.8368 MB / 0.514 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000612/0.3675, allocations: 0.5004 MB / 0.5145 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.368, allocations: 357.3 kB / 0.5149 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004644/0.3685, allocations: 340.1 kB / 0.5152 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.1e-05/0.3686, allocations: 54.12 kB / 0.5152 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.3689, allocations: 101.2 kB / 0.5153 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.369, allocations: 178.4 kB / 0.5155 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002712/0.3693, allocations: 315 kB / 0.5158 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008836/0.3702, allocations: 0.7339 MB / 0.5165 GB, free: 244 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3702, allocations: 1.125 kB / 0.5165 GB, free: 244 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3702, allocations: 0 / 0.5165 GB, free: 244 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3703, allocations: 0 / 0.5165 GB, free: 244 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.001659/0.3719, allocations: 0.8938 MB / 0.5174 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.372, allocations: 13.52 kB / 0.5174 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.3721, allocations: 62.06 kB / 0.5175 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009754/0.3731, allocations: 0.5247 MB / 0.518 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.3731, allocations: 34.69 kB / 0.518 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.3733, allocations: 42.47 kB / 0.5181 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009941/0.3743, allocations: 0.5163 MB / 0.5186 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.3743, allocations: 2.359 kB / 0.5186 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.486e-05/0.3744, allocations: 20.69 kB / 0.5186 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.351e-05/0.3745, allocations: 16.22 kB / 0.5186 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006573/0.3751, allocations: 341.7 kB / 0.5189 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/0.3779, allocations: 2.055 MB / 0.5209 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.3783, allocations: 233.8 kB / 0.5212 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.3785, allocations: 83.81 kB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.3785, allocations: 3.844 kB / 0.5212 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.3788, allocations: 165 kB / 0.5214 GB, free: 12.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.522e-06/0.3788, allocations: 0 / 0.5214 GB, free: 12.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001693/0.3805, allocations: 0.9252 MB / 0.5223 GB, free: 12.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.3806, allocations: 139.2 kB / 0.5224 GB, free: 12.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005394/0.3812, allocations: 427.2 kB / 0.5228 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.3812, allocations: 30.64 kB / 0.5229 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.3814, allocations: 304.9 kB / 0.5232 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.646e-05/0.3815, allocations: 87.09 kB / 0.5232 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3817, allocations: 77.5 kB / 0.5233 GB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3819, allocations: 359 kB / 0.5237 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.382, allocations: 87.97 kB / 0.5237 GB, free: 11.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.3823, allocations: 223 kB / 0.524 GB, free: 10.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004496/0.3828, allocations: 321.1 kB / 0.5243 GB, free: 10.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3828, allocations: 6.25 kB / 0.5243 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008652/0.3837, allocations: 441.2 kB / 0.5247 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3837, allocations: 6.875 kB / 0.5247 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3837, allocations: 5.5 kB / 0.5247 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004188/0.3841, allocations: 100.8 kB / 0.5248 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.3844, allocations: 68.8 kB / 0.5249 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/0.3865, allocations: 1.819 MB / 0.5266 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.3868, allocations: 21.44 kB / 0.5267 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.3869, allocations: 19.11 kB / 0.5267 GB, free: 8.805 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.0002763/0.3871, allocations: 205.3 kB / 0.5269 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.3872, allocations: 52.83 kB / 0.5269 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005876/0.3878, allocations: 290.2 kB / 0.5272 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3878, allocations: 4.875 kB / 0.5272 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3878, allocations: 1.25 kB / 0.5272 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3878, allocations: 2.062 kB / 0.5272 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.3891, allocations: 0.7713 MB / 0.528 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3891, allocations: 2.109 kB / 0.528 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002665/0.3893, allocations: 57.12 kB / 0.528 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.3896, allocations: 48.78 kB / 0.5281 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3896, allocations: 8.641 kB / 0.5281 GB, free: 7.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.391, allocations: 1.542 MB / 0.5296 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.391, allocations: 2.078 kB / 0.5296 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/0.3918, allocations: 480.6 kB / 0.53 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.392, allocations: 138.5 kB / 0.5302 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.82e-05/0.392, allocations: 11.33 kB / 0.5302 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.3923, allocations: 18.08 kB / 0.5302 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.3923, allocations: 17.7 kB / 0.5302 GB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.3924, allocations: 10.28 kB / 0.5302 GB, free: 6.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003805/0.3928, allocations: 298.1 kB / 0.5305 GB, free: 5.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3928, allocations: 0 / 0.5305 GB, free: 5.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.3934, allocations: 112.8 kB / 0.5306 GB, free: 5.859 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.000956/0.3943, allocations: 408.3 kB / 0.531 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008095/0.3951, allocations: 390.2 kB / 0.5314 GB, free: 5.449 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3951, allocations: 2.5 kB / 0.5314 GB, free: 5.449 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.3955, allocations: 241.5 kB / 0.5316 GB, free: 5.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007191/0.3963, allocations: 127 kB / 0.5317 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.3984, allocations: 1.225 MB / 0.5329 GB, free: 4.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.399, allocations: 0.8767 MB / 0.5338 GB, free: 3.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3991, allocations: 37.19 kB / 0.5338 GB, free: 3.754 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3991, allocations: 0 / 0.5338 GB, free: 3.754 MB / 398.1 MB Notification: Performance of Templates: time 0.01447/0.4136, allocations: 8.859 MB / 0.5425 GB, free: 15.59 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins1/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