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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00836/0.00836, allocations: 107.2 kB / 21.98 MB, free: 5.215 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.001953/0.001953, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.434/1.434, allocations: 230.6 MB / 259 MB, free: 8.039 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-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] "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.002007/0.002007, allocations: 68.12 kB / 379.8 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2543, allocations: 53.36 MB / 433.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01411/0.2684, allocations: 11.84 MB / 445 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006538/0.2749, allocations: 3.261 MB / 448.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001458/0.2764, allocations: 43.81 kB / 448.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.2783, allocations: 0.6866 MB / 449 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002264/0.2806, allocations: 0.7251 MB / 449.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000945/0.2815, allocations: 407.3 kB / 450.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.2848, allocations: 2.245 MB / 452.4 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.2859, allocations: 0.6537 MB / 453 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.2873, allocations: 0.8756 MB / 453.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.2885, allocations: 0.91 MB / 454.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002834/0.2888, allocations: 220 kB / 455 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004604/0.2893, allocations: 252 kB / 455.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.2896, allocations: 434.4 kB / 455.7 MB, free: 304 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.2906, allocations: 1.019 MB / 456.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003074/0.2937, allocations: 2.694 MB / 459.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2937, allocations: 0 / 459.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2937, allocations: 0 / 459.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.825e-05/0.2937, allocations: 0 / 459.4 MB, free: 12.57 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.003705/0.2974, allocations: 2.033 MB / 461.5 MB, free: 10.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2975, allocations: 8.031 kB / 461.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007798/0.2983, allocations: 267.6 kB / 461.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001824/0.3001, allocations: 0.9764 MB / 462.7 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.01e-05/0.3002, allocations: 119.4 kB / 462.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.3004, allocations: 159.9 kB / 463 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/0.303, allocations: 1.487 MB / 464.5 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.65e-05/0.3031, allocations: 7.953 kB / 464.5 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3032, allocations: 64 kB / 464.5 MB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.3032, allocations: 40 kB / 464.6 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.3051, allocations: 0.9746 MB / 465.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008902/0.3141, allocations: 6.392 MB / 471.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/0.3149, allocations: 376.9 kB / 472.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/0.3153, allocations: 202.1 kB / 472.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.69e-05/0.3154, allocations: 4.438 kB / 472.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005565/0.3159, allocations: 268.8 kB / 472.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.316, allocations: 0 / 472.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003482/0.3194, allocations: 1.56 MB / 474.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/0.3196, allocations: 162.7 kB / 474.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.3216, allocations: 1.281 MB / 475.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.3217, allocations: 41.64 kB / 475.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000838/0.3225, allocations: 0.8933 MB / 476.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.3227, allocations: 214.2 kB / 476.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002938/0.323, allocations: 230.7 kB / 477.1 MB, free: 10.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3232, allocations: 353.8 kB / 477.5 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.3236, allocations: 230.5 kB / 477.7 MB, free: 9.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009643/0.3246, allocations: 0.7995 MB / 478.5 MB, free: 8.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3262, allocations: 1.125 MB / 479.6 MB, free: 7.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.3262, allocations: 4 kB / 479.6 MB, free: 7.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002223/0.3284, allocations: 1.172 MB / 480.8 MB, free: 5.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/0.3285, allocations: 37.7 kB / 480.8 MB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.3285, allocations: 20 kB / 480.9 MB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.3288, allocations: 73.62 kB / 480.9 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007947/0.3296, allocations: 268 kB / 481.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.3318, allocations: 2.578 MB / 483.8 MB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.3328, allocations: 67.92 kB / 483.8 MB, free: 2.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.571e-05/0.3329, allocations: 56 kB / 483.9 MB, free: 2.637 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.0006141/0.3335, allocations: 361.3 kB / 484.2 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.3337, allocations: 143.2 kB / 484.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.3348, allocations: 0.5473 MB / 484.9 MB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.3348, allocations: 11.98 kB / 484.9 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3348, allocations: 0 / 484.9 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3348, allocations: 4 kB / 485 MB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002901/0.3377, allocations: 1.831 MB / 486.8 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.3377, allocations: 4 kB / 486.8 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.3382, allocations: 111.8 kB / 486.9 MB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.3383, allocations: 41.7 kB / 486.9 MB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.3384, allocations: 19.98 kB / 487 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/0.3404, allocations: 2.539 MB / 489.5 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.3404, allocations: 7.938 kB / 489.5 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.3419, allocations: 0.9268 MB / 490.4 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005045/0.3424, allocations: 183.1 kB / 490.6 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.3426, allocations: 16 kB / 490.6 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.3431, allocations: 31.97 kB / 490.7 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.3432, allocations: 59.8 kB / 490.7 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.3433, allocations: 23.98 kB / 490.7 MB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001287/0.3446, allocations: 0.8461 MB / 491.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3446, allocations: 0 / 491.6 MB, free: 10.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001165/0.3457, allocations: 303.9 kB / 491.9 MB, free: 10.2 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.0002548/0.346, allocations: 135.1 kB / 492 MB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.3477, allocations: 0.9044 MB / 492.9 MB, free: 9.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.3477, allocations: 4 kB / 492.9 MB, free: 9.113 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.3484, allocations: 446.5 kB / 493.4 MB, free: 8.652 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.3499, allocations: 326.1 kB / 493.7 MB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/0.3543, allocations: 2.602 MB / 496.3 MB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000854/0.3552, allocations: 1.182 MB / 497.5 MB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.3554, allocations: 95.42 kB / 497.6 MB, free: 4.352 MB / 398.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3554, allocations: 4 kB / 497.6 MB, free: 4.348 MB / 398.1 MB Notification: Performance of Templates: time 0.04131/0.3967, allocations: 31.83 MB / 0.517 GB, free: 4.559 MB / 430.1 MB " [Timeout remaining time 660] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.99734422005713]