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.001097/0.001097, allocations: 114.8 kB / 17.74 MB, free: 5.355 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.001032/0.001032, allocations: 188.5 kB / 18.67 MB, free: 4.434 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.308/1.308, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009351/0.0009351, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2358, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01341/0.2493, allocations: 12.15 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006838/0.2562, allocations: 3.28 MB / 416.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001792/0.258, allocations: 35.94 kB / 416.9 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002404/0.2604, allocations: 0.6711 MB / 417.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003378/0.2638, allocations: 0.7286 MB / 418.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.2651, allocations: 395.6 kB / 418.7 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003596/0.2687, allocations: 2.419 MB / 421.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.2704, allocations: 0.9852 MB / 422.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.2718, allocations: 0.9144 MB / 423 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.2733, allocations: 0.9839 MB / 424 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004776/0.2738, allocations: 228 kB / 424.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007021/0.2745, allocations: 267.9 kB / 424.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003994/0.2749, allocations: 458.3 kB / 424.9 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.2763, allocations: 1.081 MB / 426 MB, free: 176 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.279, allocations: 2.823 MB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.279, allocations: 0 / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2791, allocations: 4 kB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.2791, allocations: 0 / 428.8 MB, free: 13.34 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.003441/0.2825, allocations: 2.164 MB / 431 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.2826, allocations: 15.89 kB / 431 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000887/0.2835, allocations: 274.4 kB / 431.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.2852, allocations: 1.126 MB / 432.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.493e-05/0.2853, allocations: 119.5 kB / 432.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.2855, allocations: 163.8 kB / 432.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/0.288, allocations: 1.508 MB / 434.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.469e-05/0.2881, allocations: 7.906 kB / 434.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.2882, allocations: 64 kB / 434.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.873e-05/0.2882, allocations: 39.98 kB / 434.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/0.2902, allocations: 1.057 MB / 435.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007507/0.2977, allocations: 6.226 MB / 441.6 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2992, allocations: 0.6087 MB / 442.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009874/0.3002, allocations: 459.9 kB / 442.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.3003, allocations: 8.562 kB / 442.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.3003, allocations: 43.12 kB / 442.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.314e-06/0.3003, allocations: 4 kB / 442.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.004802/0.3051, allocations: 2.368 MB / 445 MB, free: 12.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.3052, allocations: 111.5 kB / 445.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.3069, allocations: 1.309 MB / 446.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.543e-05/0.307, allocations: 37.7 kB / 446.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005676/0.3076, allocations: 0.853 MB / 447.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.3077, allocations: 260.3 kB / 447.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/0.308, allocations: 202.7 kB / 447.8 MB, free: 9.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3082, allocations: 353.9 kB / 448.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/0.3087, allocations: 278.5 kB / 448.4 MB, free: 9.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008627/0.3096, allocations: 0.742 MB / 449.2 MB, free: 8.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.3111, allocations: 1.084 MB / 450.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3111, allocations: 7.938 kB / 450.2 MB, free: 6.801 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002422/0.3136, allocations: 1.26 MB / 451.5 MB, free: 5.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.3136, allocations: 12 kB / 451.5 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.3136, allocations: 20 kB / 451.5 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005227/0.3142, allocations: 134.9 kB / 451.7 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008282/0.315, allocations: 255.6 kB / 451.9 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003829/0.3188, allocations: 4.646 MB / 456.6 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.3199, allocations: 60 kB / 456.6 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.928e-05/0.32, allocations: 55.98 kB / 456.7 MB, free: 15.92 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.0006278/0.3207, allocations: 361.5 kB / 457 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.3209, allocations: 134.3 kB / 457.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.3227, allocations: 0.8295 MB / 458 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3227, allocations: 7.938 kB / 458 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3228, allocations: 4 kB / 458 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3228, allocations: 3.984 kB / 458 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.3266, allocations: 2.326 MB / 460.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.3266, allocations: 4 kB / 460.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.3272, allocations: 127.8 kB / 460.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004408/0.3277, allocations: 134.9 kB / 460.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.3277, allocations: 20 kB / 460.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004072/0.3318, allocations: 4.783 MB / 465.4 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3318, allocations: 4 kB / 465.4 MB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.3342, allocations: 1.3 MB / 466.7 MB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005121/0.3347, allocations: 287.3 kB / 467 MB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.3349, allocations: 20 kB / 467 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.3356, allocations: 35.97 kB / 467 MB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.3357, allocations: 68.3 kB / 467.1 MB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.3357, allocations: 28 kB / 467.1 MB, free: 4.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.3369, allocations: 0.8742 MB / 468 MB, free: 3.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3369, allocations: 0 / 468 MB, free: 3.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001176/0.3381, allocations: 332 kB / 468.3 MB, free: 3.59 MB / 382.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.0002413/0.3384, allocations: 151.2 kB / 468.5 MB, free: 3.434 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.3403, allocations: 1.125 MB / 469.6 MB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3403, allocations: 0 / 469.6 MB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3414, allocations: 0.7151 MB / 470.3 MB, free: 1.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.343, allocations: 350.9 kB / 470.7 MB, free: 1.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005002/0.348, allocations: 2.943 MB / 473.6 MB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007632/0.3488, allocations: 1.21 MB / 474.8 MB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.3492, allocations: 99.36 kB / 474.9 MB, free: 12.81 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3492, allocations: 0 / 474.9 MB, free: 12.81 MB / 398.1 MB Notification: Performance of Templates: time 0.04397/0.3931, allocations: 41.07 MB / 0.5039 GB, free: 3.789 MB / 430.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