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.001835/0.001835, allocations: 81.62 kB / 21.25 MB, free: 0.5469 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.002168/0.002168, allocations: 159.8 kB / 24.5 MB, free: 3.719 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.465/1.465, allocations: 177.1 MB / 204.7 MB, free: 8.953 MB / 190.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.001914/0.001914, allocations: 62.52 kB / 325.5 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1294, allocations: 53.39 MB / 378.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01806/0.1475, allocations: 10.23 MB / 389.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006267/0.1537, allocations: 3.094 MB / 392.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001134/0.1549, allocations: 43.81 kB / 392.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.1565, allocations: 0.613 MB / 392.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.1583, allocations: 0.729 MB / 393.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.1591, allocations: 399.5 kB / 394 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002466/0.1615, allocations: 2.257 MB / 396.3 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009745/0.1625, allocations: 0.6029 MB / 396.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.1636, allocations: 0.8639 MB / 397.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.1647, allocations: 0.7888 MB / 398.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.1649, allocations: 216 kB / 398.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004329/0.1653, allocations: 256 kB / 399 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000342/0.1657, allocations: 426.5 kB / 399.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008671/0.1665, allocations: 0.8206 MB / 400.2 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002672/0.1692, allocations: 2.708 MB / 402.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1692, allocations: 0 / 402.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1692, allocations: 4 kB / 403 MB, free: 7.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.1692, allocations: 0 / 403 MB, free: 7.258 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.003651/0.1729, allocations: 2.041 MB / 405 MB, free: 5.168 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1729, allocations: 11.98 kB / 405 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007787/0.1737, allocations: 271.5 kB / 405.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001721/0.1754, allocations: 0.9648 MB / 406.2 MB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.1755, allocations: 119.5 kB / 406.4 MB, free: 3.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.1758, allocations: 163.8 kB / 406.5 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.1783, allocations: 1.584 MB / 408.1 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.096e-05/0.1783, allocations: 8 kB / 408.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.1784, allocations: 68 kB / 408.2 MB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/0.1785, allocations: 40 kB / 408.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.1803, allocations: 0.9707 MB / 409.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007334/0.1876, allocations: 5.716 MB / 414.9 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000819/0.1885, allocations: 380.9 kB / 415.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004291/0.1889, allocations: 200.3 kB / 415.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.1889, allocations: 4.5 kB / 415.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005551/0.1895, allocations: 321.2 kB / 415.8 MB, free: 9.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.264e-06/0.1895, allocations: 4 kB / 415.8 MB, free: 9.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003219/0.1927, allocations: 1.544 MB / 417.3 MB, free: 8.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1928, allocations: 162.7 kB / 417.5 MB, free: 8.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.1943, allocations: 1.118 MB / 418.6 MB, free: 6.953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.458e-05/0.1944, allocations: 37.7 kB / 418.6 MB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007387/0.1951, allocations: 0.8967 MB / 419.5 MB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.1953, allocations: 218.2 kB / 419.8 MB, free: 5.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.1956, allocations: 222.8 kB / 420 MB, free: 5.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1957, allocations: 349.9 kB / 420.3 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004892/0.1962, allocations: 260.2 kB / 420.6 MB, free: 4.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.1973, allocations: 0.9327 MB / 421.5 MB, free: 3.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/0.1987, allocations: 1.114 MB / 422.6 MB, free: 2.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.1987, allocations: 4 kB / 422.6 MB, free: 2.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00201/0.2008, allocations: 1.194 MB / 423.8 MB, free: 1.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.328e-05/0.2008, allocations: 49.64 kB / 423.9 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/0.2008, allocations: 23.98 kB / 423.9 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.2011, allocations: 57.7 kB / 423.9 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008245/0.2019, allocations: 279.4 kB / 424.2 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.204, allocations: 2.512 MB / 426.7 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008575/0.2048, allocations: 76.14 kB / 426.8 MB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.2049, allocations: 67.94 kB / 426.9 MB, free: 13.84 MB / 398.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.000586/0.2055, allocations: 353.3 kB / 427.2 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.2057, allocations: 127.2 kB / 427.3 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.2067, allocations: 0.534 MB / 427.9 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.2067, allocations: 8.094 kB / 427.9 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2067, allocations: 7.984 kB / 427.9 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.2067, allocations: 3.984 kB / 427.9 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.2092, allocations: 1.537 MB / 429.4 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.2092, allocations: 4 kB / 429.4 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.2097, allocations: 107.8 kB / 429.5 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/0.2098, allocations: 41.7 kB / 429.6 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.2099, allocations: 16 kB / 429.6 MB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.2118, allocations: 2.494 MB / 432.1 MB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.2118, allocations: 7.938 kB / 432.1 MB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.2133, allocations: 0.9111 MB / 433 MB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.2136, allocations: 159.2 kB / 433.2 MB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001131/0.2138, allocations: 16 kB / 433.2 MB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005008/0.2143, allocations: 31.97 kB / 433.2 MB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.2144, allocations: 55.8 kB / 433.3 MB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/0.2144, allocations: 20 kB / 433.3 MB, free: 7.027 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001049/0.2154, allocations: 0.72 MB / 434 MB, free: 6.301 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2154, allocations: 0 / 434 MB, free: 6.301 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001152/0.2166, allocations: 300 kB / 434.3 MB, free: 6.008 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.0002358/0.2168, allocations: 131 kB / 434.4 MB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.2185, allocations: 0.9298 MB / 435.3 MB, free: 4.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.2185, allocations: 448 / 435.4 MB, free: 4.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007204/0.2192, allocations: 461 kB / 435.8 MB, free: 4.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/0.2206, allocations: 311.6 kB / 436.1 MB, free: 4.129 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00413/0.2247, allocations: 2.536 MB / 438.6 MB, free: 1.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007128/0.2254, allocations: 0.5922 MB / 439.2 MB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005485/0.226, allocations: 154.1 kB / 439.4 MB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.2261, allocations: 76.5 kB / 439.5 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2261, allocations: 0 / 439.5 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of Templates: time 0.028/0.2541, allocations: 14.44 MB / 453.9 MB, free: 2.449 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 -s ida -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: 5.2875011779833585]