Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00236/0.00236, allocations: 204.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 47.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2634, allocations: 53.36 MB / 431.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01356/0.277, allocations: 10.24 MB / 441.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00682/0.2838, allocations: 3.09 MB / 444.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00201/0.2858, allocations: 43.81 kB / 445 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002348/0.2882, allocations: 0.6169 MB / 445.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.2913, allocations: 0.7251 MB / 446.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.2926, allocations: 403.5 kB / 446.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003361/0.296, allocations: 2.244 MB / 448.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001356/0.2974, allocations: 0.6537 MB / 449.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.2989, allocations: 0.8756 MB / 450.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001546/0.3005, allocations: 0.9139 MB / 451.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004839/0.301, allocations: 216 kB / 451.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007693/0.3017, allocations: 252 kB / 451.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004921/0.3022, allocations: 430.5 kB / 452.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.3037, allocations: 0.8283 MB / 453.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003352/0.307, allocations: 2.711 MB / 455.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3071, allocations: 0 / 455.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3071, allocations: 0 / 455.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.507e-05/0.3071, allocations: 4 kB / 455.8 MB, free: 14.34 MB / 366.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.004146/0.3113, allocations: 2.033 MB / 457.8 MB, free: 12.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3113, allocations: 11.97 kB / 457.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007815/0.3121, allocations: 263.6 kB / 458.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.314, allocations: 0.9726 MB / 459.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.3141, allocations: 111.5 kB / 459.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002293/0.3143, allocations: 179.7 kB / 459.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/0.317, allocations: 1.58 MB / 460.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/0.317, allocations: 11.94 kB / 461 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.3172, allocations: 67.98 kB / 461 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-05/0.3172, allocations: 40 kB / 461.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.3191, allocations: 0.959 MB / 462 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00828/0.3274, allocations: 5.717 MB / 467.7 MB, free: 1.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008338/0.3282, allocations: 377.4 kB / 468.1 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004268/0.3286, allocations: 201.1 kB / 468.3 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3287, allocations: 4.438 kB / 468.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.3292, allocations: 328.2 kB / 468.6 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.174e-06/0.3292, allocations: 4 kB / 468.6 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003153/0.3324, allocations: 1.533 MB / 470.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.3325, allocations: 166.7 kB / 470.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.334, allocations: 1.118 MB / 471.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.334, allocations: 37.7 kB / 471.5 MB, free: 14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007341/0.3347, allocations: 0.9004 MB / 472.4 MB, free: 13.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.3349, allocations: 214.3 kB / 472.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.3352, allocations: 222.8 kB / 472.8 MB, free: 12.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.3354, allocations: 357.9 kB / 473.2 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/0.3359, allocations: 256.2 kB / 473.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.337, allocations: 0.9328 MB / 474.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3385, allocations: 1.113 MB / 475.5 MB, free: 9.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.3385, allocations: 8 kB / 475.5 MB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002202/0.3407, allocations: 1.193 MB / 476.7 MB, free: 8.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-05/0.3408, allocations: 37.7 kB / 476.7 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/0.3408, allocations: 20 kB / 476.7 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002789/0.3411, allocations: 65.7 kB / 476.8 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008432/0.3419, allocations: 263.5 kB / 477 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.3443, allocations: 2.532 MB / 479.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008662/0.3452, allocations: 76.12 kB / 479.6 MB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.3453, allocations: 59.98 kB / 479.7 MB, free: 4.949 MB / 382.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.0005958/0.3459, allocations: 359.5 kB / 480 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.3461, allocations: 127.2 kB / 480.2 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.3472, allocations: 0.5341 MB / 480.7 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3472, allocations: 8 kB / 480.7 MB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3472, allocations: 7.922 kB / 480.7 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3472, allocations: 0 / 480.7 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.3499, allocations: 1.544 MB / 482.3 MB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3499, allocations: 4 kB / 482.3 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005112/0.3504, allocations: 95.89 kB / 482.4 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.3505, allocations: 53.62 kB / 482.4 MB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/0.3506, allocations: 16.47 kB / 482.4 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.3526, allocations: 2.497 MB / 484.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3526, allocations: 4 kB / 484.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.3542, allocations: 0.9142 MB / 485.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.3547, allocations: 155.2 kB / 486 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.3548, allocations: 19.98 kB / 486 MB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004847/0.3553, allocations: 31.98 kB / 486 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.3555, allocations: 59.78 kB / 486.1 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.3555, allocations: 20 kB / 486.1 MB, free: 14.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.3566, allocations: 0.7122 MB / 486.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3566, allocations: 0 / 486.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001202/0.3578, allocations: 303.9 kB / 487.1 MB, free: 13.1 MB / 398.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.0002774/0.3581, allocations: 135.1 kB / 487.3 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.3597, allocations: 0.9264 MB / 488.2 MB, free: 11.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.3597, allocations: 8 kB / 488.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007192/0.3604, allocations: 449 kB / 488.6 MB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.3617, allocations: 317.8 kB / 488.9 MB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.3659, allocations: 2.537 MB / 491.5 MB, free: 8.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/0.3666, allocations: 0.5961 MB / 492.1 MB, free: 7.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004857/0.3671, allocations: 158.1 kB / 492.2 MB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.3672, allocations: 79.42 kB / 492.3 MB, free: 7.727 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3672, allocations: 0 / 492.3 MB, free: 7.727 MB / 398.1 MB Notification: Performance of Templates: time 0.03072/0.398, allocations: 16.89 MB / 0.4973 GB, free: 7.16 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.386385845020413]