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.001065/0.001065, allocations: 118.9 kB / 18.41 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 208.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 60.69 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09487, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01038/0.1053, allocations: 9.608 MB / 368.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004382/0.1097, allocations: 3.154 MB / 371.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004716/0.1102, allocations: 23.94 kB / 371.7 MB, free: 496 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1557/0.2659, allocations: 0.5875 MB / 372.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002018/0.268, allocations: 0.547 MB / 372.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000648/0.2686, allocations: 324.2 kB / 373.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001799/0.2704, allocations: 1.76 MB / 374.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008436/0.2713, allocations: 0.6348 MB / 375.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001179/0.2725, allocations: 0.6727 MB / 376.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008832/0.2734, allocations: 0.744 MB / 377 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000206/0.2736, allocations: 158 kB / 377.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004309/0.274, allocations: 199 kB / 377.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002925/0.2743, allocations: 338.6 kB / 377.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007878/0.2751, allocations: 0.8004 MB / 378.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002489/0.2776, allocations: 1.981 MB / 380.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.2776, allocations: 0.6562 kB / 380.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2776, allocations: 0 / 380.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.2777, allocations: 1.875 kB / 380.4 MB, free: 9.832 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.003294/0.281, allocations: 1.798 MB / 382.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.281, allocations: 9.938 kB / 382.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006772/0.2817, allocations: 197.3 kB / 382.4 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.2832, allocations: 0.8309 MB / 383.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.2834, allocations: 122.5 kB / 383.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.2835, allocations: 109.3 kB / 383.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001797/0.2853, allocations: 1.144 MB / 384.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.2854, allocations: 6.953 kB / 384.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.069e-05/0.2855, allocations: 47.83 kB / 384.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.067e-05/0.2855, allocations: 26.66 kB / 384.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.287, allocations: 0.7598 MB / 385.5 MB, free: 6.996 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.005174/0.2922, allocations: 3.909 MB / 389.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.2935, allocations: 0.5864 MB / 390 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.294, allocations: 272.5 kB / 390.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.2941, allocations: 9.562 kB / 390.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005971/0.2947, allocations: 298.8 kB / 390.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.204e-06/0.2947, allocations: 0 / 390.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004137/0.2988, allocations: 2.077 MB / 392.6 MB, free: 2.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.299, allocations: 480.9 kB / 393.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.3004, allocations: 1.11 MB / 394.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/0.3004, allocations: 43.23 kB / 394.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003507/0.3008, allocations: 0.6422 MB / 394.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.3009, allocations: 228.1 kB / 395.1 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.3012, allocations: 207.4 kB / 395.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.3012, allocations: 342.3 kB / 395.6 MB, free: 320 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004556/0.3017, allocations: 244.4 kB / 395.9 MB, free: 204 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007738/0.3025, allocations: 0.7059 MB / 396.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.3037, allocations: 0.9419 MB / 397.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.3038, allocations: 6.766 kB / 397.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001958/0.3057, allocations: 1.152 MB / 398.7 MB, free: 14.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.3058, allocations: 63.31 kB / 398.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3058, allocations: 12.06 kB / 398.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005249/0.3063, allocations: 167.3 kB / 398.9 MB, free: 13.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006149/0.307, allocations: 204.5 kB / 399.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003824/0.3108, allocations: 3.887 MB / 403 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009034/0.3117, allocations: 63.06 kB / 403.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.084e-05/0.3118, allocations: 51.5 kB / 403.1 MB, free: 10.21 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.0004236/0.3122, allocations: 297.8 kB / 403.4 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.3124, allocations: 123.5 kB / 403.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.3137, allocations: 0.7056 MB / 404.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3137, allocations: 7.312 kB / 404.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3137, allocations: 0 / 404.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00127/0.315, allocations: 0.9581 MB / 405.2 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002771/0.3178, allocations: 1.797 MB / 407 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3178, allocations: 0 / 407 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004613/0.3183, allocations: 99.88 kB / 407.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.3187, allocations: 136.8 kB / 407.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.3187, allocations: 12 kB / 407.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/0.322, allocations: 3.598 MB / 410.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.322, allocations: 0 / 410.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.3239, allocations: 1.038 MB / 411.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004846/0.3243, allocations: 259.5 kB / 412.1 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.3245, allocations: 20 kB / 412.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006139/0.3251, allocations: 35.97 kB / 412.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.3253, allocations: 60.36 kB / 412.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.3253, allocations: 20.12 kB / 412.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009504/0.3263, allocations: 0.7445 MB / 413 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3263, allocations: 0 / 413 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001042/0.3273, allocations: 312 kB / 413.3 MB, free: 0.5352 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.000225/0.3275, allocations: 138.9 kB / 413.4 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.3294, allocations: 1.104 MB / 414.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3294, allocations: 1.812 kB / 414.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008485/0.3303, allocations: 0.5476 MB / 415.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.3315, allocations: 328.4 kB / 415.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.3347, allocations: 2.227 MB / 417.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.3354, allocations: 1.089 MB / 418.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004527/0.3358, allocations: 145.8 kB / 418.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.336, allocations: 75.44 kB / 418.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.336, allocations: 0 / 418.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of Templates: time 0.02799/0.364, allocations: 17.97 MB / 436.9 MB, free: 9.043 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 -s gbode -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