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.001691/0.001691, allocations: 107 kB / 19.8 MB, free: 2.5 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.002047/0.002047, allocations: 217.5 kB / 23 MB, free: 5.574 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.501/1.501, allocations: 230.2 MB / 256.2 MB, free: 8.531 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.002056/0.002056, allocations: 63.91 kB / 376.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2609, allocations: 53.33 MB / 429.8 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01391/0.2748, allocations: 11.85 MB / 441.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006981/0.2818, allocations: 3.258 MB / 444.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.2834, allocations: 35.94 kB / 444.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.2855, allocations: 0.673 MB / 445.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0025/0.288, allocations: 0.729 MB / 446.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009889/0.289, allocations: 415.4 kB / 446.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003055/0.292, allocations: 2.241 MB / 449 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.2931, allocations: 0.6568 MB / 449.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00126/0.2943, allocations: 0.8521 MB / 450.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.2953, allocations: 0.9061 MB / 451.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002475/0.2956, allocations: 216 kB / 451.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004223/0.296, allocations: 256 kB / 451.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003332/0.2963, allocations: 434.4 kB / 452.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000945/0.2973, allocations: 1.019 MB / 453.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002987/0.3003, allocations: 2.689 MB / 456 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3003, allocations: 0 / 456 MB, free: 13.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3003, allocations: 0 / 456 MB, free: 13.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.3003, allocations: 0 / 456 MB, free: 13.16 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.00353/0.3038, allocations: 2.113 MB / 458.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.3039, allocations: 16.02 kB / 458.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007729/0.3047, allocations: 259.6 kB / 458.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.3063, allocations: 1.052 MB / 459.4 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.465e-05/0.3064, allocations: 115.5 kB / 459.5 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.3066, allocations: 163.9 kB / 459.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.3091, allocations: 1.483 MB / 461.2 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.674e-05/0.3091, allocations: 7.938 kB / 461.2 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.3093, allocations: 64 kB / 461.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.884e-05/0.3093, allocations: 40 kB / 461.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.3111, allocations: 0.9707 MB / 462.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008001/0.3191, allocations: 6.553 MB / 468.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008056/0.3199, allocations: 368.2 kB / 469.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.3203, allocations: 214.1 kB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.199e-05/0.3204, allocations: 4.438 kB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005179/0.3209, allocations: 268.8 kB / 469.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.124e-06/0.3209, allocations: 0 / 469.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.00323/0.3241, allocations: 1.792 MB / 471.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.3242, allocations: 170.7 kB / 471.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.3259, allocations: 1.277 MB / 472.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.326, allocations: 37.7 kB / 472.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007143/0.3267, allocations: 0.8856 MB / 473.8 MB, free: 10.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.3268, allocations: 226.1 kB / 474 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002815/0.3271, allocations: 218.8 kB / 474.3 MB, free: 10.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3273, allocations: 353.9 kB / 474.6 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004567/0.3277, allocations: 230.5 kB / 474.8 MB, free: 9.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009015/0.3286, allocations: 0.8034 MB / 475.6 MB, free: 8.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.3301, allocations: 1.118 MB / 476.7 MB, free: 7.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3301, allocations: 4 kB / 476.7 MB, free: 7.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001958/0.332, allocations: 1.174 MB / 477.9 MB, free: 5.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.804e-05/0.3321, allocations: 45.88 kB / 478 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.3321, allocations: 23.94 kB / 478 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/0.3323, allocations: 69.64 kB / 478.1 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007672/0.3331, allocations: 259.6 kB / 478.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002173/0.3353, allocations: 2.781 MB / 481.1 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000936/0.3362, allocations: 72.08 kB / 481.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.3363, allocations: 64 kB / 481.2 MB, free: 2.332 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.0006254/0.3369, allocations: 357.3 kB / 481.6 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.3371, allocations: 143 kB / 481.7 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.3382, allocations: 0.5528 MB / 482.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.3382, allocations: 4 kB / 482.3 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3382, allocations: 0 / 482.3 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.3382, allocations: 3.984 kB / 482.3 MB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.3412, allocations: 1.866 MB / 484.1 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.3412, allocations: 4 kB / 484.1 MB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004301/0.3416, allocations: 107.8 kB / 484.3 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001566/0.3418, allocations: 50.17 kB / 484.3 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.3418, allocations: 11.98 kB / 484.3 MB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002051/0.3439, allocations: 2.75 MB / 487.1 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3439, allocations: 4 kB / 487.1 MB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.3455, allocations: 0.9325 MB / 488 MB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004391/0.3459, allocations: 256.2 kB / 488.2 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.346, allocations: 19.98 kB / 488.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005083/0.3465, allocations: 31.98 kB / 488.3 MB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.3467, allocations: 55.75 kB / 488.4 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/0.3467, allocations: 20 kB / 488.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.348, allocations: 0.85 MB / 489.2 MB, free: 9.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.348, allocations: 0 / 489.2 MB, free: 9.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3491, allocations: 308 kB / 489.5 MB, free: 9.512 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.0002583/0.3494, allocations: 131 kB / 489.7 MB, free: 9.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.351, allocations: 0.9057 MB / 490.6 MB, free: 8.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.351, allocations: 384 / 490.6 MB, free: 8.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007097/0.3517, allocations: 457 kB / 491 MB, free: 7.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.3532, allocations: 338.5 kB / 491.3 MB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.3574, allocations: 2.566 MB / 493.9 MB, free: 4.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008138/0.3582, allocations: 1.178 MB / 495.1 MB, free: 3.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005477/0.3587, allocations: 175.2 kB / 495.2 MB, free: 3.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.3589, allocations: 87.42 kB / 495.3 MB, free: 3.523 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3589, allocations: 0 / 495.3 MB, free: 3.523 MB / 398.1 MB Notification: Performance of Templates: time 0.0304/0.3893, allocations: 15.74 MB / 0.4991 GB, free: 3.938 MB / 414.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/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_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: 5.180475159548223]