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.001325/0.001325, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001458/0.001458, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.479/1.479, allocations: 230.3 MB / 258 MB, free: 8.246 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.002059/0.002059, allocations: 67.88 kB / 378.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2725, allocations: 53.37 MB / 432.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01552/0.288, allocations: 11.84 MB / 444 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007048/0.2951, allocations: 3.273 MB / 447.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2968, allocations: 39.88 kB / 447.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.2992, allocations: 0.6851 MB / 448 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003057/0.3023, allocations: 0.7134 MB / 448.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.3036, allocations: 415.4 kB / 449.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003767/0.3074, allocations: 2.234 MB / 451.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001353/0.3088, allocations: 0.6573 MB / 452 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.3104, allocations: 0.8756 MB / 452.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.3123, allocations: 0.91 MB / 453.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007703/0.3131, allocations: 216 kB / 454 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007539/0.3138, allocations: 260 kB / 454.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004066/0.3142, allocations: 430.4 kB / 454.6 MB, free: 436 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.3154, allocations: 1.019 MB / 455.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003445/0.3189, allocations: 2.693 MB / 458.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3189, allocations: 3.938 kB / 458.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3189, allocations: 0 / 458.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.223e-05/0.3189, allocations: 0 / 458.4 MB, free: 12.7 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.003967/0.3229, allocations: 2.037 MB / 460.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3229, allocations: 12.03 kB / 460.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000823/0.3237, allocations: 259.6 kB / 460.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.3256, allocations: 0.9687 MB / 461.6 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.3257, allocations: 115.5 kB / 461.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002272/0.3259, allocations: 159.9 kB / 461.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002905/0.3288, allocations: 1.495 MB / 463.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.088e-05/0.3289, allocations: 11.89 kB / 463.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/0.3291, allocations: 64 kB / 463.5 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.027e-05/0.3291, allocations: 40 kB / 463.5 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.3311, allocations: 0.9707 MB / 464.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008864/0.34, allocations: 6.392 MB / 470.9 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008792/0.3408, allocations: 380.8 kB / 471.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.3413, allocations: 209.1 kB / 471.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.3413, allocations: 4.438 kB / 471.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005615/0.3419, allocations: 268.8 kB / 471.7 MB, free: 14.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.384e-06/0.3419, allocations: 0 / 471.7 MB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003393/0.3453, allocations: 1.557 MB / 473.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.3454, allocations: 166.7 kB / 473.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.3472, allocations: 1.277 MB / 474.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3472, allocations: 37.7 kB / 474.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007431/0.348, allocations: 0.8933 MB / 475.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.3481, allocations: 214.3 kB / 475.9 MB, free: 10.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.3484, allocations: 226.7 kB / 476.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3486, allocations: 349.9 kB / 476.4 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.3491, allocations: 238.4 kB / 476.6 MB, free: 9.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009286/0.35, allocations: 0.8072 MB / 477.5 MB, free: 8.676 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.3516, allocations: 1.113 MB / 478.6 MB, free: 7.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.206e-06/0.3516, allocations: 4 kB / 478.6 MB, free: 7.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00204/0.3536, allocations: 1.172 MB / 479.7 MB, free: 6.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.3537, allocations: 41.86 kB / 479.8 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/0.3537, allocations: 20 kB / 479.8 MB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.354, allocations: 73.58 kB / 479.9 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008174/0.3548, allocations: 263.7 kB / 480.1 MB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/0.357, allocations: 2.585 MB / 482.7 MB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009161/0.3579, allocations: 68.08 kB / 482.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.111e-05/0.358, allocations: 64 kB / 482.9 MB, free: 2.754 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.000614/0.3586, allocations: 357.3 kB / 483.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.3588, allocations: 139.1 kB / 483.3 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.3599, allocations: 0.5513 MB / 483.9 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.3599, allocations: 4 kB / 483.9 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3599, allocations: 4 kB / 483.9 MB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3599, allocations: 3.984 kB / 483.9 MB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.3627, allocations: 1.834 MB / 485.7 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.3627, allocations: 4 kB / 485.7 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.3631, allocations: 107.8 kB / 485.8 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.3633, allocations: 50.11 kB / 485.9 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.3633, allocations: 19.98 kB / 485.9 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/0.3653, allocations: 2.535 MB / 488.4 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.3653, allocations: 4 kB / 488.4 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.3668, allocations: 0.9267 MB / 489.4 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/0.3672, allocations: 183.1 kB / 489.6 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.3674, allocations: 16 kB / 489.6 MB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.3679, allocations: 35.97 kB / 489.6 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.3681, allocations: 51.86 kB / 489.7 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.3681, allocations: 23.92 kB / 489.7 MB, free: 11.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.3693, allocations: 0.85 MB / 490.5 MB, free: 10.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3693, allocations: 0 / 490.5 MB, free: 10.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001173/0.3705, allocations: 311.9 kB / 490.8 MB, free: 10.32 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.0002483/0.3708, allocations: 122.8 kB / 491 MB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.3724, allocations: 0.9127 MB / 491.9 MB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3724, allocations: 0 / 491.9 MB, free: 9.242 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000722/0.3731, allocations: 453.3 kB / 492.3 MB, free: 8.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.3746, allocations: 328.3 kB / 492.6 MB, free: 8.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.3789, allocations: 2.563 MB / 495.2 MB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008638/0.3797, allocations: 1.182 MB / 496.4 MB, free: 4.605 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005296/0.3803, allocations: 171.3 kB / 496.5 MB, free: 4.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.3804, allocations: 87.42 kB / 496.6 MB, free: 4.348 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3804, allocations: 0 / 496.6 MB, free: 4.348 MB / 398.1 MB Notification: Performance of Templates: time 0.03174/0.4122, allocations: 16.06 MB / 0.5007 GB, free: 4.434 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.212038059718907]