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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001656/0.001656, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.342/1.342, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009856/0.0009857, allocations: 55.77 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.0934, allocations: 49.45 MB / 350.7 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01314/0.1066, allocations: 11.74 MB / 362.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006441/0.1131, allocations: 3.226 MB / 365.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001515/0.1146, allocations: 35.94 kB / 365.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.1167, allocations: 0.6517 MB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002514/0.1192, allocations: 0.6743 MB / 367.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009821/0.1202, allocations: 403.5 kB / 367.5 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002725/0.123, allocations: 2.233 MB / 369.7 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.1242, allocations: 0.985 MB / 370.7 MB, free: 316 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1623/0.2865, allocations: 0.8251 MB / 371.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.2881, allocations: 0.9119 MB / 372.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004783/0.2886, allocations: 217 kB / 372.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007397/0.2893, allocations: 259.7 kB / 372.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003116/0.2896, allocations: 425.4 kB / 373.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.291, allocations: 1.022 MB / 374.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003145/0.2941, allocations: 2.649 MB / 377 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2942, allocations: 0.5625 kB / 377 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2942, allocations: 0 / 377 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.703e-05/0.2943, allocations: 0 / 377 MB, free: 11.71 MB / 302.1 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.004048/0.2983, allocations: 2.066 MB / 379 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2984, allocations: 9.25 kB / 379 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000869/0.2992, allocations: 253.7 kB / 379.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.3009, allocations: 1.023 MB / 380.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.647e-05/0.301, allocations: 113.5 kB / 380.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/0.3012, allocations: 158.4 kB / 380.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.3037, allocations: 1.494 MB / 382.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.084e-05/0.3038, allocations: 19.83 kB / 382.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.3039, allocations: 62.22 kB / 382.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.3039, allocations: 37.56 kB / 382.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.3057, allocations: 0.9712 MB / 383.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007389/0.3131, allocations: 6.572 MB / 389.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007798/0.314, allocations: 406.2 kB / 390.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004172/0.3144, allocations: 215.6 kB / 390.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.3144, allocations: 6.219 kB / 390.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000525/0.315, allocations: 279.9 kB / 390.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.875e-06/0.315, allocations: 1.156 kB / 390.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003363/0.3183, allocations: 1.754 MB / 392.4 MB, free: 3.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.3184, allocations: 166.1 kB / 392.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.3201, allocations: 1.275 MB / 393.8 MB, free: 2.316 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.3202, allocations: 38.27 kB / 393.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004979/0.3207, allocations: 0.8714 MB / 394.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3208, allocations: 204.1 kB / 394.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.3211, allocations: 221.9 kB / 395.1 MB, free: 1.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.772e-05/0.3212, allocations: 352.7 kB / 395.5 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004276/0.3216, allocations: 231.8 kB / 395.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006616/0.3223, allocations: 0.8006 MB / 396.5 MB, free: 15.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.3236, allocations: 1.117 MB / 397.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.487e-06/0.3236, allocations: 4.969 kB / 397.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002045/0.3256, allocations: 1.173 MB / 398.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.71e-05/0.3257, allocations: 44.83 kB / 398.8 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.3257, allocations: 17.88 kB / 398.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.326, allocations: 60.7 kB / 398.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000754/0.3267, allocations: 271.1 kB / 399.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.3286, allocations: 2.784 MB / 402 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3299, allocations: 74.72 kB / 402 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/0.33, allocations: 63.25 kB / 402.1 MB, free: 11.32 MB / 318.1 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007004/0.3307, allocations: 354.8 kB / 402.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.3309, allocations: 128.2 kB / 402.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.3319, allocations: 0.5601 MB / 403.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3319, allocations: 3.375 kB / 403.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.332, allocations: 0 / 403.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.332, allocations: 7.547 kB / 403.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.3347, allocations: 1.873 MB / 405 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3347, allocations: 3.062 kB / 405 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.3351, allocations: 105.6 kB / 405.1 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001466/0.3353, allocations: 43.45 kB / 405.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.3353, allocations: 16.94 kB / 405.2 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/0.3371, allocations: 2.742 MB / 407.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.3371, allocations: 9.062 kB / 407.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.3386, allocations: 0.9252 MB / 408.9 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005704/0.3392, allocations: 255.5 kB / 409.1 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.3394, allocations: 17.88 kB / 409.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005467/0.3399, allocations: 28.72 kB / 409.2 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.34, allocations: 64.16 kB / 409.2 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.3401, allocations: 12.75 kB / 409.2 MB, free: 5.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001179/0.3412, allocations: 0.8474 MB / 410.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3412, allocations: 4 kB / 410.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001274/0.3425, allocations: 304 kB / 410.4 MB, free: 4.688 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002598/0.3428, allocations: 154 kB / 410.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.3445, allocations: 0.945 MB / 411.5 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3445, allocations: 4 kB / 411.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.3452, allocations: 455.2 kB / 411.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.3469, allocations: 332.9 kB / 412.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004218/0.3511, allocations: 2.59 MB / 414.8 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/0.3519, allocations: 1.178 MB / 416 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.3522, allocations: 87.44 kB / 416.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3522, allocations: 0 / 416.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Templates: time 0.03579/0.388, allocations: 31.49 MB / 447.6 MB, free: 15.48 MB / 366.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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