Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 198.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009036/0.0009036, allocations: 105.7 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002189/0.0002189, allocations: 4 kB / 357.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1849, allocations: 51.48 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.2901, allocations: 96.8 MB / 0.4944 GB, free: 9.758 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.2903, allocations: 83.95 kB / 0.4944 GB, free: 9.676 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2634/0.5537, allocations: 44.74 MB / 0.5381 GB, free: 72.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5538, allocations: 0 / 0.5381 GB, free: 72.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.132e-05/0.5539, allocations: 47.88 kB / 0.5382 GB, free: 72.8 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.0032/0.5571, allocations: 1.822 MB / 0.54 GB, free: 70.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.5571, allocations: 12.03 kB / 0.54 GB, free: 70.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009062/0.558, allocations: 281.5 kB / 0.5402 GB, free: 70.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002072/0.5601, allocations: 1.208 MB / 0.5414 GB, free: 69.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.5602, allocations: 115.1 kB / 0.5415 GB, free: 69.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.5604, allocations: 155.9 kB / 0.5417 GB, free: 69.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/0.5627, allocations: 1.488 MB / 0.5431 GB, free: 67.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-05/0.5628, allocations: 20.19 kB / 0.5431 GB, free: 67.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.5629, allocations: 67.95 kB / 0.5432 GB, free: 67.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.5629, allocations: 36 kB / 0.5432 GB, free: 67.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.5648, allocations: 1.073 MB / 0.5443 GB, free: 66.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006436/0.5712, allocations: 6.408 MB / 0.5506 GB, free: 59.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.5727, allocations: 0.6353 MB / 0.5512 GB, free: 58.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.5727, allocations: 12.5 kB / 0.5512 GB, free: 58.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.5728, allocations: 39.12 kB / 0.5512 GB, free: 58.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.886e-06/0.5728, allocations: 4 kB / 0.5512 GB, free: 58.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004227/0.577, allocations: 2.486 MB / 0.5537 GB, free: 56.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.577, allocations: 115.4 kB / 0.5538 GB, free: 56.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.5783, allocations: 1.1 MB / 0.5548 GB, free: 55.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.5783, allocations: 37.7 kB / 0.5549 GB, free: 55.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003659/0.5787, allocations: 0.8609 MB / 0.5557 GB, free: 54.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.5788, allocations: 268 kB / 0.556 GB, free: 53.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.688e-05/0.5789, allocations: 24 kB / 0.556 GB, free: 53.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.5789, allocations: 345.9 kB / 0.5563 GB, free: 53.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.5795, allocations: 298.5 kB / 0.5566 GB, free: 53.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006443/0.5801, allocations: 0.7412 MB / 0.5573 GB, free: 52.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006419/0.5808, allocations: 415 kB / 0.5577 GB, free: 51.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.5808, allocations: 8 kB / 0.5577 GB, free: 51.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002032/0.5828, allocations: 1.311 MB / 0.559 GB, free: 50.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.5829, allocations: 12 kB / 0.559 GB, free: 50.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/0.5829, allocations: 20 kB / 0.559 GB, free: 50.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.5834, allocations: 150.8 kB / 0.5592 GB, free: 50.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007961/0.5842, allocations: 255.6 kB / 0.5594 GB, free: 50.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002585/0.5868, allocations: 4.348 MB / 0.5637 GB, free: 45.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009642/0.5877, allocations: 67.95 kB / 0.5637 GB, free: 45.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.029e-05/0.5878, allocations: 55.98 kB / 0.5638 GB, free: 45.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0005959/0.5884, allocations: 363.5 kB / 0.5641 GB, free: 44.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.5886, allocations: 142.3 kB / 0.5643 GB, free: 44.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.5902, allocations: 0.8764 MB / 0.5651 GB, free: 43.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5902, allocations: 8 kB / 0.5651 GB, free: 43.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5902, allocations: 0 / 0.5651 GB, free: 43.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5902, allocations: 3.984 kB / 0.5651 GB, free: 43.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.5936, allocations: 2.345 MB / 0.5674 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.5936, allocations: 7.953 kB / 0.5674 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005389/0.5941, allocations: 128.3 kB / 0.5676 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.5945, allocations: 154.4 kB / 0.5677 GB, free: 41.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.5946, allocations: 19.98 kB / 0.5677 GB, free: 41.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.5974, allocations: 4.485 MB / 0.5721 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5974, allocations: 4 kB / 0.5721 GB, free: 36.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.5993, allocations: 1.557 MB / 0.5736 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004259/0.5998, allocations: 283.3 kB / 0.5739 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.5999, allocations: 20 kB / 0.5739 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005895/0.6005, allocations: 43.97 kB / 0.574 GB, free: 34.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.81e-05/0.6006, allocations: 64.38 kB / 0.574 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.6006, allocations: 27.98 kB / 0.5741 GB, free: 33.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009099/0.6016, allocations: 0.8312 MB / 0.5749 GB, free: 33.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6016, allocations: 0 / 0.5749 GB, free: 33.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00112/0.6027, allocations: 372 kB / 0.5752 GB, free: 32.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked 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.0004785/0.6032, allocations: 393.8 kB / 0.5756 GB, free: 32.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.6047, allocations: 1.143 MB / 0.5767 GB, free: 31.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6047, allocations: 5.938 kB / 0.5767 GB, free: 31.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.6054, allocations: 0.7147 MB / 0.5774 GB, free: 30.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.6066, allocations: 336.2 kB / 0.5777 GB, free: 30.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004115/0.6107, allocations: 3.578 MB / 0.5812 GB, free: 26.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.6112, allocations: 1.245 MB / 0.5824 GB, free: 25.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006245/0.6118, allocations: 175.8 kB / 0.5826 GB, free: 25.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.612, allocations: 99.41 kB / 0.5827 GB, free: 24.93 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.612, allocations: 0 / 0.5827 GB, free: 24.93 MB / 378.7 MB Notification: Performance of Templates: time 0.02554/0.6376, allocations: 19.07 MB / 0.6013 GB, free: 5.992 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches