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.001146/0.001146, allocations: 119.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247.5 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 60.72 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.1006, allocations: 50.52 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01043/0.1111, allocations: 9.61 MB / 368.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005243/0.1164, allocations: 3.158 MB / 371.7 MB, free: 484 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008991/0.1173, allocations: 23.94 kB / 371.7 MB, free: 460 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1642/0.2815, allocations: 0.5824 MB / 372.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.2836, allocations: 0.5572 MB / 372.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.2847, allocations: 310.9 kB / 373.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003183/0.2879, allocations: 1.769 MB / 374.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.289, allocations: 0.6278 MB / 375.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001631/0.2907, allocations: 0.671 MB / 376.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.292, allocations: 0.7465 MB / 377 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.2923, allocations: 158.1 kB / 377.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005664/0.2928, allocations: 198.6 kB / 377.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002328/0.2931, allocations: 336.3 kB / 377.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009057/0.294, allocations: 0.7971 MB / 378.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002082/0.2961, allocations: 1.985 MB / 380.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2961, allocations: 2.891 kB / 380.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2961, allocations: 0 / 380.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.531e-05/0.2962, allocations: 1.438 kB / 380.4 MB, free: 9.484 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.002919/0.2991, allocations: 1.795 MB / 382.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2991, allocations: 10.28 kB / 382.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005511/0.2997, allocations: 207 kB / 382.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.301, allocations: 0.8317 MB / 383.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.3011, allocations: 115.2 kB / 383.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.3013, allocations: 116.8 kB / 383.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.3031, allocations: 1.141 MB / 384.6 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/0.3031, allocations: 10.52 kB / 384.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.116e-05/0.3032, allocations: 47.7 kB / 384.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.3033, allocations: 26.66 kB / 384.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.3048, allocations: 0.7601 MB / 385.5 MB, free: 6.645 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.004966/0.3097, allocations: 3.905 MB / 389.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3111, allocations: 0.586 MB / 390 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004572/0.3116, allocations: 264.6 kB / 390.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.3116, allocations: 13.41 kB / 390.2 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005413/0.3122, allocations: 297.9 kB / 390.5 MB, free: 3.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.336e-06/0.3122, allocations: 3.938 kB / 390.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004295/0.3165, allocations: 2.072 MB / 392.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3166, allocations: 476.5 kB / 393.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.318, allocations: 1.106 MB / 394.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.472e-05/0.3181, allocations: 43.48 kB / 394.2 MB, free: 1.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003674/0.3185, allocations: 0.6483 MB / 394.9 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3186, allocations: 226.2 kB / 395.1 MB, free: 484 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.3189, allocations: 202.9 kB / 395.3 MB, free: 356 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.319, allocations: 342.7 kB / 395.6 MB, free: 16 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005467/0.3195, allocations: 249.8 kB / 395.9 MB, free: 15.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008335/0.3203, allocations: 0.7172 MB / 396.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.3217, allocations: 0.9343 MB / 397.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3217, allocations: 7.906 kB / 397.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002198/0.3239, allocations: 1.141 MB / 398.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.36e-05/0.324, allocations: 71.44 kB / 398.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.324, allocations: 10.28 kB / 398.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005454/0.3245, allocations: 169 kB / 398.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006236/0.3252, allocations: 205.9 kB / 399.1 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/0.3293, allocations: 3.893 MB / 403 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.3305, allocations: 66.55 kB / 403.1 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.288e-05/0.3306, allocations: 50.84 kB / 403.1 MB, free: 9.906 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.0004654/0.331, allocations: 293.8 kB / 403.4 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.3312, allocations: 125.7 kB / 403.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.3326, allocations: 0.7034 MB / 404.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3326, allocations: 6.594 kB / 404.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3326, allocations: 0 / 404.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001277/0.3339, allocations: 0.9576 MB / 405.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.3367, allocations: 1.793 MB / 407 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.3367, allocations: 4 kB / 407 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.3372, allocations: 108.1 kB / 407.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004076/0.3376, allocations: 125.6 kB / 407.2 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.3377, allocations: 20 kB / 407.2 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.3411, allocations: 3.59 MB / 410.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3411, allocations: 0 / 410.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.3429, allocations: 1.05 MB / 411.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004749/0.3434, allocations: 251.7 kB / 412.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.3436, allocations: 16 kB / 412.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.3442, allocations: 43.95 kB / 412.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3443, allocations: 56.38 kB / 412.2 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.3444, allocations: 23.98 kB / 412.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.3454, allocations: 0.7445 MB / 413 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3454, allocations: 0 / 413 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001134/0.3466, allocations: 304 kB / 413.3 MB, free: 340 kB / 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.0002573/0.3468, allocations: 151.1 kB / 413.4 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001923/0.3488, allocations: 1.089 MB / 414.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3488, allocations: 0 / 414.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008696/0.3497, allocations: 0.5543 MB / 415.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.351, allocations: 326.5 kB / 415.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.3544, allocations: 2.23 MB / 417.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007606/0.3551, allocations: 1.082 MB / 418.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006266/0.3558, allocations: 145.8 kB / 418.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.356, allocations: 83.42 kB / 418.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.356, allocations: 4 kB / 418.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Templates: time 0.02893/0.3849, allocations: 17.96 MB / 436.9 MB, free: 8.828 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 cvode -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