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.001711/0.001711, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002049/0.002049, allocations: 219.5 kB / 24.48 MB, free: 3.836 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.447/1.447, allocations: 230.5 MB / 258.1 MB, free: 7.801 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.00224/0.00224, allocations: 67.89 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2651, allocations: 53.41 MB / 432.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01334/0.2784, allocations: 10.22 MB / 442.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006647/0.2851, allocations: 3.094 MB / 445.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.2868, allocations: 43.81 kB / 445.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002047/0.2888, allocations: 0.6168 MB / 446.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002577/0.2914, allocations: 0.7251 MB / 447.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2924, allocations: 403.6 kB / 447.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003255/0.2957, allocations: 2.245 MB / 449.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001064/0.2967, allocations: 0.6029 MB / 450.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001516/0.2982, allocations: 0.8756 MB / 451.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001154/0.2994, allocations: 0.7772 MB / 452 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002923/0.2997, allocations: 216 kB / 452.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005159/0.3002, allocations: 260 kB / 452.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003695/0.3006, allocations: 438.4 kB / 452.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009491/0.3015, allocations: 0.8206 MB / 453.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00321/0.3047, allocations: 2.711 MB / 456.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3047, allocations: 4 kB / 456.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3047, allocations: 0 / 456.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.518e-05/0.3048, allocations: 0 / 456.4 MB, free: 14.38 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.003887/0.3087, allocations: 2.033 MB / 458.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3087, allocations: 15.98 kB / 458.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008052/0.3095, allocations: 263.6 kB / 458.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/0.3114, allocations: 0.9725 MB / 459.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-05/0.3115, allocations: 111.5 kB / 459.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000222/0.3117, allocations: 175.8 kB / 460 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002566/0.3143, allocations: 1.584 MB / 461.6 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.26e-05/0.3144, allocations: 7.984 kB / 461.6 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.3145, allocations: 64 kB / 461.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.3145, allocations: 40 kB / 461.7 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.3164, allocations: 0.9746 MB / 462.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008365/0.3248, allocations: 5.706 MB / 468.4 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008411/0.3256, allocations: 373.4 kB / 468.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00047/0.3261, allocations: 205.1 kB / 468.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.051e-05/0.3261, allocations: 8.438 kB / 468.9 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005845/0.3267, allocations: 324.2 kB / 469.3 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.444e-06/0.3267, allocations: 0 / 469.3 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00372/0.3304, allocations: 1.541 MB / 470.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/0.3306, allocations: 166.7 kB / 471 MB, free: 15.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.3322, allocations: 1.114 MB / 472.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.3322, allocations: 33.7 kB / 472.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007832/0.333, allocations: 0.9044 MB / 473 MB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3332, allocations: 210.3 kB / 473.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.3335, allocations: 222.8 kB / 473.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.3337, allocations: 357.9 kB / 473.8 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.3341, allocations: 256.2 kB / 474 MB, free: 12.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009999/0.3351, allocations: 0.9328 MB / 475 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.3367, allocations: 1.113 MB / 476.1 MB, free: 9.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.3367, allocations: 8 kB / 476.1 MB, free: 9.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002166/0.3388, allocations: 1.197 MB / 477.3 MB, free: 8.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/0.3389, allocations: 37.7 kB / 477.3 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.3389, allocations: 20 kB / 477.3 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/0.3392, allocations: 70.34 kB / 477.4 MB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007883/0.34, allocations: 271.5 kB / 477.7 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.3421, allocations: 2.513 MB / 480.2 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009582/0.3431, allocations: 75.95 kB / 480.3 MB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.741e-05/0.3432, allocations: 60 kB / 480.3 MB, free: 4.996 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.0006309/0.3438, allocations: 360.8 kB / 480.7 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.344, allocations: 127.2 kB / 480.8 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/0.345, allocations: 0.5379 MB / 481.3 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.345, allocations: 8.094 kB / 481.3 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.345, allocations: 3.984 kB / 481.3 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.345, allocations: 0 / 481.3 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.3477, allocations: 1.552 MB / 482.9 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.088e-06/0.3477, allocations: 4 kB / 482.9 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004279/0.3481, allocations: 99.83 kB / 483 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000154/0.3483, allocations: 54.09 kB / 483 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.323e-05/0.3483, allocations: 16 kB / 483.1 MB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.3503, allocations: 2.493 MB / 485.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.3503, allocations: 7.938 kB / 485.6 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.3519, allocations: 0.9025 MB / 486.5 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004608/0.3523, allocations: 159.2 kB / 486.6 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.3525, allocations: 16 kB / 486.6 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004922/0.3529, allocations: 36.06 kB / 486.7 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3531, allocations: 55.8 kB / 486.7 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.3531, allocations: 20 kB / 486.7 MB, free: 14.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.3542, allocations: 0.7122 MB / 487.5 MB, free: 13.44 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3542, allocations: 0 / 487.5 MB, free: 13.44 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001289/0.3555, allocations: 311.9 kB / 487.8 MB, free: 13.14 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.0002911/0.3558, allocations: 123.1 kB / 487.9 MB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3575, allocations: 0.9331 MB / 488.8 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.3575, allocations: 4 kB / 488.8 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006729/0.3582, allocations: 446.9 kB / 489.3 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.3596, allocations: 318.3 kB / 489.6 MB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004384/0.364, allocations: 2.577 MB / 492.1 MB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006879/0.3647, allocations: 0.5961 MB / 492.7 MB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.3649, allocations: 87.38 kB / 492.8 MB, free: 7.879 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3649, allocations: 0 / 492.8 MB, free: 7.879 MB / 398.1 MB Notification: Performance of Templates: time 0.04192/0.4069, allocations: 31.66 MB / 0.5122 GB, free: 8.242 MB / 430.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/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_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: 9.887263686861843]