Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 113.9 kB / 17.75 MB, free: 5.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 185.2 kB / 18.68 MB, free: 4.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2376, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0126/0.2503, allocations: 12.16 MB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005885/0.2562, allocations: 3.272 MB / 416.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.2576, allocations: 35.94 kB / 416.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.2596, allocations: 0.6946 MB / 417.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002177/0.2618, allocations: 0.7794 MB / 418.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.2629, allocations: 407.5 kB / 418.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003065/0.2659, allocations: 2.416 MB / 421.2 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00145/0.2674, allocations: 0.9891 MB / 422.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001279/0.2687, allocations: 0.9105 MB / 423.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.27, allocations: 0.9839 MB / 424.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003423/0.2704, allocations: 228 kB / 424.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005904/0.271, allocations: 276 kB / 424.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003457/0.2714, allocations: 458.3 kB / 425 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.2724, allocations: 1.073 MB / 426.1 MB, free: 68 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002894/0.2753, allocations: 2.844 MB / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2753, allocations: 0 / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2753, allocations: 0 / 428.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.681e-05/0.2754, allocations: 0 / 428.9 MB, free: 13.21 MB / 350.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.003701/0.2791, allocations: 2.205 MB / 431.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2791, allocations: 12.03 kB / 431.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009099/0.28, allocations: 291.5 kB / 431.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.2818, allocations: 1.139 MB / 432.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.492e-05/0.2819, allocations: 115.5 kB / 432.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.2821, allocations: 159.9 kB / 432.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002456/0.2846, allocations: 1.512 MB / 434.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.073e-05/0.2846, allocations: 11.89 kB / 434.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.2848, allocations: 60 kB / 434.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.2848, allocations: 40 kB / 434.5 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002048/0.2869, allocations: 1.045 MB / 435.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007867/0.2947, allocations: 6.263 MB / 441.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.2963, allocations: 0.6087 MB / 442.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000874/0.2971, allocations: 460.1 kB / 442.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.2972, allocations: 16.55 kB / 442.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.2972, allocations: 35.12 kB / 442.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.575e-06/0.2973, allocations: 0 / 442.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004695/0.302, allocations: 2.395 MB / 445.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.302, allocations: 119.5 kB / 445.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/0.3037, allocations: 1.302 MB / 446.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.3038, allocations: 37.7 kB / 446.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/0.3044, allocations: 0.871 MB / 447.6 MB, free: 9.898 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.3046, allocations: 273.6 kB / 447.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002701/0.3048, allocations: 202.8 kB / 448.1 MB, free: 9.426 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.305, allocations: 357.9 kB / 448.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005774/0.3056, allocations: 282.5 kB / 448.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008565/0.3064, allocations: 0.7265 MB / 449.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.3081, allocations: 1.092 MB / 450.5 MB, free: 6.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3081, allocations: 4 kB / 450.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00229/0.3104, allocations: 1.276 MB / 451.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3104, allocations: 15.94 kB / 451.8 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.3104, allocations: 12 kB / 451.8 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005124/0.3109, allocations: 138.6 kB / 451.9 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008459/0.3118, allocations: 259.6 kB / 452.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003825/0.3156, allocations: 4.642 MB / 456.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009085/0.3166, allocations: 59.92 kB / 456.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-05/0.3166, allocations: 56.06 kB / 457 MB, free: 15.65 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.0005443/0.3172, allocations: 353.4 kB / 457.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3174, allocations: 155.1 kB / 457.4 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.3192, allocations: 0.8256 MB / 458.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3192, allocations: 3.984 kB / 458.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3192, allocations: 3.938 kB / 458.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.3196, allocations: 284.1 kB / 458.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.3197, allocations: 12 kB / 458.6 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000597/0.3203, allocations: 35.95 kB / 458.6 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.3205, allocations: 56.58 kB / 458.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002107/0.3226, allocations: 0.8508 MB / 459.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001858/0.3245, allocations: 1.153 MB / 460.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000508/0.325, allocations: 269.1 kB / 460.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.3262, allocations: 0.8742 MB / 461.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of Backend: time 5.71e-07/0.3262, allocations: 0 / 461.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.3282, allocations: 1.027 MB / 462.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of SimCode: time 0.004679/0.3329, allocations: 3.415 MB / 466.2 MB, free: 6.16 MB / 382.1 MB Notification: Performance of Templates: time 0.03058/0.3635, allocations: 18.65 MB / 484.9 MB, free: 3.695 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches