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.001351/0.00135, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.7 kB / 306.9 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09334/0.09458, allocations: 50.54 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0113/0.1059, allocations: 9.594 MB / 367.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005923/0.1119, allocations: 3.154 MB / 370.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.1132, allocations: 27.94 kB / 370.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.115, allocations: 0.586 MB / 370.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.1167, allocations: 0.5581 MB / 371.4 MB, free: 104 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1576/0.2744, allocations: 311.4 kB / 371.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002462/0.2769, allocations: 1.752 MB / 373.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.278, allocations: 0.631 MB / 374.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001275/0.2793, allocations: 0.6672 MB / 374.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.2805, allocations: 0.747 MB / 375.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003934/0.2809, allocations: 160.8 kB / 375.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006698/0.2816, allocations: 196.2 kB / 375.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002261/0.2819, allocations: 332.8 kB / 376.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007198/0.2826, allocations: 0.8089 MB / 377 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001792/0.2844, allocations: 1.959 MB / 378.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2844, allocations: 1.156 kB / 378.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2844, allocations: 0.7969 kB / 378.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.2844, allocations: 0 / 378.9 MB, free: 9.59 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.002776/0.2872, allocations: 1.8 MB / 380.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2873, allocations: 10.05 kB / 380.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005514/0.2878, allocations: 202.2 kB / 381 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.2889, allocations: 0.8211 MB / 381.8 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.289, allocations: 114.3 kB / 381.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.2892, allocations: 109 kB / 382 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.2908, allocations: 1.145 MB / 383.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.2908, allocations: 9.656 kB / 383.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.462e-05/0.2909, allocations: 43.75 kB / 383.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.291, allocations: 26.88 kB / 383.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.2924, allocations: 0.7559 MB / 384 MB, free: 6.793 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.004686/0.2971, allocations: 3.949 MB / 387.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.2986, allocations: 0.5812 MB / 388.5 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.299, allocations: 272.4 kB / 388.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.2991, allocations: 7.844 kB / 388.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006105/0.2997, allocations: 298.8 kB / 389.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.286e-06/0.2997, allocations: 3.938 kB / 389.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004536/0.3042, allocations: 2.072 MB / 391.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.827e-05/0.3043, allocations: 478.8 kB / 391.6 MB, free: 2.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.3057, allocations: 1.113 MB / 392.7 MB, free: 1.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.3058, allocations: 38.27 kB / 392.8 MB, free: 1.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004211/0.3062, allocations: 0.6411 MB / 393.4 MB, free: 1.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.3064, allocations: 233.2 kB / 393.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.3066, allocations: 199.8 kB / 393.8 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.452e-05/0.3067, allocations: 346.2 kB / 394.2 MB, free: 480 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/0.3073, allocations: 243.8 kB / 394.4 MB, free: 364 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008308/0.3081, allocations: 0.7083 MB / 395.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.3095, allocations: 0.9469 MB / 396.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.792e-06/0.3095, allocations: 3.594 kB / 396.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001945/0.3114, allocations: 1.142 MB / 397.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.352e-05/0.3115, allocations: 61.75 kB / 397.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/0.3115, allocations: 15.98 kB / 397.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005655/0.3121, allocations: 169.6 kB / 397.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006469/0.3128, allocations: 208.5 kB / 397.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004094/0.3169, allocations: 3.887 MB / 401.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009909/0.3179, allocations: 72.12 kB / 401.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.3179, allocations: 50.66 kB / 401.7 MB, free: 10.49 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.0004445/0.3184, allocations: 291.5 kB / 401.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.3186, allocations: 120.3 kB / 402.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.32, allocations: 0.7122 MB / 402.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.32, allocations: 6.562 kB / 402.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.32, allocations: 0 / 402.8 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001313/0.3213, allocations: 0.9573 MB / 403.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002839/0.3242, allocations: 1.792 MB / 405.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.3242, allocations: 8.219 kB / 405.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004878/0.3247, allocations: 111.8 kB / 405.6 MB, free: 7.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004119/0.3251, allocations: 129.6 kB / 405.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.3252, allocations: 19.98 kB / 405.8 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003421/0.3286, allocations: 3.581 MB / 409.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.3286, allocations: 4.031 kB / 409.4 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001973/0.3306, allocations: 1.049 MB / 410.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004925/0.3311, allocations: 259.5 kB / 410.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.3313, allocations: 16 kB / 410.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006274/0.3319, allocations: 35.97 kB / 410.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.332, allocations: 60.42 kB / 410.8 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.3321, allocations: 16.12 kB / 410.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001056/0.3331, allocations: 0.7484 MB / 411.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3331, allocations: 0 / 411.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001106/0.3343, allocations: 316.1 kB / 411.9 MB, free: 1.031 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.0002583/0.3345, allocations: 143 kB / 412 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.3367, allocations: 1.112 MB / 413.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.3368, allocations: 4 kB / 413.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008613/0.3376, allocations: 0.548 MB / 413.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.339, allocations: 329.9 kB / 414 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.3428, allocations: 2.257 MB / 416.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/0.3436, allocations: 1.082 MB / 417.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006599/0.3443, allocations: 149.8 kB / 417.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001894/0.3445, allocations: 83.42 kB / 417.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3445, allocations: 0 / 417.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of Templates: time 0.03144/0.376, allocations: 17.97 MB / 435.5 MB, free: 9.484 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/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