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.001072/0.001072, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00123/0.002301, allocations: 449.7 kB / 10.37 MB, free: 328 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.0007007/0.0007007, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008463/0.001547, allocations: 455.6 kB / 11.71 MB, free: 2.461 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.8892/0.8892, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08197/0.9711, allocations: 53.65 MB / 243.3 MB, free: 15.58 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.583e-06/1.583e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.628e-05, allocations: 6.25 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.0226/0.02262, allocations: 11.49 MB / 256 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.03361, allocations: 3.339 MB / 259.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006078/0.03422, allocations: 43.81 kB / 259.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004117/0.03833, allocations: 0.6439 MB / 260.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001353/0.03969, allocations: 0.7674 MB / 260.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008305/0.04052, allocations: 407.4 kB / 261.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004946/0.04546, allocations: 2.353 MB / 263.6 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008392/0.0463, allocations: 0.6302 MB / 264.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004618/0.05092, allocations: 1.501 MB / 265.7 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008436/0.05176, allocations: 0.7167 MB / 266.4 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002389/0.052, allocations: 212 kB / 266.6 MB, free: 8.051 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003558/0.05236, allocations: 255.9 kB / 266.9 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.05259, allocations: 330.9 kB / 267.2 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003573/0.05616, allocations: 0.5888 MB / 267.8 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.05782, allocations: 1.319 MB / 269.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.417e-05/0.05783, allocations: 0 / 269.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.05783, allocations: 0 / 269.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.05786, allocations: 0 / 269.1 MB, free: 5.562 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.002436/0.0603, allocations: 2.367 MB / 271.5 MB, free: 3.152 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.06033, allocations: 8.031 kB / 271.5 MB, free: 3.145 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005782/0.06091, allocations: 409.7 kB / 271.9 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.06206, allocations: 0.7372 MB / 272.6 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.472e-05/0.06215, allocations: 123.5 kB / 272.7 MB, free: 1.836 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/0.06232, allocations: 156.3 kB / 272.9 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.06368, allocations: 1.181 MB / 274.1 MB, free: 416 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.06373, allocations: 7.984 kB / 274.1 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.467e-05/0.06381, allocations: 64 kB / 274.1 MB, free: 344 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.132e-05/0.06384, allocations: 40 kB / 274.2 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1044/0.1682, allocations: 379.4 kB / 274.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005017/0.1732, allocations: 5.121 MB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.1736, allocations: 224.4 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.1737, allocations: 103.2 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.1738, allocations: 10.3 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.174, allocations: 250.6 kB / 280.3 MB, free: 10.28 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.425e-06/0.174, allocations: 0.5938 kB / 280.3 MB, free: 10.28 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001518/0.1755, allocations: 0.9388 MB / 281.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.1756, allocations: 60.67 kB / 281.2 MB, free: 9.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007896/0.1763, allocations: 0.9658 MB / 282.2 MB, free: 9.719 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.1764, allocations: 40.23 kB / 282.3 MB, free: 9.688 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.1767, allocations: 0.7776 MB / 283 MB, free: 9.195 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.59e-05/0.1768, allocations: 212.7 kB / 283.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.1769, allocations: 224.2 kB / 283.5 MB, free: 9.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.177, allocations: 355.1 kB / 283.8 MB, free: 8.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.1771, allocations: 116.7 kB / 283.9 MB, free: 8.695 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.1774, allocations: 0.8058 MB / 284.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.1779, allocations: 0.8985 MB / 285.6 MB, free: 7.105 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.178, allocations: 5.25 kB / 285.6 MB, free: 7.105 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.000867/0.1788, allocations: 0.8057 MB / 286.4 MB, free: 6.973 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.1789, allocations: 41.86 kB / 286.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/0.1789, allocations: 20.5 kB / 286.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001478/0.179, allocations: 62.27 kB / 286.6 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005355/0.1796, allocations: 309 kB / 286.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008161/0.1804, allocations: 2.34 MB / 289.2 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.181, allocations: 70.5 kB / 289.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.181, allocations: 55.78 kB / 289.3 MB, free: 4.648 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.0002339/0.1812, allocations: 205.2 kB / 289.5 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.316e-05/0.1813, allocations: 91.77 kB / 289.6 MB, free: 4.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.1817, allocations: 329.5 kB / 289.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1817, allocations: 5.5 kB / 289.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1817, allocations: 1.375 kB / 289.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1817, allocations: 4.109 kB / 289.9 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.1829, allocations: 1.007 MB / 291 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1829, allocations: 7.156 kB / 291 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.1832, allocations: 122.3 kB / 291.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.1833, allocations: 116.1 kB / 291.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.34e-05/0.1834, allocations: 34.02 kB / 291.2 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.1835, allocations: 20.75 kB / 291.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006308/0.1841, allocations: 2.317 MB / 293.6 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.1841, allocations: 8.953 kB / 293.6 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.1846, allocations: 0.5732 MB / 294.1 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.222e-05/0.1846, allocations: 14.84 kB / 294.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.1849, allocations: 33.48 kB / 294.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.251e-05/0.185, allocations: 55.97 kB / 294.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.185, allocations: 18.25 kB / 294.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004312/0.1854, allocations: 458.9 kB / 294.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1854, allocations: 0 / 294.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000837/0.1862, allocations: 310.9 kB / 295 MB, free: 1.383 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.0001519/0.1864, allocations: 105.2 kB / 295.1 MB, free: 1.312 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000612/0.187, allocations: 0.7585 MB / 295.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-05/0.187, allocations: 26.62 kB / 295.9 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.1872, allocations: 385 kB / 296.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.188, allocations: 407.2 kB / 296.7 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.2013, allocations: 2.424 MB / 299.1 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.2015, allocations: 238.7 kB / 299.3 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.202, allocations: 158.1 kB / 299.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/0.2024, allocations: 324 kB / 299.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of SimCode: time 2.154e-06/0.2024, allocations: 0 / 299.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02378/0.2262, allocations: 16.38 MB / 316.2 MB, free: 1.625 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1534989876672626]