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.001158/0.001158, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001275/0.001276, allocations: 191 kB / 18 MB, free: 4.977 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.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2706, 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.01213/0.2828, allocations: 11.75 MB / 412.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006085/0.2889, allocations: 3.218 MB / 415.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.2904, allocations: 39.88 kB / 415.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.2925, allocations: 0.6635 MB / 416.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002098/0.2946, allocations: 0.7329 MB / 417.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008557/0.2955, allocations: 399.5 kB / 417.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002397/0.2979, allocations: 2.257 MB / 419.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.2991, allocations: 0.9772 MB / 420.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009531/0.3, allocations: 0.8444 MB / 421.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009344/0.301, allocations: 0.9177 MB / 422.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002327/0.3012, allocations: 216 kB / 422.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003868/0.3016, allocations: 260 kB / 423 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002979/0.3019, allocations: 430.5 kB / 423.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008445/0.3028, allocations: 1.019 MB / 424.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.3051, allocations: 2.682 MB / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3051, allocations: 0 / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3051, allocations: 0 / 427.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.3052, allocations: 0 / 427.1 MB, free: 14.36 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.003157/0.3083, allocations: 2.07 MB / 429.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3084, allocations: 8.031 kB / 429.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007317/0.3091, allocations: 254.5 kB / 429.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.3107, allocations: 1.04 MB / 430.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.119e-05/0.3108, allocations: 115.4 kB / 430.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.311, allocations: 163.8 kB / 430.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.3132, allocations: 1.487 MB / 432.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.448e-05/0.3132, allocations: 7.906 kB / 432.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/0.3134, allocations: 68 kB / 432.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.997e-05/0.3134, allocations: 40 kB / 432.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.3151, allocations: 0.9785 MB / 433.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007198/0.3223, allocations: 6.512 MB / 439.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.3232, allocations: 404.6 kB / 440.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.3237, allocations: 230 kB / 440.5 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.3237, allocations: 4.438 kB / 440.5 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005629/0.3243, allocations: 264.7 kB / 440.7 MB, free: 172 kB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.514e-06/0.3243, allocations: 0 / 440.7 MB, free: 172 kB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003179/0.3275, allocations: 1.762 MB / 442.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.826e-05/0.3276, allocations: 170.8 kB / 442.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.3292, allocations: 1.273 MB / 443.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.3292, allocations: 37.7 kB / 444 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006066/0.3298, allocations: 0.8711 MB / 444.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.33, allocations: 205.2 kB / 445 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002696/0.3302, allocations: 218.7 kB / 445.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3304, allocations: 345.9 kB / 445.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004363/0.3308, allocations: 238.5 kB / 445.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008306/0.3317, allocations: 0.7995 MB / 446.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.333, allocations: 1.122 MB / 447.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.3331, allocations: 8 kB / 447.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0019/0.335, allocations: 1.169 MB / 448.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.935e-05/0.335, allocations: 45.89 kB / 449 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.335, allocations: 20 kB / 449 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002408/0.3353, allocations: 69.62 kB / 449 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007697/0.3361, allocations: 263.5 kB / 449.3 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.338, allocations: 2.78 MB / 452.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009141/0.339, allocations: 64.03 kB / 452.1 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.031e-05/0.339, allocations: 64 kB / 452.2 MB, free: 3.641 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.0005801/0.3396, allocations: 361.2 kB / 452.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3398, allocations: 134.4 kB / 452.7 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.3408, allocations: 0.5489 MB / 453.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3408, allocations: 8 kB / 453.2 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3408, allocations: 3.984 kB / 453.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3409, allocations: 0 / 453.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.3435, allocations: 1.866 MB / 455.1 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3435, allocations: 7.938 kB / 455.1 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.3439, allocations: 103.9 kB / 455.2 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.3441, allocations: 54.11 kB / 455.3 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.3441, allocations: 19.98 kB / 455.3 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/0.3461, allocations: 2.745 MB / 458 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.567e-06/0.3461, allocations: 7.938 kB / 458.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.3476, allocations: 0.9161 MB / 459 MB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004989/0.3481, allocations: 251.5 kB / 459.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3482, allocations: 19.98 kB / 459.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005009/0.3487, allocations: 31.98 kB / 459.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3489, allocations: 55.81 kB / 459.3 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.3489, allocations: 16 kB / 459.3 MB, free: 11.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.3501, allocations: 0.8461 MB / 460.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3501, allocations: 4 kB / 460.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001194/0.3513, allocations: 304 kB / 460.5 MB, free: 10.84 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.0002903/0.3516, allocations: 143 kB / 460.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.3533, allocations: 0.9295 MB / 461.5 MB, free: 9.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.3533, allocations: 4 kB / 461.6 MB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.354, allocations: 477 kB / 462 MB, free: 9.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.3553, allocations: 339.6 kB / 462.4 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004038/0.3594, allocations: 2.508 MB / 464.9 MB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007535/0.3602, allocations: 1.182 MB / 466 MB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004977/0.3607, allocations: 163.3 kB / 466.2 MB, free: 4.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.3608, allocations: 83.44 kB / 466.3 MB, free: 4.855 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3608, allocations: 0 / 466.3 MB, free: 4.855 MB / 382.1 MB Notification: Performance of Templates: time 0.0276/0.3884, allocations: 15.23 MB / 481.5 MB, free: 5.793 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