Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009729/0.000973, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.0009605/0.0009605, allocations: 191 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2451, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01012/0.2553, allocations: 9.591 MB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005455/0.2607, allocations: 3.107 MB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.2621, allocations: 27.94 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.2638, allocations: 0.5861 MB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.2653, allocations: 0.558 MB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006647/0.266, allocations: 315.5 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001874/0.2679, allocations: 1.765 MB / 417.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008397/0.2687, allocations: 0.6336 MB / 418 MB, free: 8.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008399/0.2696, allocations: 0.6693 MB / 418.7 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008442/0.2704, allocations: 0.7506 MB / 419.4 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.2707, allocations: 160 kB / 419.6 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003764/0.271, allocations: 200 kB / 419.8 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.2713, allocations: 330.8 kB / 420.1 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007126/0.272, allocations: 0.7971 MB / 420.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001671/0.2737, allocations: 1.985 MB / 422.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2737, allocations: 0 / 422.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2737, allocations: 0 / 422.9 MB, free: 3.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.2738, allocations: 0 / 422.9 MB, free: 3.324 MB / 334.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.002857/0.2766, allocations: 1.797 MB / 424.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2767, allocations: 12.03 kB / 424.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005493/0.2772, allocations: 202.9 kB / 424.9 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.2786, allocations: 0.8289 MB / 425.7 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.2787, allocations: 108.4 kB / 425.8 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.2789, allocations: 120 kB / 425.9 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.2808, allocations: 1.146 MB / 427.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/0.2809, allocations: 0 / 427.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.741e-05/0.281, allocations: 48 kB / 427.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.281, allocations: 28 kB / 427.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.2825, allocations: 0.7574 MB / 427.9 MB, free: 14.07 MB / 350.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.005502/0.288, allocations: 3.922 MB / 431.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2895, allocations: 0.5852 MB / 432.4 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.29, allocations: 263.6 kB / 432.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.845e-05/0.2901, allocations: 16.56 kB / 432.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006012/0.2907, allocations: 291.1 kB / 433 MB, free: 8.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.785e-06/0.2907, allocations: 0 / 433 MB, free: 8.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004843/0.2956, allocations: 2.077 MB / 435.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002289/0.2958, allocations: 487.1 kB / 435.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.2973, allocations: 1.101 MB / 436.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/0.2974, allocations: 37.7 kB / 436.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000498/0.2979, allocations: 0.6466 MB / 437.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.2981, allocations: 228.8 kB / 437.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002612/0.2983, allocations: 198.7 kB / 437.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2985, allocations: 345.9 kB / 438.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005299/0.299, allocations: 246.5 kB / 438.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008746/0.2999, allocations: 0.7169 MB / 439 MB, free: 2.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.3013, allocations: 0.9375 MB / 440 MB, free: 1.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3013, allocations: 7.938 kB / 440 MB, free: 1.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002075/0.3034, allocations: 1.142 MB / 441.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.319e-05/0.3034, allocations: 67.34 kB / 441.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3034, allocations: 15.94 kB / 441.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005699/0.304, allocations: 161.6 kB / 441.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006871/0.3047, allocations: 211.8 kB / 441.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004128/0.3089, allocations: 3.882 MB / 445.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009676/0.3098, allocations: 63.81 kB / 445.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/0.31, allocations: 51.98 kB / 445.6 MB, free: 11.26 MB / 366.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.0005096/0.3105, allocations: 298.9 kB / 445.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.3107, allocations: 126.5 kB / 446 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.3122, allocations: 0.7038 MB / 446.7 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3123, allocations: 12 kB / 446.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3123, allocations: 0 / 446.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001387/0.3137, allocations: 0.9568 MB / 447.6 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.3167, allocations: 1.789 MB / 449.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.3168, allocations: 4 kB / 449.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/0.3173, allocations: 103.9 kB / 449.5 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004341/0.3177, allocations: 129.8 kB / 449.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.3178, allocations: 12 kB / 449.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003462/0.3212, allocations: 3.59 MB / 453.3 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3213, allocations: 4.031 kB / 453.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.3232, allocations: 1.046 MB / 454.3 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.3237, allocations: 251.5 kB / 454.6 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.3239, allocations: 20 kB / 454.6 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006876/0.3246, allocations: 35.97 kB / 454.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.3248, allocations: 64.36 kB / 454.7 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.3248, allocations: 20 kB / 454.7 MB, free: 1.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.3259, allocations: 0.7445 MB / 455.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3259, allocations: 0 / 455.4 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001075/0.327, allocations: 308 kB / 455.7 MB, free: 0.4961 MB / 366.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.0002433/0.3273, allocations: 131.2 kB / 455.9 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002107/0.3294, allocations: 1.111 MB / 457 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3294, allocations: 0 / 457 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009381/0.3304, allocations: 0.5479 MB / 457.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/0.3319, allocations: 328.4 kB / 457.9 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00395/0.3358, allocations: 2.253 MB / 460.1 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007973/0.3366, allocations: 1.082 MB / 461.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.3369, allocations: 87.42 kB / 461.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3369, allocations: 0 / 461.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Templates: time 0.03189/0.3688, allocations: 26.17 MB / 487.4 MB, free: 0.7188 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches