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.001345/0.001345, allocations: 115 kB / 18.46 MB, free: 4.621 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.001398/0.001398, allocations: 207.3 kB / 21.41 MB, free: 1.668 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.476/1.476, allocations: 230.6 MB / 254.8 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.001634/0.001634, allocations: 55.86 kB / 374.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 53.32 MB / 427.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.22/0.327, allocations: 11.81 MB / 439.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005741/0.3328, allocations: 3.262 MB / 442.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.3345, allocations: 43.56 kB / 442.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.3365, allocations: 0.6644 MB / 443.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002362/0.3388, allocations: 0.7277 MB / 444 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.3399, allocations: 398.1 kB / 444.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00309/0.343, allocations: 2.249 MB / 446.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.3441, allocations: 0.652 MB / 447.3 MB, free: 384 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.3457, allocations: 0.8717 MB / 448.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00135/0.347, allocations: 0.9101 MB / 449.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003152/0.3474, allocations: 216.9 kB / 449.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000613/0.348, allocations: 259.1 kB / 449.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.3484, allocations: 426.7 kB / 449.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.3496, allocations: 1.016 MB / 451 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003948/0.3536, allocations: 2.693 MB / 453.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3536, allocations: 0 / 453.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3536, allocations: 0 / 453.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.677e-05/0.3537, allocations: 4 kB / 453.7 MB, free: 13.42 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.004619/0.3583, allocations: 2.11 MB / 455.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.3583, allocations: 12.12 kB / 455.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008809/0.3592, allocations: 264.8 kB / 456 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00201/0.3612, allocations: 1.053 MB / 457.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-05/0.3613, allocations: 122.3 kB / 457.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002452/0.3615, allocations: 162.2 kB / 457.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/0.3643, allocations: 1.485 MB / 458.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.739e-05/0.3643, allocations: 12.64 kB / 458.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.3645, allocations: 63.39 kB / 458.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/0.3645, allocations: 38.56 kB / 459 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.3664, allocations: 0.9714 MB / 459.9 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009582/0.376, allocations: 6.553 MB / 466.5 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008553/0.3769, allocations: 384.4 kB / 466.9 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004542/0.3773, allocations: 200.4 kB / 467.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.3774, allocations: 5.156 kB / 467.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005482/0.3779, allocations: 276.2 kB / 467.3 MB, free: 3.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.244e-06/0.3779, allocations: 1.125 kB / 467.3 MB, free: 3.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003928/0.3818, allocations: 1.777 MB / 469.1 MB, free: 2.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.382, allocations: 161.6 kB / 469.3 MB, free: 2.297 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.384, allocations: 1.278 MB / 470.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.384, allocations: 37.05 kB / 470.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008365/0.3849, allocations: 0.8983 MB / 471.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.3851, allocations: 210 kB / 471.7 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.3854, allocations: 225.9 kB / 471.9 MB, free: 424 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.3856, allocations: 356.5 kB / 472.3 MB, free: 72 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/0.3861, allocations: 228.5 kB / 472.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000972/0.387, allocations: 0.8006 MB / 473.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.3885, allocations: 1.122 MB / 474.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.3886, allocations: 5.375 kB / 474.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002124/0.3907, allocations: 1.174 MB / 475.6 MB, free: 13.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.333e-05/0.3907, allocations: 39.36 kB / 475.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.3908, allocations: 19.25 kB / 475.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/0.391, allocations: 73.45 kB / 475.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007659/0.3918, allocations: 262.6 kB / 476 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/0.3941, allocations: 2.777 MB / 478.7 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.3953, allocations: 68.95 kB / 478.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-05/0.3954, allocations: 62.09 kB / 478.9 MB, free: 10.3 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.396, allocations: 363.8 kB / 479.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.3962, allocations: 138 kB / 479.4 MB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.3973, allocations: 0.5554 MB / 479.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3973, allocations: 9.672 kB / 479.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3973, allocations: 1.25 kB / 479.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.3973, allocations: 3.938 kB / 479.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00304/0.4004, allocations: 1.867 MB / 481.8 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/0.4004, allocations: 8.109 kB / 481.8 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.4008, allocations: 103.6 kB / 481.9 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.401, allocations: 47.69 kB / 482 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.401, allocations: 16.25 kB / 482 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.4032, allocations: 2.749 MB / 484.7 MB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.4032, allocations: 4.062 kB / 484.7 MB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.405, allocations: 0.9292 MB / 485.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005876/0.4056, allocations: 260.2 kB / 485.9 MB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.4058, allocations: 16 kB / 485.9 MB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005565/0.4063, allocations: 31.97 kB / 486 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.4065, allocations: 55.83 kB / 486 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.4065, allocations: 19.98 kB / 486 MB, free: 4.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.4079, allocations: 0.8461 MB / 486.9 MB, free: 3.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4079, allocations: 0 / 486.9 MB, free: 3.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0014/0.4093, allocations: 304 kB / 487.2 MB, free: 2.941 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.0002604/0.4096, allocations: 136.1 kB / 487.3 MB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.4113, allocations: 0.906 MB / 488.2 MB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4113, allocations: 0 / 488.2 MB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.412, allocations: 446 kB / 488.7 MB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.4138, allocations: 345.9 kB / 489 MB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.4186, allocations: 2.597 MB / 491.6 MB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009457/0.4196, allocations: 1.178 MB / 492.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/0.4199, allocations: 95.42 kB / 492.9 MB, free: 13.11 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4199, allocations: 0 / 492.9 MB, free: 13.11 MB / 398.1 MB Notification: Performance of Templates: time 0.04364/0.4635, allocations: 31.82 MB / 0.5124 GB, free: 13.32 MB / 430.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/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_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.946817885997007]