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.001259/0.001259, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.001376/0.001376, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.483/1.483, allocations: 230.2 MB / 255.1 MB, free: 15.4 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.001881/0.001881, allocations: 63.91 kB / 374.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1012, allocations: 53.31 MB / 427.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0133/0.1145, allocations: 11.82 MB / 439.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005462/0.1199, allocations: 3.25 MB / 442.9 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007083/0.1206, allocations: 39.88 kB / 442.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1222, allocations: 0.6792 MB / 443.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001437/0.1236, allocations: 0.7251 MB / 444.3 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007538/0.1244, allocations: 407.4 kB / 444.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.1267, allocations: 2.24 MB / 447 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009679/0.1277, allocations: 0.6571 MB / 447.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.183/0.3108, allocations: 0.8417 MB / 448.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.3121, allocations: 0.9153 MB / 449.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000394/0.3125, allocations: 217.4 kB / 449.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005333/0.313, allocations: 256.5 kB / 449.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000238/0.3132, allocations: 432.9 kB / 450.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009171/0.3142, allocations: 1.015 MB / 451.3 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.3172, allocations: 2.691 MB / 454 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3172, allocations: 1.594 kB / 454 MB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3172, allocations: 3.312 kB / 454 MB, free: 10.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.89e-05/0.3173, allocations: 0 / 454 MB, free: 10.5 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.003602/0.3209, allocations: 2.113 MB / 456.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.3209, allocations: 9.25 kB / 456.1 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008516/0.3217, allocations: 263.8 kB / 456.4 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.3235, allocations: 1.054 MB / 457.4 MB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.564e-05/0.3236, allocations: 117.3 kB / 457.5 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002127/0.3238, allocations: 158.1 kB / 457.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002605/0.3264, allocations: 1.494 MB / 459.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.352e-05/0.3264, allocations: 8.062 kB / 459.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.3266, allocations: 66.55 kB / 459.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.335e-05/0.3266, allocations: 38.88 kB / 459.3 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.3286, allocations: 0.9686 MB / 460.3 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007726/0.3363, allocations: 6.534 MB / 466.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007803/0.3371, allocations: 380.2 kB / 467.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003953/0.3375, allocations: 208.1 kB / 467.4 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.3375, allocations: 6.094 kB / 467.4 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004846/0.338, allocations: 279.3 kB / 467.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.625e-06/0.338, allocations: 0 / 467.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003229/0.3413, allocations: 1.783 MB / 469.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.3413, allocations: 162.7 kB / 469.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.343, allocations: 1.277 MB / 470.9 MB, free: 1.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.343, allocations: 37.27 kB / 470.9 MB, free: 1.758 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005047/0.3435, allocations: 0.8922 MB / 471.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.3436, allocations: 214.4 kB / 472 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000242/0.3439, allocations: 229.2 kB / 472.2 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.819e-05/0.3439, allocations: 350.5 kB / 472.6 MB, free: 448 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.3444, allocations: 231.1 kB / 472.8 MB, free: 372 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000817/0.3452, allocations: 0.8037 MB / 473.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.3466, allocations: 1.119 MB / 474.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.3466, allocations: 5.812 kB / 474.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002048/0.3487, allocations: 1.178 MB / 475.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.3487, allocations: 40.2 kB / 476 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.3488, allocations: 18.53 kB / 476 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.3491, allocations: 65.56 kB / 476 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.3499, allocations: 266.8 kB / 476.3 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/0.3522, allocations: 2.776 MB / 479.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.3534, allocations: 68.03 kB / 479.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.772e-05/0.3534, allocations: 63.47 kB / 479.2 MB, free: 11.21 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.0007185/0.3542, allocations: 360.7 kB / 479.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001972/0.3544, allocations: 143.5 kB / 479.7 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.3555, allocations: 0.5547 MB / 480.2 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.3555, allocations: 6 kB / 480.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3555, allocations: 1.344 kB / 480.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3555, allocations: 7.938 kB / 480.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.3586, allocations: 1.866 MB / 482.1 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.3586, allocations: 4.969 kB / 482.1 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.359, allocations: 104.8 kB / 482.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.3592, allocations: 55.19 kB / 482.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.3592, allocations: 11.16 kB / 482.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00215/0.3614, allocations: 2.742 MB / 485 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.3614, allocations: 6.969 kB / 485 MB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.363, allocations: 0.927 MB / 486 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005361/0.3635, allocations: 264.5 kB / 486.2 MB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/0.3637, allocations: 19.48 kB / 486.3 MB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.3642, allocations: 33.16 kB / 486.3 MB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3643, allocations: 54.27 kB / 486.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.3644, allocations: 22.86 kB / 486.4 MB, free: 5.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.3657, allocations: 0.8441 MB / 487.2 MB, free: 5.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3657, allocations: 0 / 487.2 MB, free: 5.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00136/0.367, allocations: 305 kB / 487.5 MB, free: 5.363 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.0002713/0.3673, allocations: 131.6 kB / 487.6 MB, free: 5.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.369, allocations: 0.9065 MB / 488.5 MB, free: 4.746 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.369, allocations: 1.188 kB / 488.5 MB, free: 4.746 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006934/0.3697, allocations: 443.1 kB / 489 MB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.3713, allocations: 340.5 kB / 489.3 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004734/0.376, allocations: 2.604 MB / 491.9 MB, free: 2.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009529/0.377, allocations: 1.176 MB / 493.1 MB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.3773, allocations: 94.95 kB / 493.2 MB, free: 1.688 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3773, allocations: 4 kB / 493.2 MB, free: 1.684 MB / 382.1 MB Notification: Performance of Templates: time 0.04153/0.4188, allocations: 31.82 MB / 0.5127 GB, free: 5.039 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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: 10.077294871909544]