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.001407/0.001407, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001515/0.001515, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001714/0.001714, allocations: 55.91 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.24, allocations: 53.36 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01307/0.2531, allocations: 10.24 MB / 441.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006433/0.2595, allocations: 3.094 MB / 444.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.2611, allocations: 39.88 kB / 445 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.2632, allocations: 0.613 MB / 445.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002991/0.2662, allocations: 0.7289 MB / 446.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.2674, allocations: 403.6 kB / 446.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003172/0.2706, allocations: 2.242 MB / 448.9 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.2721, allocations: 0.6068 MB / 449.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.2738, allocations: 0.8717 MB / 450.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001075/0.2749, allocations: 0.7849 MB / 451.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002706/0.2752, allocations: 216 kB / 451.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004625/0.2756, allocations: 252 kB / 451.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003358/0.276, allocations: 430.5 kB / 452.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008368/0.2768, allocations: 0.8244 MB / 452.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002823/0.2796, allocations: 2.715 MB / 455.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2796, allocations: 4 kB / 455.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2796, allocations: 0 / 455.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.008e-05/0.2797, allocations: 0 / 455.6 MB, free: 14.55 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.003429/0.2831, allocations: 2.033 MB / 457.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.2831, allocations: 12.03 kB / 457.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007603/0.2839, allocations: 259.6 kB / 457.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.2857, allocations: 0.9687 MB / 458.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.2858, allocations: 119.4 kB / 459 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.286, allocations: 163.8 kB / 459.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.2888, allocations: 1.592 MB / 460.8 MB, free: 9.234 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-05/0.2888, allocations: 11.94 kB / 460.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.2889, allocations: 60 kB / 460.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.289, allocations: 40 kB / 460.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.2909, allocations: 0.9746 MB / 461.8 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008359/0.2993, allocations: 5.698 MB / 467.5 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008584/0.3001, allocations: 381.3 kB / 467.9 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004357/0.3005, allocations: 198.1 kB / 468.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.3006, allocations: 8.438 kB / 468.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005865/0.3012, allocations: 320.2 kB / 468.4 MB, free: 1.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.424e-06/0.3012, allocations: 4 kB / 468.4 MB, free: 1.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003398/0.3046, allocations: 1.541 MB / 470 MB, free: 15.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3047, allocations: 162.7 kB / 470.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001587/0.3063, allocations: 1.122 MB / 471.3 MB, free: 14.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.3063, allocations: 33.7 kB / 471.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008115/0.3071, allocations: 0.9005 MB / 472.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.3073, allocations: 210.3 kB / 472.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003008/0.3076, allocations: 222.8 kB / 472.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3078, allocations: 361.8 kB / 473 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.3083, allocations: 256.2 kB / 473.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.3095, allocations: 0.9327 MB / 474.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.3111, allocations: 1.113 MB / 475.3 MB, free: 9.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.3111, allocations: 8 kB / 475.3 MB, free: 9.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00225/0.3134, allocations: 1.19 MB / 476.5 MB, free: 8.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.212e-05/0.3135, allocations: 41.7 kB / 476.5 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.3135, allocations: 20 kB / 476.5 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.3137, allocations: 69.77 kB / 476.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008007/0.3145, allocations: 267.5 kB / 476.8 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.3167, allocations: 2.524 MB / 479.4 MB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009563/0.3177, allocations: 76.17 kB / 479.4 MB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.512e-05/0.3178, allocations: 60 kB / 479.5 MB, free: 5.168 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.0006429/0.3184, allocations: 355.4 kB / 479.9 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.3186, allocations: 123.2 kB / 480 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.3197, allocations: 0.5418 MB / 480.5 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3197, allocations: 8 kB / 480.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3197, allocations: 0 / 480.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.3197, allocations: 3.984 kB / 480.5 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.3224, allocations: 1.552 MB / 482.1 MB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.3224, allocations: 7.938 kB / 482.1 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004406/0.3228, allocations: 103.9 kB / 482.2 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001553/0.323, allocations: 37.7 kB / 482.2 MB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.323, allocations: 16.47 kB / 482.2 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.3252, allocations: 2.493 MB / 484.7 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.3252, allocations: 8.25 kB / 484.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.3268, allocations: 0.9101 MB / 485.7 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000437/0.3272, allocations: 159.2 kB / 485.8 MB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.3274, allocations: 16 kB / 485.8 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.3279, allocations: 39.91 kB / 485.9 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.328, allocations: 55.84 kB / 485.9 MB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.999e-05/0.328, allocations: 20 kB / 485.9 MB, free: 14.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.3291, allocations: 0.7161 MB / 486.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3291, allocations: 0 / 486.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001184/0.3303, allocations: 311.9 kB / 487 MB, free: 13.3 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.0002566/0.3306, allocations: 131.1 kB / 487.1 MB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.3323, allocations: 0.9303 MB / 488 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3323, allocations: 0 / 488 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/0.333, allocations: 449 kB / 488.5 MB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.3344, allocations: 317.6 kB / 488.8 MB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.3389, allocations: 2.542 MB / 491.3 MB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007281/0.3397, allocations: 0.5961 MB / 491.9 MB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006087/0.3403, allocations: 154.1 kB / 492.1 MB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.3405, allocations: 75.44 kB / 492.1 MB, free: 7.949 MB / 398.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3405, allocations: 0 / 492.1 MB, free: 7.949 MB / 398.1 MB Notification: Performance of Templates: time 0.03096/0.3714, allocations: 16.54 MB / 0.4967 GB, free: 7.727 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.227519903331995]