Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001261/0.001261, allocations: 117.9 kB / 21.18 MB, free: 0.6289 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.001345/0.001345, allocations: 202.8 kB / 24.46 MB, free: 3.902 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 230.5 MB / 258.1 MB, free: 8.141 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-beta.om/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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.84 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2686, allocations: 53.31 MB / 432.1 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01417/0.2828, allocations: 12.26 MB / 444.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006566/0.2893, allocations: 3.315 MB / 447.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.2909, allocations: 39.88 kB / 447.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002076/0.293, allocations: 0.6907 MB / 448.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.2954, allocations: 0.795 MB / 449.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00089/0.2963, allocations: 403.4 kB / 449.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003158/0.2994, allocations: 2.408 MB / 452 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.3005, allocations: 0.6574 MB / 452.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001563/0.3021, allocations: 0.9067 MB / 453.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.3033, allocations: 0.9801 MB / 454.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002752/0.3036, allocations: 231.9 kB / 454.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004645/0.304, allocations: 272 kB / 455 MB, free: 360 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003743/0.3044, allocations: 462.3 kB / 455.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.3055, allocations: 1.073 MB / 456.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003138/0.3086, allocations: 2.837 MB / 459.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3086, allocations: 0 / 459.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3086, allocations: 0 / 459.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.698e-05/0.3087, allocations: 0 / 459.3 MB, free: 11.97 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004055/0.3127, allocations: 2.22 MB / 461.6 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.3128, allocations: 16.02 kB / 461.6 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009381/0.3137, allocations: 287.5 kB / 461.9 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.3157, allocations: 1.131 MB / 463 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.3158, allocations: 111.5 kB / 463.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.316, allocations: 167.8 kB / 463.3 MB, free: 7.934 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/0.3186, allocations: 1.512 MB / 464.8 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.791e-05/0.3186, allocations: 3.953 kB / 464.8 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.3188, allocations: 71.94 kB / 464.9 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.519e-05/0.3188, allocations: 40 kB / 464.9 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/0.3208, allocations: 1.041 MB / 465.9 MB, free: 5.199 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008543/0.3294, allocations: 6.248 MB / 472.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.3309, allocations: 0.5693 MB / 472.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009201/0.3318, allocations: 437.3 kB / 473.2 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.359e-05/0.3319, allocations: 8.562 kB / 473.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.3319, allocations: 39.12 kB / 473.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.524e-06/0.3319, allocations: 0 / 473.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005092/0.337, allocations: 2.391 MB / 475.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/0.3371, allocations: 111.5 kB / 475.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0018/0.3389, allocations: 1.314 MB / 477 MB, free: 9.656 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.3389, allocations: 37.7 kB / 477.1 MB, free: 9.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006587/0.3396, allocations: 0.871 MB / 477.9 MB, free: 8.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.3398, allocations: 265.8 kB / 478.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/0.3401, allocations: 214.8 kB / 478.4 MB, free: 8.258 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3403, allocations: 345.9 kB / 478.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000592/0.3409, allocations: 286.5 kB / 479 MB, free: 7.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009901/0.3418, allocations: 0.7381 MB / 479.8 MB, free: 6.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.3434, allocations: 1.088 MB / 480.9 MB, free: 5.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.3435, allocations: 8 kB / 480.9 MB, free: 5.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002482/0.3459, allocations: 1.265 MB / 482.1 MB, free: 4.098 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.346, allocations: 14.81 kB / 482.1 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.346, allocations: 12 kB / 482.2 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005174/0.3465, allocations: 142.8 kB / 482.3 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000833/0.3473, allocations: 263.6 kB / 482.6 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004337/0.3517, allocations: 4.631 MB / 487.2 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3529, allocations: 63.86 kB / 487.3 MB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/0.353, allocations: 55.98 kB / 487.3 MB, free: 14.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007034/0.3537, allocations: 361.4 kB / 487.7 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.3539, allocations: 143.1 kB / 487.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.3557, allocations: 0.8295 MB / 488.6 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.3557, allocations: 7.938 kB / 488.6 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3557, allocations: 4 kB / 488.6 MB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3557, allocations: 3.984 kB / 488.6 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003961/0.3597, allocations: 2.323 MB / 491 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.3597, allocations: 4 kB / 491 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005726/0.3602, allocations: 127.8 kB / 491.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004512/0.3607, allocations: 134.8 kB / 491.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.883e-05/0.3607, allocations: 20 kB / 491.2 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004662/0.3654, allocations: 4.788 MB / 496 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.3654, allocations: 11.88 kB / 496 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.368, allocations: 1.301 MB / 497.3 MB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006737/0.3687, allocations: 292.1 kB / 497.6 MB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.3689, allocations: 19.98 kB / 497.6 MB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006259/0.3695, allocations: 39.97 kB / 497.7 MB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3696, allocations: 64.36 kB / 497.8 MB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.3697, allocations: 20 kB / 497.8 MB, free: 3.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001307/0.371, allocations: 0.882 MB / 498.7 MB, free: 2.477 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.371, allocations: 0 / 498.7 MB, free: 2.477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001202/0.3722, allocations: 327.9 kB / 499 MB, free: 2.156 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000268/0.3724, allocations: 135.1 kB / 499.1 MB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.3744, allocations: 1.089 MB / 0.4885 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3744, allocations: 384 / 0.4885 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3755, allocations: 0.6912 MB / 0.4891 GB, free: 160 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.3772, allocations: 382.9 kB / 0.4895 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.3828, allocations: 2.997 MB / 0.4924 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009013/0.3837, allocations: 1.214 MB / 0.4936 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.384, allocations: 107.3 kB / 0.4937 GB, free: 11.36 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.384, allocations: 0 / 0.4937 GB, free: 11.36 MB / 414.1 MB Notification: Performance of Templates: time 0.04962/0.4336, allocations: 41.21 MB / 0.534 GB, free: 2.188 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 10.183377040084451]