Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.0019/0.0019, allocations: 89.56 kB / 21.44 MB, free: 276 kB / 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.002381/0.002381, allocations: 161.1 kB / 24.7 MB, free: 3.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 299 MB, free: 8.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.938e-05/3.159e-05, allocations: 2.281 kB / 299 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01279/0.01282, allocations: 10.17 MB / 309.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.01968, allocations: 3.052 MB / 312.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.02099, allocations: 39.81 kB / 312.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001732/0.02273, allocations: 0.6322 MB / 312.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001899/0.02462, allocations: 0.7558 MB / 313.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007912/0.02542, allocations: 407.4 kB / 314 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002711/0.02813, allocations: 2.342 MB / 316.4 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.02917, allocations: 0.6068 MB / 317 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001706/0.03088, allocations: 1.306 MB / 318.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009308/0.03181, allocations: 0.658 MB / 318.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002617/0.03207, allocations: 216 kB / 319.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004436/0.03251, allocations: 260 kB / 319.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003619/0.03288, allocations: 438.3 kB / 319.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008016/0.03368, allocations: 0.6937 MB / 320.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002864/0.03654, allocations: 2.683 MB / 323.2 MB, free: 328 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.03655, allocations: 0 / 323.2 MB, free: 328 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.03655, allocations: 0 / 323.2 MB, free: 328 kB / 302.1 MB Notification: Performance of Transformations before backend: time 3.569e-05/0.03658, allocations: 0 / 323.2 MB, free: 328 kB / 302.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.155/0.1916, allocations: 2.016 MB / 325.2 MB, free: 34.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1916, allocations: 9.156 kB / 325.2 MB, free: 34.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008557/0.1925, allocations: 266.5 kB / 325.5 MB, free: 34.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/0.1942, allocations: 0.9713 MB / 326.4 MB, free: 33.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.501e-05/0.1943, allocations: 114.3 kB / 326.6 MB, free: 33.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.1945, allocations: 158.9 kB / 326.7 MB, free: 33.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002423/0.1969, allocations: 1.591 MB / 328.3 MB, free: 32.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/0.1969, allocations: 8.734 kB / 328.3 MB, free: 32.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.1971, allocations: 66.44 kB / 328.4 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.1971, allocations: 39 kB / 328.4 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.1991, allocations: 0.9681 MB / 329.4 MB, free: 32.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007306/0.2064, allocations: 5.707 MB / 335.1 MB, free: 28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/0.2072, allocations: 375.1 kB / 335.5 MB, free: 27.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004236/0.2076, allocations: 201.8 kB / 335.7 MB, free: 27.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.2077, allocations: 9.078 kB / 335.7 MB, free: 27.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005005/0.2082, allocations: 325.3 kB / 336 MB, free: 27.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.2082, allocations: 0.75 kB / 336 MB, free: 27.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003155/0.2113, allocations: 1.537 MB / 337.5 MB, free: 26.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.2114, allocations: 164.5 kB / 337.7 MB, free: 26.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.2128, allocations: 1.12 MB / 338.8 MB, free: 26.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.2129, allocations: 41.67 kB / 338.8 MB, free: 26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000557/0.2134, allocations: 0.8946 MB / 339.7 MB, free: 25.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.2136, allocations: 213.5 kB / 339.9 MB, free: 25.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.2138, allocations: 221.2 kB / 340.2 MB, free: 25.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.442e-05/0.2139, allocations: 356.8 kB / 340.5 MB, free: 24.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004487/0.2143, allocations: 257.4 kB / 340.8 MB, free: 24.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006922/0.215, allocations: 0.9295 MB / 341.7 MB, free: 23.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2161, allocations: 1.12 MB / 342.8 MB, free: 22.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.2161, allocations: 5.688 kB / 342.8 MB, free: 22.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001804/0.2179, allocations: 1.193 MB / 344 MB, free: 21.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.218, allocations: 50.97 kB / 344.1 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.218, allocations: 19.19 kB / 344.1 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/0.2182, allocations: 65.27 kB / 344.1 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007819/0.219, allocations: 262.9 kB / 344.4 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.2203, allocations: 2.528 MB / 346.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009731/0.2213, allocations: 59.78 kB / 347 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.543e-05/0.2214, allocations: 62.94 kB / 347 MB, free: 19.19 MB / 302.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.0006061/0.222, allocations: 365.6 kB / 347.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.2221, allocations: 125.2 kB / 347.5 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009642/0.2231, allocations: 0.5305 MB / 348.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.2231, allocations: 5.125 kB / 348.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2231, allocations: 1.219 kB / 348.1 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.2231, allocations: 3.984 kB / 348.1 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.2253, allocations: 1.545 MB / 349.6 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.2253, allocations: 4.469 kB / 349.6 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.2257, allocations: 107.9 kB / 349.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001318/0.2258, allocations: 45.64 kB / 349.8 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.2258, allocations: 12 kB / 349.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.227, allocations: 2.491 MB / 352.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.227, allocations: 7.938 kB / 352.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.2281, allocations: 0.8989 MB / 353.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003327/0.2284, allocations: 167.2 kB / 353.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.2285, allocations: 16 kB / 353.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005069/0.2291, allocations: 32.09 kB / 353.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.2292, allocations: 63.58 kB / 353.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.2292, allocations: 20 kB / 353.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007786/0.23, allocations: 0.72 MB / 354.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 6e-08/0.23, allocations: 0 / 354.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001122/0.2311, allocations: 296 kB / 354.5 MB, free: 12.01 MB / 302.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.0002056/0.2313, allocations: 127.1 kB / 354.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.2325, allocations: 0.9282 MB / 355.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2325, allocations: 2.516 kB / 355.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005421/0.2331, allocations: 464 kB / 356 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.2344, allocations: 309.6 kB / 356.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.2374, allocations: 2.4 MB / 358.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.2379, allocations: 0.5922 MB / 359.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004321/0.2383, allocations: 162.1 kB / 359.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.2384, allocations: 80.48 kB / 359.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2384, allocations: 0 / 359.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Templates: time 0.02524/0.2637, allocations: 14.26 MB / 373.8 MB, free: 8.547 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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: 4.894090428948402]