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.0009236/0.0009236, allocations: 176.1 kB / 17.4 MB, free: 4.418 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.303/1.303, allocations: 223.3 MB / 241.4 MB, free: 9.984 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.0009949/0.000995, allocations: 105.3 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004234, allocations: 15.94 kB / 352.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2823, allocations: 50.4 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.3906, allocations: 95.84 MB / 498.6 MB, free: 484 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.3908, allocations: 83.95 kB / 498.7 MB, free: 400 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2899/0.6807, allocations: 40.59 MB / 0.5266 GB, free: 87.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.458e-06/0.6808, allocations: 0 / 0.5266 GB, free: 87.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001751/0.6809, allocations: 38.66 kB / 0.5267 GB, free: 87.39 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.004849/0.6858, allocations: 1.732 MB / 0.5283 GB, free: 85.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.6859, allocations: 8.031 kB / 0.5284 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.6872, allocations: 258.5 kB / 0.5286 GB, free: 85.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002842/0.69, allocations: 1.134 MB / 0.5297 GB, free: 84.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.6902, allocations: 116.4 kB / 0.5298 GB, free: 84.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003963/0.6906, allocations: 163.9 kB / 0.53 GB, free: 83.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003548/0.6941, allocations: 1.479 MB / 0.5314 GB, free: 82.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.6943, allocations: 15.78 kB / 0.5314 GB, free: 82.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001746/0.6944, allocations: 64 kB / 0.5315 GB, free: 82.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.6945, allocations: 44 kB / 0.5315 GB, free: 82.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002694/0.6972, allocations: 0.9863 MB / 0.5325 GB, free: 81.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009359/0.7066, allocations: 6.654 MB / 0.539 GB, free: 74.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009684/0.7076, allocations: 417.7 kB / 0.5394 GB, free: 73.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005096/0.7081, allocations: 218.1 kB / 0.5396 GB, free: 73.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.7081, allocations: 12.36 kB / 0.5396 GB, free: 73.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005883/0.7087, allocations: 285.6 kB / 0.5399 GB, free: 73.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.715e-06/0.7088, allocations: 0 / 0.5399 GB, free: 73.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.00389/0.7127, allocations: 2.013 MB / 0.5419 GB, free: 71.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.7127, allocations: 192.5 kB / 0.542 GB, free: 70.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.7144, allocations: 1.222 MB / 0.5432 GB, free: 69.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/0.7144, allocations: 33.7 kB / 0.5433 GB, free: 69.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005579/0.715, allocations: 0.8712 MB / 0.5441 GB, free: 68.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.7151, allocations: 215 kB / 0.5443 GB, free: 68.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.7152, allocations: 24 kB / 0.5443 GB, free: 68.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.47e-05/0.7153, allocations: 349.9 kB / 0.5447 GB, free: 68.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000478/0.7158, allocations: 234.5 kB / 0.5449 GB, free: 68.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006823/0.7164, allocations: 0.8199 MB / 0.5457 GB, free: 66.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.7176, allocations: 1.135 MB / 0.5468 GB, free: 65.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.7177, allocations: 7.938 kB / 0.5468 GB, free: 65.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001857/0.7195, allocations: 1.192 MB / 0.548 GB, free: 64.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.7196, allocations: 48.36 kB / 0.548 GB, free: 64.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.7196, allocations: 20 kB / 0.548 GB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.7198, allocations: 62.31 kB / 0.5481 GB, free: 64.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008529/0.7207, allocations: 271.6 kB / 0.5484 GB, free: 63.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.7223, allocations: 2.579 MB / 0.5509 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.7234, allocations: 67.89 kB / 0.5509 GB, free: 60.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.712e-05/0.7235, allocations: 63.98 kB / 0.551 GB, free: 60.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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.0006472/0.7242, allocations: 369.3 kB / 0.5514 GB, free: 60.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.7243, allocations: 134.3 kB / 0.5515 GB, free: 60.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.7254, allocations: 0.5529 MB / 0.552 GB, free: 59.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.7254, allocations: 7.984 kB / 0.552 GB, free: 59.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.7254, allocations: 4 kB / 0.552 GB, free: 59.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.944e-06/0.7255, allocations: 3.938 kB / 0.552 GB, free: 59.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002725/0.7282, allocations: 1.933 MB / 0.5539 GB, free: 57.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.7282, allocations: 4 kB / 0.5539 GB, free: 57.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.7286, allocations: 112.3 kB / 0.554 GB, free: 57.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.7287, allocations: 49.64 kB / 0.5541 GB, free: 57.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.097e-05/0.7288, allocations: 23.94 kB / 0.5541 GB, free: 57.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.7299, allocations: 2.545 MB / 0.5566 GB, free: 54.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.7299, allocations: 4 kB / 0.5566 GB, free: 54.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.731, allocations: 0.9376 MB / 0.5575 GB, free: 53.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003459/0.7314, allocations: 255.3 kB / 0.5578 GB, free: 53.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.7315, allocations: 23.92 kB / 0.5578 GB, free: 53.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.732, allocations: 31.98 kB / 0.5578 GB, free: 53.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.475e-05/0.7321, allocations: 59.81 kB / 0.5579 GB, free: 53.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.7321, allocations: 19.98 kB / 0.5579 GB, free: 53.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008801/0.733, allocations: 0.8031 MB / 0.5587 GB, free: 52.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.733, allocations: 0 / 0.5587 GB, free: 52.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00105/0.734, allocations: 340 kB / 0.559 GB, free: 52.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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.0004611/0.7345, allocations: 320.2 kB / 0.5593 GB, free: 51.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.7357, allocations: 0.9289 MB / 0.5602 GB, free: 50.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7357, allocations: 1 kB / 0.5602 GB, free: 50.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.7363, allocations: 481.1 kB / 0.5607 GB, free: 50.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.7381, allocations: 317.5 kB / 0.561 GB, free: 50.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00362/0.7418, allocations: 3.091 MB / 0.564 GB, free: 46.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/0.7423, allocations: 1.185 MB / 0.5652 GB, free: 45.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006429/0.743, allocations: 171.3 kB / 0.5653 GB, free: 45.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.7432, allocations: 83.44 kB / 0.5654 GB, free: 45.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.7432, allocations: 0 / 0.5654 GB, free: 45.52 MB / 378.7 MB Notification: Performance of Templates: time 0.02697/0.7701, allocations: 16.07 MB / 0.5811 GB, free: 29.61 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/jenkins1/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