Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 104.7 kB / 18.78 MB, free: 3.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 211.9 kB / 19.8 MB, free: 2.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 230.4 MB / 251.1 MB, free: 8.441 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 68.08 kB / 369 MB, free: 6.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2556, allocations: 53.32 MB / 422.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01445/0.27, allocations: 11.81 MB / 434.1 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006922/0.277, allocations: 3.261 MB / 437.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.2786, allocations: 39.88 kB / 437.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002702/0.2813, allocations: 0.6752 MB / 438.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003398/0.2847, allocations: 0.7251 MB / 438.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001527/0.2862, allocations: 403.5 kB / 439.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003784/0.29, allocations: 2.242 MB / 441.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.2915, allocations: 0.6454 MB / 442.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.293, allocations: 0.8561 MB / 442.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.2948, allocations: 0.914 MB / 443.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005831/0.2954, allocations: 219.9 kB / 444.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000754/0.2961, allocations: 260 kB / 444.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003865/0.2965, allocations: 426.4 kB / 444.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.2977, allocations: 1.019 MB / 445.7 MB, free: 256 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.3008, allocations: 2.689 MB / 448.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3008, allocations: 0 / 448.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3008, allocations: 0 / 448.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.258e-05/0.3009, allocations: 0 / 448.4 MB, free: 13.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.003638/0.3045, allocations: 2.113 MB / 450.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3045, allocations: 11.97 kB / 450.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008076/0.3053, allocations: 267.6 kB / 450.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.307, allocations: 1.053 MB / 451.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-05/0.3071, allocations: 115.4 kB / 452 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002216/0.3073, allocations: 159.9 kB / 452.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002544/0.3099, allocations: 1.487 MB / 453.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-05/0.3099, allocations: 7.953 kB / 453.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.31, allocations: 68 kB / 453.7 MB, free: 8.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.3101, allocations: 36 kB / 453.7 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/0.3119, allocations: 0.9785 MB / 454.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008936/0.3209, allocations: 6.537 MB / 461.3 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/0.3217, allocations: 380.1 kB / 461.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000431/0.3222, allocations: 202.1 kB / 461.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.911e-05/0.3222, allocations: 8.422 kB / 461.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00055/0.3228, allocations: 264.8 kB / 462.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.3228, allocations: 0 / 462.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003432/0.3262, allocations: 1.799 MB / 463.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.3263, allocations: 162.8 kB / 464 MB, free: 13.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.3281, allocations: 1.273 MB / 465.3 MB, free: 11.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.3281, allocations: 37.7 kB / 465.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007536/0.3289, allocations: 0.8895 MB / 466.2 MB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.3291, allocations: 214.3 kB / 466.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.3294, allocations: 226.7 kB / 466.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.3296, allocations: 357.8 kB / 467 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/0.33, allocations: 230.5 kB / 467.3 MB, free: 9.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009356/0.331, allocations: 0.8034 MB / 468.1 MB, free: 8.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.3324, allocations: 1.118 MB / 469.2 MB, free: 7.516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.3324, allocations: 8 kB / 469.2 MB, free: 7.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002058/0.3345, allocations: 1.174 MB / 470.4 MB, free: 6.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.609e-05/0.3345, allocations: 45.69 kB / 470.4 MB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/0.3346, allocations: 16 kB / 470.4 MB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.3348, allocations: 65.64 kB / 470.5 MB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007711/0.3356, allocations: 276 kB / 470.7 MB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.3379, allocations: 2.777 MB / 473.5 MB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.3389, allocations: 68.02 kB / 473.6 MB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.347e-05/0.339, allocations: 60 kB / 473.6 MB, free: 2.727 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.0006426/0.3396, allocations: 365.4 kB / 474 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.3398, allocations: 143.1 kB / 474.1 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.3409, allocations: 0.545 MB / 474.7 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3409, allocations: 8 kB / 474.7 MB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3409, allocations: 0 / 474.7 MB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.3409, allocations: 7.984 kB / 474.7 MB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002869/0.3438, allocations: 1.863 MB / 476.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3438, allocations: 4 kB / 476.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/0.3442, allocations: 115.8 kB / 476.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.3444, allocations: 37.7 kB / 476.7 MB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.3444, allocations: 16 kB / 476.7 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.3466, allocations: 2.749 MB / 479.5 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.3466, allocations: 7.938 kB / 479.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.348, allocations: 0.9326 MB / 480.4 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.3484, allocations: 256.2 kB / 480.7 MB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.3485, allocations: 19.98 kB / 480.7 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005151/0.349, allocations: 27.98 kB / 480.7 MB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3492, allocations: 59.81 kB / 480.8 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.3492, allocations: 20 kB / 480.8 MB, free: 11.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001288/0.3505, allocations: 0.8422 MB / 481.6 MB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3505, allocations: 0 / 481.6 MB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001129/0.3516, allocations: 300 kB / 481.9 MB, free: 9.914 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.000255/0.3519, allocations: 147 kB / 482.1 MB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001646/0.3535, allocations: 0.9013 MB / 483 MB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.3535, allocations: 4 kB / 483 MB, free: 8.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.3542, allocations: 454.8 kB / 483.4 MB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/0.3557, allocations: 338.4 kB / 483.8 MB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.3601, allocations: 2.551 MB / 486.3 MB, free: 5.398 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008674/0.361, allocations: 1.174 MB / 487.5 MB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006355/0.3616, allocations: 179.3 kB / 487.7 MB, free: 4.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.3618, allocations: 91.42 kB / 487.8 MB, free: 3.922 MB / 398.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3618, allocations: 0 / 487.8 MB, free: 3.922 MB / 398.1 MB Notification: Performance of Templates: time 0.03241/0.3942, allocations: 15.56 MB / 0.4915 GB, free: 4.539 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches