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.0008819/0.0008819, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001322/0.002204, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0008833/0.0008833, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003903/0.004787, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9814/0.9814, allocations: 177.2 MB / 189.8 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08247/1.064, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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 1.593e-06/1.593e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.452e-05, allocations: 5.828 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01294/0.01297, allocations: 11.5 MB / 256.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007615/0.02058, allocations: 3.346 MB / 259.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00208/0.02266, allocations: 35.88 kB / 259.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.0247, allocations: 0.6439 MB / 260.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002544/0.02724, allocations: 0.7636 MB / 261 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.02834, allocations: 399.5 kB / 261.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003274/0.03161, allocations: 2.35 MB / 263.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.03265, allocations: 0.6302 MB / 264.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002715/0.03536, allocations: 1.516 MB / 265.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009831/0.03635, allocations: 0.7088 MB / 266.6 MB, free: 8.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003431/0.03669, allocations: 212 kB / 266.8 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004175/0.03711, allocations: 259.9 kB / 267.1 MB, free: 7.691 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001841/0.03729, allocations: 326.9 kB / 267.4 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004943/0.03779, allocations: 0.5927 MB / 268 MB, free: 6.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00129/0.03907, allocations: 1.323 MB / 269.3 MB, free: 5.449 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.715e-05/0.03909, allocations: 0 / 269.3 MB, free: 5.449 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.03909, allocations: 0 / 269.3 MB, free: 5.449 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.535e-05/0.03915, allocations: 4 kB / 269.3 MB, free: 5.445 MB / 266.7 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.002259/0.04141, allocations: 2.375 MB / 271.7 MB, free: 3.027 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.04144, allocations: 8.031 kB / 271.7 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005317/0.04197, allocations: 401.8 kB / 272.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009658/0.04294, allocations: 0.7295 MB / 272.8 MB, free: 1.848 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.04299, allocations: 115.5 kB / 272.9 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.04313, allocations: 172.2 kB / 273.1 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.0442, allocations: 1.17 MB / 274.3 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.419e-05/0.04424, allocations: 11.92 kB / 274.3 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.087e-05/0.0443, allocations: 64 kB / 274.3 MB, free: 228 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.04432, allocations: 36 kB / 274.4 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1224/0.1667, allocations: 389.4 kB / 274.7 MB, free: 21.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005683/0.1724, allocations: 5.119 MB / 279.9 MB, free: 18.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.1728, allocations: 223.5 kB / 280.1 MB, free: 18.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.1729, allocations: 106.8 kB / 280.2 MB, free: 18.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.173, allocations: 11.16 kB / 280.2 MB, free: 18.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.1733, allocations: 249.8 kB / 280.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.507e-06/0.1733, allocations: 1.844 kB / 280.4 MB, free: 18.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001769/0.175, allocations: 0.9512 MB / 281.4 MB, free: 18.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.1751, allocations: 61.47 kB / 281.5 MB, free: 18.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000963/0.176, allocations: 0.9607 MB / 282.4 MB, free: 17.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.1761, allocations: 39.73 kB / 282.5 MB, free: 17.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003757/0.1764, allocations: 0.7778 MB / 283.2 MB, free: 17.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.1765, allocations: 217.7 kB / 283.4 MB, free: 17.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.1767, allocations: 221 kB / 283.7 MB, free: 17.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.431e-05/0.1768, allocations: 358.5 kB / 284 MB, free: 17.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.177, allocations: 118.3 kB / 284.1 MB, free: 16.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003541/0.1773, allocations: 0.7999 MB / 284.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007814/0.1781, allocations: 0.9636 MB / 285.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.1781, allocations: 5.562 kB / 285.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001028/0.1791, allocations: 0.8101 MB / 286.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.1792, allocations: 40.42 kB / 286.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.1792, allocations: 18.88 kB / 286.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001706/0.1794, allocations: 60.19 kB / 286.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006541/0.18, allocations: 305.3 kB / 287.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009032/0.1809, allocations: 2.343 MB / 289.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006317/0.1816, allocations: 68.81 kB / 289.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.1816, allocations: 53.42 kB / 289.6 MB, free: 12.87 MB / 266.7 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.0002399/0.1819, allocations: 199.5 kB / 289.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.182, allocations: 92.83 kB / 289.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004332/0.1824, allocations: 337.1 kB / 290.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1824, allocations: 5.562 kB / 290.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1824, allocations: 1.125 kB / 290.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.1824, allocations: 2.766 kB / 290.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.1839, allocations: 1.011 MB / 291.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.1839, allocations: 2.75 kB / 291.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.1842, allocations: 118.8 kB / 291.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.1845, allocations: 111.4 kB / 291.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.1846, allocations: 36.69 kB / 291.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.1846, allocations: 18.78 kB / 291.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007295/0.1854, allocations: 2.319 MB / 293.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.1854, allocations: 13.91 kB / 293.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.1859, allocations: 0.5683 MB / 294.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.186, allocations: 24.16 kB / 294.4 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.1863, allocations: 27.77 kB / 294.5 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.1864, allocations: 62.53 kB / 294.5 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.1864, allocations: 14.47 kB / 294.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004714/0.1869, allocations: 461.6 kB / 295 MB, free: 9.512 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1869, allocations: 0 / 295 MB, free: 9.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009048/0.1878, allocations: 300 kB / 295.3 MB, free: 9.512 MB / 266.7 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.0001786/0.188, allocations: 120 kB / 295.4 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007092/0.1887, allocations: 0.7692 MB / 296.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.585e-05/0.1887, allocations: 22.84 kB / 296.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.189, allocations: 412.3 kB / 296.6 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.1905, allocations: 3.087 MB / 299.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/0.2081, allocations: 2.409 MB / 302.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.2083, allocations: 241 kB / 302.3 MB, free: 4.184 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000504/0.2089, allocations: 153.7 kB / 302.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004735/0.2093, allocations: 329 kB / 302.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2093, allocations: 1.422 kB / 302.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of Templates: time 0.02166/0.231, allocations: 15.79 MB / 318.6 MB, free: 4.477 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0821004221215844]