Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007302/0.0007302, allocations: 96.94 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009174/0.0009177, allocations: 208.1 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002448, allocations: 4 kB / 308.4 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.0889, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009097/0.09803, allocations: 9.042 MB / 369 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005385/0.1035, allocations: 3.042 MB / 372 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.1047, allocations: 27.94 kB / 372 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.1065, allocations: 0.5166 MB / 372.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001939/0.1084, allocations: 0.4926 MB / 373 MB, free: 64 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1671/0.2756, allocations: 263.8 kB / 373.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002863/0.2784, allocations: 1.668 MB / 375 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001264/0.2797, allocations: 0.5421 MB / 375.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.2812, allocations: 0.582 MB / 376.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.2825, allocations: 0.6579 MB / 376.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.2829, allocations: 88.09 kB / 376.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007228/0.2836, allocations: 123.5 kB / 377 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.2839, allocations: 250.6 kB / 377.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.2851, allocations: 0.7399 MB / 377.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.2868, allocations: 1.512 MB / 379.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2868, allocations: 0 / 379.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2868, allocations: 0 / 379.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.363e-05/0.2868, allocations: 1.562 kB / 379.5 MB, free: 9.457 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002709/0.2895, allocations: 1.553 MB / 381 MB, free: 8.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2896, allocations: 10.39 kB / 381 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/0.2902, allocations: 202.4 kB / 381.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.2913, allocations: 0.8158 MB / 382 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.2915, allocations: 115.3 kB / 382.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.2916, allocations: 114.7 kB / 382.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.2936, allocations: 1.157 MB / 383.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.553e-05/0.2936, allocations: 6.594 kB / 383.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.838e-05/0.2937, allocations: 45.53 kB / 383.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.2937, allocations: 26.53 kB / 383.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.2953, allocations: 0.7761 MB / 384.3 MB, free: 7.688 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005757/0.3011, allocations: 3.969 MB / 388.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.3026, allocations: 0.6026 MB / 388.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000492/0.3031, allocations: 275.4 kB / 389.1 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.3031, allocations: 15.12 kB / 389.1 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006183/0.3038, allocations: 308 kB / 389.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.585e-06/0.3038, allocations: 0 / 389.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004758/0.3085, allocations: 2.127 MB / 391.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.3087, allocations: 481.1 kB / 392 MB, free: 2.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.3101, allocations: 1.102 MB / 393.1 MB, free: 2.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.3102, allocations: 39.58 kB / 393.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003928/0.3106, allocations: 0.6467 MB / 393.8 MB, free: 1.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3107, allocations: 230 kB / 394 MB, free: 1.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/0.3108, allocations: 83.42 kB / 394.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/0.3109, allocations: 342.8 kB / 394.5 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005166/0.3115, allocations: 262.9 kB / 394.7 MB, free: 1.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006981/0.3122, allocations: 0.7214 MB / 395.4 MB, free: 300 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.3135, allocations: 0.9554 MB / 396.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.3135, allocations: 3.875 kB / 396.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002242/0.3157, allocations: 1.167 MB / 397.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.541e-05/0.3158, allocations: 62.53 kB / 397.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.3158, allocations: 10.84 kB / 397.6 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00058/0.3164, allocations: 172.4 kB / 397.8 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/0.3171, allocations: 208.9 kB / 398 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004118/0.3212, allocations: 3.56 MB / 401.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.3225, allocations: 88.27 kB / 401.6 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/0.3225, allocations: 45.09 kB / 401.7 MB, free: 11.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005574/0.3231, allocations: 298 kB / 402 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3233, allocations: 130.3 kB / 402.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.3249, allocations: 0.7234 MB / 402.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3249, allocations: 5.219 kB / 402.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3249, allocations: 0 / 402.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001359/0.3263, allocations: 0.9933 MB / 403.8 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/0.3293, allocations: 1.801 MB / 405.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.3293, allocations: 3 kB / 405.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.3298, allocations: 112.6 kB / 405.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004192/0.3303, allocations: 132.2 kB / 405.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.3303, allocations: 16 kB / 405.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.3335, allocations: 3.278 MB / 409.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3335, allocations: 4.031 kB / 409.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.3355, allocations: 1.073 MB / 410.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000536/0.336, allocations: 259.5 kB / 410.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.3362, allocations: 16 kB / 410.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006797/0.3369, allocations: 55.81 kB / 410.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.337, allocations: 68.34 kB / 410.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.3371, allocations: 19.98 kB / 410.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001097/0.3382, allocations: 0.7445 MB / 411.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3382, allocations: 0 / 411.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001179/0.3394, allocations: 304 kB / 411.7 MB, free: 2.301 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002666/0.3396, allocations: 140.5 kB / 411.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.3417, allocations: 1.1 MB / 412.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3417, allocations: 0.8125 kB / 412.9 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009132/0.3426, allocations: 0.5514 MB / 413.5 MB, free: 436 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.3444, allocations: 306.8 kB / 413.8 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.3483, allocations: 2.883 MB / 416.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006502/0.349, allocations: 1.082 MB / 417.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.3492, allocations: 83.42 kB / 417.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 1.874e-06/0.3492, allocations: 0 / 417.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of Templates: time 0.03069/0.3799, allocations: 26.02 MB / 443.9 MB, free: 2.066 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches