Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001698/0.001699, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008532/0.0008532, allocations: 91.89 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002708, allocations: 7.938 kB / 351.1 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2362, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.3499, allocations: 95.75 MB / 497.3 MB, free: 0.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.3502, allocations: 83.95 kB / 497.3 MB, free: 0.625 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3238/0.674, allocations: 40.73 MB / 0.5255 GB, free: 87.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.674, allocations: 4.438 kB / 0.5255 GB, free: 87.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000143/0.6742, allocations: 39.94 kB / 0.5255 GB, free: 87.54 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004021/0.6782, allocations: 1.744 MB / 0.5272 GB, free: 85.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.6783, allocations: 8.562 kB / 0.5272 GB, free: 85.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.6793, allocations: 261.6 kB / 0.5275 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002896/0.6823, allocations: 1.101 MB / 0.5285 GB, free: 84.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.6824, allocations: 115.1 kB / 0.5286 GB, free: 84.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005067/0.6829, allocations: 167.8 kB / 0.5288 GB, free: 84.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003797/0.6868, allocations: 1.468 MB / 0.5302 GB, free: 82.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.324e-05/0.6869, allocations: 11.91 kB / 0.5302 GB, free: 82.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001751/0.687, allocations: 60 kB / 0.5303 GB, free: 82.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.6871, allocations: 43.94 kB / 0.5303 GB, free: 82.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002052/0.6891, allocations: 0.9786 MB / 0.5313 GB, free: 81.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008454/0.6976, allocations: 6.643 MB / 0.5378 GB, free: 74.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007502/0.6984, allocations: 424 kB / 0.5382 GB, free: 74.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.167e-05/0.6985, allocations: 4.438 kB / 0.5382 GB, free: 74.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/0.699, allocations: 278.7 kB / 0.5385 GB, free: 73.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 4.98e-06/0.699, allocations: 0 / 0.5385 GB, free: 73.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.003395/0.7024, allocations: 1.805 MB / 0.5402 GB, free: 71.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.7025, allocations: 158.8 kB / 0.5404 GB, free: 71.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001426/0.7039, allocations: 1.075 MB / 0.5414 GB, free: 70.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.7039, allocations: 37.7 kB / 0.5415 GB, free: 70.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004917/0.7044, allocations: 0.8706 MB / 0.5423 GB, free: 69.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.7046, allocations: 206.1 kB / 0.5425 GB, free: 69.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.7046, allocations: 24 kB / 0.5425 GB, free: 69.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.645e-05/0.7047, allocations: 349.9 kB / 0.5429 GB, free: 69.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.7051, allocations: 238.5 kB / 0.5431 GB, free: 68.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006001/0.7057, allocations: 0.819 MB / 0.5439 GB, free: 67.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005849/0.7063, allocations: 407.1 kB / 0.5443 GB, free: 67.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/0.7063, allocations: 8 kB / 0.5443 GB, free: 67.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001843/0.7081, allocations: 1.188 MB / 0.5455 GB, free: 66.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.052e-05/0.7082, allocations: 45.69 kB / 0.5455 GB, free: 66.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/0.7082, allocations: 20 kB / 0.5455 GB, free: 66.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.7085, allocations: 61.7 kB / 0.5456 GB, free: 66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/0.7092, allocations: 279.9 kB / 0.5458 GB, free: 65.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.7107, allocations: 2.576 MB / 0.5484 GB, free: 62.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.7118, allocations: 76.05 kB / 0.5484 GB, free: 62.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/0.7119, allocations: 64 kB / 0.5485 GB, free: 62.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006649/0.7126, allocations: 368.2 kB / 0.5488 GB, free: 62.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.7128, allocations: 134.4 kB / 0.549 GB, free: 62.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.714, allocations: 0.5567 MB / 0.5495 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.714, allocations: 8 kB / 0.5495 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.714, allocations: 4 kB / 0.5495 GB, free: 61.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.714, allocations: 0 / 0.5495 GB, free: 61.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002819/0.7168, allocations: 1.859 MB / 0.5513 GB, free: 59.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.7168, allocations: 4 kB / 0.5513 GB, free: 59.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.7173, allocations: 103.8 kB / 0.5514 GB, free: 59.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000145/0.7174, allocations: 54.12 kB / 0.5515 GB, free: 59.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/0.7175, allocations: 16 kB / 0.5515 GB, free: 59.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.7187, allocations: 2.556 MB / 0.554 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7187, allocations: 12.03 kB / 0.554 GB, free: 56.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.72, allocations: 1.136 MB / 0.5551 GB, free: 55.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.7205, allocations: 251.4 kB / 0.5554 GB, free: 55.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.7207, allocations: 12 kB / 0.5554 GB, free: 55.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006074/0.7213, allocations: 40.09 kB / 0.5554 GB, free: 55.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.7215, allocations: 59.83 kB / 0.5555 GB, free: 55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.7215, allocations: 20 kB / 0.5555 GB, free: 54.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001107/0.7226, allocations: 0.8032 MB / 0.5563 GB, free: 54.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7226, allocations: 0 / 0.5563 GB, free: 54.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001395/0.724, allocations: 343.9 kB / 0.5566 GB, free: 53.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005285/0.7246, allocations: 312.1 kB / 0.5569 GB, free: 53.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.7262, allocations: 0.9333 MB / 0.5578 GB, free: 52.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.7262, allocations: 4 kB / 0.5578 GB, free: 52.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006829/0.7269, allocations: 478.2 kB / 0.5583 GB, free: 52.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.7286, allocations: 321 kB / 0.5586 GB, free: 51.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004189/0.7328, allocations: 3.066 MB / 0.5616 GB, free: 48.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006674/0.7335, allocations: 1.213 MB / 0.5628 GB, free: 47.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007144/0.7342, allocations: 171.3 kB / 0.5629 GB, free: 47.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.7344, allocations: 91.42 kB / 0.563 GB, free: 47.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7344, allocations: 7.938 kB / 0.563 GB, free: 47.11 MB / 378.7 MB Notification: Performance of Templates: time 0.02641/0.7608, allocations: 15.83 MB / 0.5785 GB, free: 31.44 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches