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.002003/0.002003, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002515/0.002515, allocations: 213.6 kB / 23.73 MB, free: 4.16 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.546/1.546, allocations: 230.5 MB / 257.4 MB, free: 7.816 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.001929/0.001929, allocations: 67.83 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2493, allocations: 53.4 MB / 431.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01437/0.2637, allocations: 10.24 MB / 441.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006694/0.2703, allocations: 3.086 MB / 445 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.2716, allocations: 39.88 kB / 445 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.2733, allocations: 0.6246 MB / 445.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.2753, allocations: 0.7212 MB / 446.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008268/0.2761, allocations: 411.5 kB / 446.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.2786, allocations: 2.241 MB / 449 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009768/0.2796, allocations: 0.6029 MB / 449.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.2808, allocations: 0.8717 MB / 450.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.2818, allocations: 0.7888 MB / 451.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002723/0.2821, allocations: 220 kB / 451.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004628/0.2825, allocations: 252 kB / 451.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003511/0.2829, allocations: 426.5 kB / 452.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008406/0.2837, allocations: 0.8245 MB / 453 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002967/0.2867, allocations: 2.707 MB / 455.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2867, allocations: 0 / 455.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2867, allocations: 0 / 455.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.627e-05/0.2867, allocations: 0 / 455.7 MB, free: 14.39 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.003719/0.2904, allocations: 2.045 MB / 457.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.2905, allocations: 11.98 kB / 457.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00082/0.2913, allocations: 267.6 kB / 458 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.2932, allocations: 0.9648 MB / 458.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.2933, allocations: 119.5 kB / 459.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002419/0.2936, allocations: 167.8 kB / 459.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/0.2963, allocations: 1.59 MB / 460.8 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.428e-05/0.2964, allocations: 7.938 kB / 460.8 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.2965, allocations: 67.98 kB / 460.9 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.692e-05/0.2966, allocations: 40 kB / 460.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.2985, allocations: 0.9707 MB / 461.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008322/0.3068, allocations: 5.706 MB / 467.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008773/0.3077, allocations: 373.4 kB / 468 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004524/0.3082, allocations: 201.1 kB / 468.2 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.771e-05/0.3082, allocations: 12.44 kB / 468.2 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006019/0.3088, allocations: 324.2 kB / 468.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.3088, allocations: 0 / 468.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003362/0.3122, allocations: 1.541 MB / 470 MB, free: 15.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.3123, allocations: 158.7 kB / 470.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001587/0.3139, allocations: 1.114 MB / 471.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.3139, allocations: 37.7 kB / 471.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008667/0.3148, allocations: 0.9044 MB / 472.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/0.315, allocations: 214.3 kB / 472.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.3153, allocations: 218.8 kB / 472.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.3155, allocations: 353.9 kB / 473 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.316, allocations: 260.2 kB / 473.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.3171, allocations: 0.9366 MB / 474.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.3186, allocations: 1.113 MB / 475.3 MB, free: 9.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.3186, allocations: 8 kB / 475.3 MB, free: 9.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00233/0.321, allocations: 1.189 MB / 476.5 MB, free: 8.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.335e-05/0.321, allocations: 45.7 kB / 476.6 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.321, allocations: 20 kB / 476.6 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/0.3213, allocations: 66.33 kB / 476.6 MB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008452/0.3222, allocations: 275.5 kB / 476.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.3243, allocations: 2.516 MB / 479.4 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.3254, allocations: 67.88 kB / 479.5 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.685e-05/0.3255, allocations: 67.98 kB / 479.6 MB, free: 4.996 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.0007096/0.3262, allocations: 361 kB / 479.9 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.3264, allocations: 127.1 kB / 480 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.3275, allocations: 0.534 MB / 480.6 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.3275, allocations: 4 kB / 480.6 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3275, allocations: 4 kB / 480.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3276, allocations: 3.984 kB / 480.6 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/0.3303, allocations: 1.548 MB / 482.1 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/0.3303, allocations: 7.984 kB / 482.1 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004341/0.3307, allocations: 100.4 kB / 482.2 MB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/0.3309, allocations: 53.62 kB / 482.3 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.3309, allocations: 16 kB / 482.3 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.333, allocations: 2.493 MB / 484.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.333, allocations: 4 kB / 484.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/0.3347, allocations: 0.9063 MB / 485.7 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004891/0.3352, allocations: 155.4 kB / 485.9 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.3354, allocations: 23.98 kB / 485.9 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005231/0.3359, allocations: 27.98 kB / 485.9 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.336, allocations: 55.84 kB / 486 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.336, allocations: 20 kB / 486 MB, free: 14.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.3372, allocations: 0.716 MB / 486.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3372, allocations: 0 / 486.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001282/0.3385, allocations: 303.9 kB / 487 MB, free: 13.15 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.000281/0.3388, allocations: 127.2 kB / 487.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.3404, allocations: 0.9404 MB / 488.1 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3404, allocations: 0 / 488.1 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007618/0.3412, allocations: 455.5 kB / 488.5 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.3426, allocations: 314 kB / 488.8 MB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.3471, allocations: 2.537 MB / 491.4 MB, free: 8.645 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006932/0.3478, allocations: 0.5961 MB / 492 MB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006031/0.3484, allocations: 154.1 kB / 492.1 MB, free: 7.859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.3486, allocations: 83.36 kB / 492.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3486, allocations: 0 / 492.2 MB, free: 7.777 MB / 398.1 MB Notification: Performance of Templates: time 0.03229/0.3809, allocations: 16.53 MB / 0.4968 GB, free: 7.508 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.297263458371162]