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.001594/0.001595, allocations: 108.1 kB / 17.06 MB, free: 6.137 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.001851/0.001851, allocations: 187.1 kB / 18 MB, free: 5.219 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.426/1.426, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000965/0.000965, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2742, allocations: 49.43 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01363/0.2878, allocations: 11.75 MB / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005945/0.2938, allocations: 3.219 MB / 415.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.295, allocations: 39.94 kB / 415.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.2967, allocations: 0.6688 MB / 416.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.2984, allocations: 0.7329 MB / 417.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000818/0.2992, allocations: 403.5 kB / 417.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002507/0.3017, allocations: 2.25 MB / 419.8 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.3031, allocations: 0.9928 MB / 420.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.3042, allocations: 0.8366 MB / 421.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009438/0.3051, allocations: 0.9138 MB / 422.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000247/0.3054, allocations: 216 kB / 422.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.3058, allocations: 260 kB / 423 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003171/0.3061, allocations: 430.5 kB / 423.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.3071, allocations: 1.019 MB / 424.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.3098, allocations: 2.678 MB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3098, allocations: 3.938 kB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3099, allocations: 4 kB / 427.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.686e-05/0.3099, allocations: 0 / 427.1 MB, free: 14.35 MB / 350.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.003422/0.3133, allocations: 2.06 MB / 429.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.3134, allocations: 12.03 kB / 429.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007828/0.3142, allocations: 254.5 kB / 429.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.316, allocations: 1.048 MB / 430.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.423e-05/0.3161, allocations: 111.5 kB / 430.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002155/0.3163, allocations: 163.8 kB / 430.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.3187, allocations: 1.487 MB / 432.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.908e-05/0.3188, allocations: 15.83 kB / 432.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.3189, allocations: 60 kB / 432.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.107e-05/0.319, allocations: 40 kB / 432.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.3208, allocations: 0.9707 MB / 433.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007906/0.3287, allocations: 6.52 MB / 439.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008005/0.3295, allocations: 403.6 kB / 440.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004223/0.3299, allocations: 226 kB / 440.5 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.33, allocations: 8.438 kB / 440.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.3305, allocations: 272.7 kB / 440.7 MB, free: 160 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.074e-06/0.3305, allocations: 3.938 kB / 440.7 MB, free: 156 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003525/0.3341, allocations: 1.762 MB / 442.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.977e-05/0.3342, allocations: 162.8 kB / 442.7 MB, free: 14.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.3359, allocations: 1.277 MB / 443.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.336, allocations: 41.7 kB / 444 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007058/0.3367, allocations: 0.8672 MB / 444.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.3368, allocations: 205.2 kB / 445 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.3371, allocations: 218.7 kB / 445.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3373, allocations: 349.9 kB / 445.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/0.3377, allocations: 238.4 kB / 445.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008819/0.3386, allocations: 0.7995 MB / 446.6 MB, free: 9.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.3399, allocations: 1.114 MB / 447.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.34, allocations: 12 kB / 447.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001959/0.3419, allocations: 1.165 MB / 448.9 MB, free: 7.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.727e-05/0.342, allocations: 45.69 kB / 449 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.342, allocations: 24.62 kB / 449 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/0.3423, allocations: 73.58 kB / 449.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007851/0.3431, allocations: 263.6 kB / 449.3 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.3451, allocations: 2.773 MB / 452.1 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009499/0.346, allocations: 71.97 kB / 452.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.947e-05/0.3461, allocations: 60 kB / 452.2 MB, free: 3.629 MB / 366.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.0005639/0.3467, allocations: 353.3 kB / 452.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.3469, allocations: 130.4 kB / 452.7 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.3479, allocations: 0.5606 MB / 453.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3479, allocations: 4 kB / 453.3 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3479, allocations: 0 / 453.3 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.3479, allocations: 3.984 kB / 453.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002624/0.3506, allocations: 1.87 MB / 455.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.3506, allocations: 4 kB / 455.1 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.351, allocations: 103.9 kB / 455.2 MB, free: 472 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000148/0.3512, allocations: 49.64 kB / 455.3 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.3512, allocations: 16.34 kB / 455.3 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.353, allocations: 2.745 MB / 458 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.353, allocations: 7.938 kB / 458.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.3544, allocations: 0.9238 MB / 459 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.3548, allocations: 251.5 kB / 459.2 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.355, allocations: 16 kB / 459.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000531/0.3555, allocations: 35.97 kB / 459.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.3556, allocations: 55.94 kB / 459.3 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.3556, allocations: 24 kB / 459.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00114/0.3568, allocations: 0.8422 MB / 460.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3568, allocations: 0 / 460.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00111/0.3579, allocations: 304 kB / 460.5 MB, free: 10.83 MB / 382.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.0002491/0.3582, allocations: 143 kB / 460.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.3598, allocations: 0.9294 MB / 461.6 MB, free: 9.715 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3598, allocations: 4 kB / 461.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.3605, allocations: 474 kB / 462 MB, free: 9.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.3619, allocations: 331.1 kB / 462.3 MB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003801/0.3657, allocations: 2.506 MB / 464.9 MB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.3665, allocations: 1.182 MB / 466 MB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005227/0.367, allocations: 167.3 kB / 466.2 MB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.3672, allocations: 87.42 kB / 466.3 MB, free: 4.848 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3672, allocations: 0 / 466.3 MB, free: 4.848 MB / 382.1 MB Notification: Performance of Templates: time 0.02633/0.3935, allocations: 15.23 MB / 481.5 MB, free: 5.789 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/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