Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008262/0.0008262, allocations: 86.7 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.111e-05/1.113e-05, allocations: 0 / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08003/0.08005, allocations: 47.58 MB / 363.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.289/0.3691, allocations: 94.34 MB / 457.4 MB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.3694, allocations: 78.2 kB / 457.5 MB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1138/0.4833, allocations: 44.09 MB / 0.4898 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4833, allocations: 0 / 0.4898 GB, free: 10.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.642e-05/0.4834, allocations: 32 kB / 0.4899 GB, free: 10.86 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002734/0.4861, allocations: 1.605 MB / 0.4914 GB, free: 9.203 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.4862, allocations: 12.03 kB / 0.4914 GB, free: 9.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009279/0.4871, allocations: 289.8 kB / 0.4917 GB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002233/0.4894, allocations: 1.196 MB / 0.4929 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.4895, allocations: 52 kB / 0.4929 GB, free: 7.602 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001874/0.4896, allocations: 95.91 kB / 0.493 GB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001723/0.4914, allocations: 0.8731 MB / 0.4939 GB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.4936, allocations: 1.209 MB / 0.4951 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-05/0.4937, allocations: 11.89 kB / 0.4951 GB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.711e-05/0.4938, allocations: 4 kB / 0.4951 GB, free: 5.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.4938, allocations: 36 kB / 0.4951 GB, free: 5.309 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008398/0.5022, allocations: 6.121 MB / 0.5011 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.5035, allocations: 0.5322 MB / 0.5016 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/0.5042, allocations: 395.2 kB / 0.502 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.356e-05/0.5043, allocations: 16.53 kB / 0.502 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.5043, allocations: 43.12 kB / 0.502 GB, free: 13.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 3.536e-06/0.5043, allocations: 0 / 0.502 GB, free: 13.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.003199/0.5075, allocations: 1.662 MB / 0.5037 GB, free: 12.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.5076, allocations: 111.6 kB / 0.5038 GB, free: 12.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.5089, allocations: 0.8936 MB / 0.5046 GB, free: 11.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.5089, allocations: 25.7 kB / 0.5047 GB, free: 11.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005543/0.5095, allocations: 0.8714 MB / 0.5055 GB, free: 10.22 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/0.5097, allocations: 248.3 kB / 0.5058 GB, free: 9.977 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.533e-05/0.5097, allocations: 4 kB / 0.5058 GB, free: 9.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5098, allocations: 345.9 kB / 0.5061 GB, free: 9.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.5102, allocations: 226.6 kB / 0.5063 GB, free: 9.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006615/0.5109, allocations: 0.6694 MB / 0.507 GB, free: 8.527 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005572/0.5115, allocations: 352.2 kB / 0.5073 GB, free: 8.184 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.5115, allocations: 8 kB / 0.5073 GB, free: 8.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002012/0.5135, allocations: 1.064 MB / 0.5083 GB, free: 7.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.5135, allocations: 12 kB / 0.5084 GB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.5136, allocations: 12 kB / 0.5084 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.514, allocations: 123.1 kB / 0.5085 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008726/0.5148, allocations: 263.6 kB / 0.5087 GB, free: 6.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.5179, allocations: 4.061 MB / 0.5127 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009573/0.5189, allocations: 51.97 kB / 0.5127 GB, free: 2.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.857e-05/0.519, allocations: 56 kB / 0.5128 GB, free: 2.164 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000297/0.5193, allocations: 148.4 kB / 0.5129 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.5195, allocations: 126.5 kB / 0.5131 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.521, allocations: 0.7107 MB / 0.5138 GB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.521, allocations: 12.11 kB / 0.5138 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.521, allocations: 4 kB / 0.5138 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.521, allocations: 0 / 0.5138 GB, free: 1.137 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003304/0.5243, allocations: 2.013 MB / 0.5157 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.5243, allocations: 4 kB / 0.5157 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.5249, allocations: 132.3 kB / 0.5159 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.5253, allocations: 114.5 kB / 0.516 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.5253, allocations: 12 kB / 0.516 GB, free: 14.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0032/0.5285, allocations: 4.167 MB / 0.5201 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.5285, allocations: 7.953 kB / 0.5201 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.5304, allocations: 1.358 MB / 0.5214 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004347/0.5308, allocations: 263.5 kB / 0.5216 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.531, allocations: 4 kB / 0.5216 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.5316, allocations: 35.97 kB / 0.5217 GB, free: 8.426 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5317, allocations: 64.52 kB / 0.5217 GB, free: 8.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.5318, allocations: 28 kB / 0.5218 GB, free: 8.336 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009597/0.5327, allocations: 0.6556 MB / 0.5224 GB, free: 7.676 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5327, allocations: 0 / 0.5224 GB, free: 7.676 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001245/0.534, allocations: 304 kB / 0.5227 GB, free: 7.379 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000486/0.5345, allocations: 351.3 kB / 0.523 GB, free: 7.031 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.536, allocations: 0.9804 MB / 0.524 GB, free: 6.027 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.536, allocations: 0.625 kB / 0.524 GB, free: 6.027 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.5369, allocations: 0.6397 MB / 0.5246 GB, free: 5.352 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.5382, allocations: 298.3 kB / 0.5249 GB, free: 5.059 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/0.5426, allocations: 2.248 MB / 0.5271 GB, free: 2.734 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008118/0.5434, allocations: 1.252 MB / 0.5283 GB, free: 1.445 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007302/0.5442, allocations: 166.8 kB / 0.5285 GB, free: 1.277 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.5444, allocations: 83.42 kB / 0.5286 GB, free: 1.195 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5444, allocations: 4 kB / 0.5286 GB, free: 1.191 MB / 410.7 MB Notification: Performance of Templates: time 0.2028/0.7472, allocations: 14.96 MB / 0.5432 GB, free: 108.3 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches