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.001448/0.001448, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.00154/0.00154, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2713, allocations: 49.43 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01415/0.2855, allocations: 12.16 MB / 412.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005483/0.291, allocations: 3.284 MB / 416.2 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007925/0.2919, allocations: 35.94 kB / 416.2 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.2933, allocations: 0.6945 MB / 416.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.2948, allocations: 0.7794 MB / 417.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000659/0.2955, allocations: 411.5 kB / 418.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002069/0.2975, allocations: 2.413 MB / 420.5 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.2987, allocations: 0.9813 MB / 421.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009627/0.2997, allocations: 0.9105 MB / 422.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009185/0.3006, allocations: 0.9879 MB / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002455/0.3009, allocations: 231.9 kB / 423.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003959/0.3013, allocations: 268 kB / 423.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000334/0.3016, allocations: 462.3 kB / 424.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008938/0.3025, allocations: 1.081 MB / 425.4 MB, free: 224 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.3049, allocations: 2.819 MB / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3049, allocations: 0 / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3049, allocations: 0 / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.3049, allocations: 0 / 428.2 MB, free: 13.39 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.003318/0.3082, allocations: 2.164 MB / 430.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3083, allocations: 8.031 kB / 430.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008657/0.3092, allocations: 282.4 kB / 430.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/0.3108, allocations: 1.13 MB / 431.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.103e-05/0.3109, allocations: 111.5 kB / 431.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.3111, allocations: 163.8 kB / 432.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/0.3136, allocations: 1.508 MB / 433.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.268e-05/0.3136, allocations: 7.906 kB / 433.6 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3138, allocations: 71.98 kB / 433.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.74e-05/0.3138, allocations: 36 kB / 433.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.3158, allocations: 1.045 MB / 434.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007589/0.3234, allocations: 6.226 MB / 441 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.325, allocations: 0.6203 MB / 441.6 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.326, allocations: 458.2 kB / 442 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.326, allocations: 12.7 kB / 442 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.3261, allocations: 39.12 kB / 442.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.346e-06/0.3261, allocations: 0 / 442.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005109/0.3312, allocations: 2.368 MB / 444.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.3313, allocations: 115.5 kB / 444.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.333, allocations: 1.309 MB / 445.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.3331, allocations: 37.7 kB / 445.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.3337, allocations: 0.8414 MB / 446.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002024/0.3339, allocations: 268.2 kB / 447 MB, free: 9.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.3342, allocations: 210.7 kB / 447.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3344, allocations: 341.9 kB / 447.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006004/0.335, allocations: 290.5 kB / 447.8 MB, free: 9.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009302/0.3359, allocations: 0.7342 MB / 448.6 MB, free: 8.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.3375, allocations: 1.08 MB / 449.6 MB, free: 6.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.3376, allocations: 8 kB / 449.6 MB, free: 6.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002396/0.34, allocations: 1.26 MB / 450.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.34, allocations: 15.94 kB / 450.9 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.34, allocations: 16 kB / 450.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005282/0.3406, allocations: 142.5 kB / 451.1 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008487/0.3414, allocations: 251.6 kB / 451.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003986/0.3454, allocations: 4.646 MB / 456 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009652/0.3464, allocations: 63.89 kB / 456 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.3465, allocations: 60.03 kB / 456.1 MB, free: 15.97 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.0005582/0.3471, allocations: 349.4 kB / 456.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.3473, allocations: 138.3 kB / 456.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.349, allocations: 0.8296 MB / 457.4 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.349, allocations: 11.94 kB / 457.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3491, allocations: 0 / 457.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3491, allocations: 3.984 kB / 457.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003717/0.3528, allocations: 2.331 MB / 459.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.3528, allocations: 4 kB / 459.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.3534, allocations: 127.9 kB / 459.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004595/0.3539, allocations: 142.5 kB / 460 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.3539, allocations: 20 kB / 460 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004068/0.358, allocations: 4.783 MB / 464.8 MB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.358, allocations: 7.984 kB / 464.8 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002306/0.3603, allocations: 1.296 MB / 466.1 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004358/0.3608, allocations: 283.3 kB / 466.4 MB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.3609, allocations: 16 kB / 466.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006489/0.3616, allocations: 43.97 kB / 466.5 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.3617, allocations: 64.5 kB / 466.5 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.3618, allocations: 20 kB / 466.5 MB, free: 4.852 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001216/0.363, allocations: 0.8781 MB / 467.4 MB, free: 3.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.363, allocations: 4 kB / 467.4 MB, free: 3.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001187/0.3642, allocations: 332 kB / 467.7 MB, free: 3.645 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.0002538/0.3645, allocations: 148.7 kB / 467.9 MB, free: 3.492 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.3664, allocations: 1.128 MB / 469 MB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.3664, allocations: 0.9375 kB / 469 MB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.3674, allocations: 0.7101 MB / 469.7 MB, free: 1.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.369, allocations: 361.6 kB / 470.1 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004902/0.3739, allocations: 2.898 MB / 473 MB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.3747, allocations: 1.21 MB / 474.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005613/0.3752, allocations: 171.6 kB / 474.4 MB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.3755, allocations: 99.42 kB / 474.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3755, allocations: 0 / 474.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of Templates: time 0.03096/0.4064, allocations: 17.95 MB / 492.4 MB, free: 10.97 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/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