Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.001291, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.437/1.437, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 69.05 kB / 307.9 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09672/0.0987, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01184/0.1106, allocations: 9.606 MB / 368 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005817/0.1164, allocations: 3.15 MB / 371.2 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.1175, allocations: 27.94 kB / 371.2 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.1191, allocations: 0.5899 MB / 371.8 MB, free: 492 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1398/0.259, allocations: 0.549 MB / 372.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009806/0.26, allocations: 319.3 kB / 372.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.262, allocations: 1.746 MB / 374.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008752/0.2629, allocations: 0.6326 MB / 375.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.264, allocations: 0.6751 MB / 375.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007938/0.2648, allocations: 0.7433 MB / 376.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.265, allocations: 158.1 kB / 376.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003956/0.2654, allocations: 201.7 kB / 376.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.2657, allocations: 332.7 kB / 377.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000684/0.2664, allocations: 0.8065 MB / 378 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001916/0.2683, allocations: 1.957 MB / 379.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2683, allocations: 1.344 kB / 379.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2683, allocations: 0 / 379.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.043e-05/0.2684, allocations: 4 kB / 379.9 MB, free: 9.395 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.00323/0.2716, allocations: 1.798 MB / 381.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2716, allocations: 9.688 kB / 381.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005878/0.2722, allocations: 196.7 kB / 381.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.2735, allocations: 0.8145 MB / 382.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.2736, allocations: 114.3 kB / 382.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.2738, allocations: 114.6 kB / 383 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.2755, allocations: 1.143 MB / 384.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/0.2756, allocations: 7.5 kB / 384.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.711e-05/0.2756, allocations: 46.97 kB / 384.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.2757, allocations: 29.38 kB / 384.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.2771, allocations: 0.7572 MB / 384.9 MB, free: 6.602 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.005384/0.2825, allocations: 3.951 MB / 388.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.284, allocations: 0.5821 MB / 389.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004635/0.2845, allocations: 266.9 kB / 389.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.2845, allocations: 13.39 kB / 389.7 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006046/0.2851, allocations: 300.2 kB / 390 MB, free: 3.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.955e-06/0.2851, allocations: 3.938 kB / 390 MB, free: 3.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004568/0.2897, allocations: 2.072 MB / 392.1 MB, free: 2.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.361e-05/0.2898, allocations: 479.9 kB / 392.6 MB, free: 2.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.2913, allocations: 1.108 MB / 393.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/0.2913, allocations: 43.2 kB / 393.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003617/0.2917, allocations: 0.6461 MB / 394.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.2918, allocations: 225 kB / 394.6 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.2921, allocations: 199.8 kB / 394.8 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.734e-05/0.2921, allocations: 342.2 kB / 395.1 MB, free: 240 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004812/0.2926, allocations: 248.3 kB / 395.4 MB, free: 120 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009475/0.2936, allocations: 0.7171 MB / 396.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.295, allocations: 0.9421 MB / 397 MB, free: 14.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.295, allocations: 4.125 kB / 397 MB, free: 14.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00225/0.2973, allocations: 1.141 MB / 398.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.2974, allocations: 63.41 kB / 398.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.2974, allocations: 15.47 kB / 398.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006024/0.298, allocations: 172.5 kB / 398.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/0.2987, allocations: 201 kB / 398.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00465/0.3033, allocations: 3.889 MB / 402.5 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3046, allocations: 68.42 kB / 402.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-05/0.3048, allocations: 50.22 kB / 402.6 MB, free: 10.22 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.0005755/0.3053, allocations: 295 kB / 402.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.3056, allocations: 125.7 kB / 403 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.3072, allocations: 0.7146 MB / 403.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3072, allocations: 6.375 kB / 403.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3072, allocations: 3.062 kB / 403.8 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001401/0.3086, allocations: 0.9568 MB / 404.7 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.3118, allocations: 1.789 MB / 406.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.3119, allocations: 4.406 kB / 406.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/0.3124, allocations: 103.9 kB / 406.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004547/0.3128, allocations: 144 kB / 406.7 MB, free: 7.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.897e-05/0.3129, allocations: 12 kB / 406.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.3168, allocations: 3.584 MB / 410.3 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3168, allocations: 4.031 kB / 410.3 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.319, allocations: 1.045 MB / 411.4 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.3196, allocations: 247.6 kB / 411.6 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.3198, allocations: 20 kB / 411.6 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.3205, allocations: 43.95 kB / 411.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.3207, allocations: 56.38 kB / 411.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.3207, allocations: 27.92 kB / 411.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.3219, allocations: 0.7406 MB / 412.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3219, allocations: 0 / 412.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3231, allocations: 316.1 kB / 412.8 MB, free: 0.7656 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.0002503/0.3233, allocations: 135 kB / 413 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.3257, allocations: 1.115 MB / 414.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.3257, allocations: 4 kB / 414.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3267, allocations: 0.548 MB / 414.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.3284, allocations: 331.3 kB / 414.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.3325, allocations: 2.289 MB / 417.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007973/0.3334, allocations: 1.089 MB / 418.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.3336, allocations: 83.44 kB / 418.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3336, allocations: 0 / 418.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of Templates: time 0.03602/0.3697, allocations: 26.17 MB / 444.6 MB, free: 0.9648 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches