Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00207/0.00207, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002806/0.002806, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 254.1 MB, free: 15.09 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 47.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1009, allocations: 53.33 MB / 426.8 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.2074/0.3083, allocations: 11.8 MB / 438.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.3135, allocations: 3.258 MB / 441.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.3147, allocations: 43.41 kB / 441.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.3164, allocations: 0.6665 MB / 442.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002028/0.3184, allocations: 0.7287 MB / 443.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.3194, allocations: 399.5 kB / 443.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.3219, allocations: 2.251 MB / 446 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009809/0.3228, allocations: 0.647 MB / 446.6 MB, free: 332 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001541/0.3244, allocations: 0.8763 MB / 447.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.3257, allocations: 0.9063 MB / 448.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002998/0.326, allocations: 217.2 kB / 448.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005624/0.3266, allocations: 257.5 kB / 448.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004402/0.327, allocations: 432.2 kB / 449.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.3282, allocations: 1.015 MB / 450.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.3318, allocations: 2.694 MB / 453 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3318, allocations: 5.062 kB / 453 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3318, allocations: 0 / 453 MB, free: 13.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.857e-05/0.3319, allocations: 0 / 453 MB, free: 13.37 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.004121/0.336, allocations: 2.112 MB / 455.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.336, allocations: 9.625 kB / 455.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008477/0.3369, allocations: 261.3 kB / 455.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00184/0.3387, allocations: 1.05 MB / 456.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.3388, allocations: 121.7 kB / 456.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002232/0.339, allocations: 162 kB / 456.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002619/0.3417, allocations: 1.487 MB / 458.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.149e-05/0.3417, allocations: 12.05 kB / 458.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.3419, allocations: 63.55 kB / 458.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.3419, allocations: 38.25 kB / 458.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.3438, allocations: 0.9824 MB / 459.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008665/0.3525, allocations: 6.539 MB / 465.8 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008863/0.3534, allocations: 390.5 kB / 466.2 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004453/0.3538, allocations: 200.5 kB / 466.4 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.168e-05/0.3539, allocations: 9.406 kB / 466.4 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005442/0.3544, allocations: 268.8 kB / 466.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.184e-06/0.3544, allocations: 1.469 kB / 466.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00355/0.358, allocations: 1.778 MB / 468.4 MB, free: 2.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.3581, allocations: 161.6 kB / 468.6 MB, free: 2.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.3599, allocations: 1.282 MB / 469.9 MB, free: 1.516 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.36, allocations: 37.08 kB / 469.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007741/0.3607, allocations: 0.8992 MB / 470.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.3609, allocations: 209.7 kB / 471 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/0.3613, allocations: 225.3 kB / 471.2 MB, free: 360 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.3614, allocations: 355.9 kB / 471.6 MB, free: 8 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.362, allocations: 225.3 kB / 471.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009814/0.363, allocations: 0.8043 MB / 472.6 MB, free: 15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.3646, allocations: 1.124 MB / 473.7 MB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.3646, allocations: 6.25 kB / 473.7 MB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002177/0.3667, allocations: 1.167 MB / 474.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.3668, allocations: 44.84 kB / 474.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.3668, allocations: 18.22 kB / 475 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002556/0.3671, allocations: 72.64 kB / 475 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.3679, allocations: 268.3 kB / 475.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.3702, allocations: 2.773 MB / 478.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.3713, allocations: 68.53 kB / 478.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.743e-05/0.3714, allocations: 66.67 kB / 478.2 MB, free: 10.23 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.0006325/0.372, allocations: 360.3 kB / 478.6 MB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.3722, allocations: 139.8 kB / 478.7 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.3733, allocations: 0.5546 MB / 479.2 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.3733, allocations: 4.781 kB / 479.2 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3733, allocations: 2.656 kB / 479.3 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3733, allocations: 3.984 kB / 479.3 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.3763, allocations: 1.867 MB / 481.1 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3763, allocations: 4.125 kB / 481.1 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.3767, allocations: 107.7 kB / 481.2 MB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001543/0.3769, allocations: 44.17 kB / 481.3 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/0.3769, allocations: 18.88 kB / 481.3 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.3791, allocations: 2.743 MB / 484 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.3791, allocations: 10 kB / 484 MB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.3807, allocations: 0.9297 MB / 485 MB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004505/0.3811, allocations: 257.3 kB / 485.2 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3813, allocations: 19.98 kB / 485.2 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.3818, allocations: 31.98 kB / 485.3 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.382, allocations: 55.81 kB / 485.3 MB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.382, allocations: 16 kB / 485.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001444/0.3835, allocations: 0.8461 MB / 486.2 MB, free: 3.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3835, allocations: 0 / 486.2 MB, free: 3.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00145/0.3849, allocations: 308 kB / 486.5 MB, free: 2.891 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.000279/0.3852, allocations: 135 kB / 486.6 MB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.3869, allocations: 0.9055 MB / 487.5 MB, free: 1.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3869, allocations: 3.938 kB / 487.5 MB, free: 1.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007267/0.3876, allocations: 458.1 kB / 488 MB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.3892, allocations: 344.4 kB / 488.3 MB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004565/0.3937, allocations: 2.55 MB / 490.9 MB, free: 14.4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009247/0.3946, allocations: 1.178 MB / 492 MB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005618/0.3952, allocations: 167.3 kB / 492.2 MB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/0.3954, allocations: 87.42 kB / 492.3 MB, free: 12.94 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3954, allocations: 0 / 492.3 MB, free: 12.94 MB / 398.1 MB Notification: Performance of Templates: time 0.03081/0.4262, allocations: 15.49 MB / 0.4959 GB, free: 13.61 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.346695940941572]