Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.00186/0.00186, allocations: 102.8 kB / 21.19 MB, free: 0.6367 MB / 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.002221/0.002221, allocations: 217.3 kB / 24.49 MB, free: 3.93 MB / 14.72 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 1.419/1.419, allocations: 230.6 MB / 258.3 MB, free: 7.801 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+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_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_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 51.92 kB / 379 MB, free: 2.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2258, allocations: 53.37 MB / 432.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0138/0.2396, allocations: 10.56 MB / 442.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005959/0.2455, allocations: 3.14 MB / 446.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.2469, allocations: 39.88 kB / 446.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002036/0.2489, allocations: 0.6439 MB / 446.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.2512, allocations: 0.7794 MB / 447.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009997/0.2522, allocations: 407.5 kB / 447.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.2555, allocations: 2.412 MB / 450.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.2567, allocations: 0.6578 MB / 451 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.2581, allocations: 0.9378 MB / 451.9 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.2592, allocations: 0.9801 MB / 452.9 MB, free: 2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002946/0.2595, allocations: 232 kB / 453.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004724/0.26, allocations: 268 kB / 453.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003859/0.2603, allocations: 466.3 kB / 453.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008919/0.2612, allocations: 0.8711 MB / 454.7 MB, free: 184 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.2642, allocations: 2.86 MB / 457.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2642, allocations: 3.984 kB / 457.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2642, allocations: 0 / 457.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.385e-05/0.2643, allocations: 0 / 457.6 MB, free: 13.3 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.003814/0.2681, allocations: 2.133 MB / 459.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2681, allocations: 11.97 kB / 459.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009534/0.2691, allocations: 295.5 kB / 460 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/0.2711, allocations: 1.055 MB / 461.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.487e-05/0.2712, allocations: 111.5 kB / 461.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002442/0.2714, allocations: 167.8 kB / 461.3 MB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00286/0.2743, allocations: 1.604 MB / 463 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.25e-05/0.2743, allocations: 7.938 kB / 463 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.2744, allocations: 60 kB / 463 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.2745, allocations: 40 kB / 463.1 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.2767, allocations: 1.045 MB / 464.1 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007844/0.2845, allocations: 5.41 MB / 469.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.2861, allocations: 0.5661 MB / 470.1 MB, free: 348 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009754/0.2871, allocations: 430.6 kB / 470.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.321e-05/0.2871, allocations: 8.656 kB / 470.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2872, allocations: 43.16 kB / 470.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.414e-06/0.2872, allocations: 0 / 470.5 MB, free: 15.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.004924/0.2921, allocations: 2.154 MB / 472.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.2922, allocations: 111.5 kB / 472.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.2938, allocations: 1.172 MB / 474 MB, free: 12.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.2939, allocations: 37.7 kB / 474 MB, free: 12.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006918/0.2946, allocations: 0.8818 MB / 474.9 MB, free: 11.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.2948, allocations: 273.7 kB / 475.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.2951, allocations: 210.8 kB / 475.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.2953, allocations: 349.9 kB / 475.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006248/0.2959, allocations: 290.5 kB / 476 MB, free: 10.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.2969, allocations: 0.7887 MB / 476.8 MB, free: 9.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/0.2986, allocations: 1.088 MB / 477.9 MB, free: 7.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.2986, allocations: 4 kB / 477.9 MB, free: 7.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002441/0.301, allocations: 1.249 MB / 479.1 MB, free: 6.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3011, allocations: 12 kB / 479.1 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.513e-05/0.3011, allocations: 16 kB / 479.2 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/0.3016, allocations: 138.9 kB / 479.3 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008903/0.3025, allocations: 255.6 kB / 479.5 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/0.3066, allocations: 4.252 MB / 483.8 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008064/0.3074, allocations: 55.97 kB / 483.8 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.05e-05/0.3075, allocations: 56 kB / 483.9 MB, free: 1.637 MB / 382.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.000512/0.308, allocations: 357.5 kB / 484.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.3082, allocations: 135.1 kB / 484.4 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.3101, allocations: 0.8242 MB / 485.2 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.3101, allocations: 3.984 kB / 485.2 MB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.3101, allocations: 0 / 485.2 MB, free: 304 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.3105, allocations: 187 kB / 485.4 MB, free: 116 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.3106, allocations: 16 kB / 485.4 MB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000605/0.3112, allocations: 39.91 kB / 485.5 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.3114, allocations: 56.55 kB / 485.5 MB, free: 0 / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002248/0.3136, allocations: 0.8353 MB / 486.3 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001968/0.3156, allocations: 1.14 MB / 487.5 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005113/0.3161, allocations: 241.1 kB / 487.7 MB, free: 13.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001124/0.3172, allocations: 0.7763 MB / 488.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of Backend: time 4.1e-07/0.3172, allocations: 7.938 kB / 488.5 MB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.3192, allocations: 0.9744 MB / 489.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of SimCode: time 0.005054/0.3243, allocations: 3.396 MB / 492.9 MB, free: 8.512 MB / 398.1 MB Notification: Performance of Templates: time 0.03662/0.3609, allocations: 21.29 MB / 0.5021 GB, free: 3.555 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 5.226249547995394]