Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001837, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002447/0.002447, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 230.5 MB / 258.1 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 67.89 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2634, allocations: 53.41 MB / 432.5 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.015/0.2784, allocations: 11.84 MB / 444.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006782/0.2852, allocations: 3.269 MB / 447.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.2872, allocations: 43.81 kB / 447.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002214/0.2895, allocations: 0.6769 MB / 448.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00282/0.2923, allocations: 0.7173 MB / 449 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.2934, allocations: 411.4 kB / 449.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.2969, allocations: 2.246 MB / 451.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.298, allocations: 0.6495 MB / 452.3 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001537/0.2996, allocations: 0.8756 MB / 453.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.3009, allocations: 0.9178 MB / 454.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003011/0.3012, allocations: 216 kB / 454.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.3017, allocations: 256 kB / 454.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000377/0.3021, allocations: 430.4 kB / 455 MB, free: 96 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.3033, allocations: 1.023 MB / 456 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003931/0.3073, allocations: 2.685 MB / 458.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.3073, allocations: 0 / 458.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.3073, allocations: 3.938 kB / 458.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.913e-05/0.3073, allocations: 0 / 458.7 MB, free: 12.36 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.004469/0.3118, allocations: 2.037 MB / 460.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3119, allocations: 8.031 kB / 460.7 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008602/0.3127, allocations: 267.6 kB / 461 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00194/0.3147, allocations: 0.9725 MB / 462 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.3148, allocations: 119.5 kB / 462.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002309/0.315, allocations: 163.9 kB / 462.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00269/0.3177, allocations: 1.48 MB / 463.7 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-05/0.3177, allocations: 15.89 kB / 463.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.3179, allocations: 68 kB / 463.8 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.114e-05/0.3179, allocations: 39.98 kB / 463.8 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.3198, allocations: 0.9707 MB / 464.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008655/0.3284, allocations: 6.392 MB / 471.2 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008925/0.3293, allocations: 383.5 kB / 471.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004359/0.3298, allocations: 205.1 kB / 471.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.3298, allocations: 8.438 kB / 471.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005512/0.3304, allocations: 268.8 kB / 472 MB, free: 14.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.275e-06/0.3304, allocations: 0 / 472 MB, free: 14.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003458/0.3338, allocations: 1.556 MB / 473.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.334, allocations: 162.7 kB / 473.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3358, allocations: 1.281 MB / 475 MB, free: 11.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.3359, allocations: 37.7 kB / 475.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008089/0.3367, allocations: 0.8895 MB / 476 MB, free: 10.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.3369, allocations: 214.3 kB / 476.2 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003131/0.3372, allocations: 230.7 kB / 476.4 MB, free: 10 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3374, allocations: 349.9 kB / 476.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004806/0.3379, allocations: 230.5 kB / 477 MB, free: 9.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.3389, allocations: 0.8034 MB / 477.8 MB, free: 8.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/0.3405, allocations: 1.117 MB / 478.9 MB, free: 6.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.3405, allocations: 4 kB / 478.9 MB, free: 6.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002115/0.3426, allocations: 1.176 MB / 480.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.3426, allocations: 41.69 kB / 480.1 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.3427, allocations: 20 kB / 480.1 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002586/0.3429, allocations: 69.64 kB / 480.2 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007767/0.3437, allocations: 271.9 kB / 480.5 MB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002197/0.3459, allocations: 2.578 MB / 483 MB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.347, allocations: 59.94 kB / 483.1 MB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/0.3471, allocations: 60 kB / 483.2 MB, free: 2.438 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.0006667/0.3478, allocations: 369.3 kB / 483.5 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.348, allocations: 139.1 kB / 483.7 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.349, allocations: 0.5512 MB / 484.2 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.3491, allocations: 8 kB / 484.2 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.3491, allocations: 0 / 484.2 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3491, allocations: 7.984 kB / 484.2 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.3519, allocations: 1.822 MB / 486 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3519, allocations: 4.469 kB / 486 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.3524, allocations: 107.8 kB / 486.2 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.3525, allocations: 49.69 kB / 486.2 MB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.3526, allocations: 16 kB / 486.2 MB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.3549, allocations: 2.539 MB / 488.8 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3549, allocations: 4 kB / 488.8 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/0.3564, allocations: 0.9267 MB / 489.7 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004997/0.3569, allocations: 187.1 kB / 489.9 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001441/0.357, allocations: 19.98 kB / 489.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005222/0.3576, allocations: 27.98 kB / 489.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.3577, allocations: 59.78 kB / 490 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.3577, allocations: 20 kB / 490 MB, free: 11.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.359, allocations: 0.8461 MB / 490.8 MB, free: 10.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.359, allocations: 0 / 490.8 MB, free: 10.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001196/0.3602, allocations: 307.9 kB / 491.1 MB, free: 10 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.0002611/0.3605, allocations: 135.1 kB / 491.3 MB, free: 9.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3621, allocations: 0.8967 MB / 492.2 MB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3621, allocations: 7.938 kB / 492.2 MB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006704/0.3627, allocations: 450.5 kB / 492.6 MB, free: 8.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.3642, allocations: 340.7 kB / 493 MB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004591/0.3687, allocations: 2.6 MB / 495.6 MB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008963/0.3696, allocations: 1.182 MB / 496.7 MB, free: 4.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.3699, allocations: 95.44 kB / 496.8 MB, free: 4.148 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3699, allocations: 4 kB / 496.8 MB, free: 4.145 MB / 398.1 MB Notification: Performance of Templates: time 0.04377/0.4137, allocations: 31.81 MB / 0.5163 GB, free: 4.348 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 9.989177482901141]