Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 107.5 kB / 20.44 MB, free: 1.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 192.8 kB / 23.71 MB, free: 4.555 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 47.92 kB / 370.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2634, allocations: 52.17 MB / 423.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01281/0.2762, allocations: 10.23 MB / 433.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006318/0.2825, allocations: 3.051 MB / 436.3 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.2843, allocations: 43.81 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.2867, allocations: 0.6184 MB / 437 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002705/0.2894, allocations: 0.729 MB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.2906, allocations: 407.5 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003202/0.2938, allocations: 2.25 MB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.2952, allocations: 0.6026 MB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001578/0.2968, allocations: 0.8717 MB / 441.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.2984, allocations: 0.7733 MB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005628/0.2989, allocations: 220 kB / 442.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008479/0.2998, allocations: 256 kB / 443.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005443/0.3003, allocations: 430.4 kB / 443.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001494/0.3018, allocations: 0.8206 MB / 444.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.3053, allocations: 2.712 MB / 447 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3053, allocations: 4 kB / 447.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3053, allocations: 0 / 447.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.849e-05/0.3054, allocations: 0 / 447.1 MB, free: 6.379 MB / 350.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.004194/0.3096, allocations: 2.033 MB / 449.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3096, allocations: 12.03 kB / 449.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007806/0.3104, allocations: 263.6 kB / 449.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.3123, allocations: 0.9726 MB / 450.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.3124, allocations: 115.5 kB / 450.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.3126, allocations: 163.9 kB / 450.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.3152, allocations: 1.586 MB / 452.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.3152, allocations: 15.88 kB / 452.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.3153, allocations: 60 kB / 452.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.221e-05/0.3154, allocations: 44 kB / 452.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.3173, allocations: 0.9709 MB / 453.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007902/0.3252, allocations: 5.702 MB / 459 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000818/0.326, allocations: 372.7 kB / 459.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004319/0.3264, allocations: 205 kB / 459.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.3265, allocations: 8.438 kB / 459.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005508/0.327, allocations: 320.2 kB / 459.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.864e-06/0.327, allocations: 0 / 459.9 MB, free: 9.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003206/0.3302, allocations: 1.545 MB / 461.4 MB, free: 7.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.3303, allocations: 162.7 kB / 461.6 MB, free: 7.227 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.3318, allocations: 1.118 MB / 462.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/0.3319, allocations: 37.7 kB / 462.7 MB, free: 6.051 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007528/0.3326, allocations: 0.9122 MB / 463.6 MB, free: 5.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.3328, allocations: 214.3 kB / 463.8 MB, free: 4.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002824/0.3331, allocations: 214.8 kB / 464.1 MB, free: 4.703 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3332, allocations: 353.9 kB / 464.4 MB, free: 4.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.3337, allocations: 260.2 kB / 464.7 MB, free: 4.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.3347, allocations: 0.9289 MB / 465.6 MB, free: 2.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.3362, allocations: 1.117 MB / 466.7 MB, free: 1.473 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.3362, allocations: 4 kB / 466.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002118/0.3383, allocations: 1.19 MB / 467.9 MB, free: 260 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.3384, allocations: 49.62 kB / 467.9 MB, free: 204 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.3384, allocations: 16 kB / 468 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002012/0.3386, allocations: 61.7 kB / 468 MB, free: 120 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000828/0.3394, allocations: 271.6 kB / 468.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.3415, allocations: 2.517 MB / 470.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009409/0.3424, allocations: 76.05 kB / 470.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.168e-05/0.3425, allocations: 64 kB / 470.9 MB, free: 12.99 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.0006206/0.3431, allocations: 349.3 kB / 471.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.3433, allocations: 127.2 kB / 471.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.3444, allocations: 0.5341 MB / 471.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3444, allocations: 8 kB / 471.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.3444, allocations: 0 / 471.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3444, allocations: 3.984 kB / 471.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.347, allocations: 1.548 MB / 473.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.347, allocations: 4 kB / 473.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.3474, allocations: 103.9 kB / 473.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001576/0.3476, allocations: 45.64 kB / 473.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.3476, allocations: 12 kB / 473.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.3497, allocations: 2.509 MB / 476.2 MB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3497, allocations: 4 kB / 476.2 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3512, allocations: 0.9064 MB / 477.1 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004175/0.3516, allocations: 171.2 kB / 477.2 MB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.3517, allocations: 12 kB / 477.3 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.3523, allocations: 39.91 kB / 477.3 MB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3524, allocations: 55.8 kB / 477.3 MB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.3524, allocations: 16 kB / 477.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001061/0.3535, allocations: 0.72 MB / 478.1 MB, free: 5.438 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3535, allocations: 0 / 478.1 MB, free: 5.438 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001194/0.3547, allocations: 307.9 kB / 478.4 MB, free: 5.137 MB / 382.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.0002796/0.3549, allocations: 123.1 kB / 478.5 MB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001716/0.3566, allocations: 0.9342 MB / 479.4 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3567, allocations: 0 / 479.4 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.3574, allocations: 461.2 kB / 479.9 MB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.3588, allocations: 304.6 kB / 480.2 MB, free: 3.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004481/0.3633, allocations: 2.547 MB / 482.7 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000698/0.364, allocations: 0.5922 MB / 483.3 MB, free: 0 / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.3647, allocations: 158.1 kB / 483.5 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.3648, allocations: 79.44 kB / 483.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3648, allocations: 0 / 483.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of Templates: time 0.03001/0.3948, allocations: 16.46 MB / 0.4883 GB, free: 15.61 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.291763508692384]