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.0007814/0.0007816, allocations: 91.3 kB / 17.31 MB, free: 5.59 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.0008404/0.0008404, allocations: 181.7 kB / 18.21 MB, free: 5.191 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.124/1.124, allocations: 223.3 MB / 242.3 MB, free: 88 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000202/0.0002021, allocations: 11.94 kB / 302.1 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0718/0.07202, allocations: 50.41 MB / 352.5 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007816/0.07985, allocations: 9.023 MB / 361.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004178/0.08404, allocations: 3.018 MB / 364.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007867/0.08484, allocations: 27.94 kB / 364.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.08604, allocations: 0.5127 MB / 365.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.08723, allocations: 496.5 kB / 365.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005397/0.08778, allocations: 271.7 kB / 365.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001557/0.08934, allocations: 1.673 MB / 367.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006526/0.09, allocations: 0.5415 MB / 368.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006217/0.09063, allocations: 0.5716 MB / 368.6 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000588/0.09123, allocations: 0.657 MB / 369.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.09136, allocations: 84 kB / 369.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.0916, allocations: 124 kB / 369.5 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.09177, allocations: 246.8 kB / 369.7 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005426/0.09232, allocations: 0.7517 MB / 370.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.09339, allocations: 1.515 MB / 372 MB, free: 48 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.0934, allocations: 0 / 372 MB, free: 48 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0934, allocations: 0 / 372 MB, free: 48 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.09342, allocations: 0 / 372 MB, free: 48 kB / 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.1153/0.2088, allocations: 1.543 MB / 373.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2088, allocations: 13.2 kB / 373.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004906/0.2093, allocations: 203.7 kB / 373.7 MB, free: 24.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009889/0.2103, allocations: 0.8191 MB / 374.6 MB, free: 23.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.2104, allocations: 121.2 kB / 374.7 MB, free: 23.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.2106, allocations: 107.2 kB / 374.8 MB, free: 23.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.2122, allocations: 1.153 MB / 375.9 MB, free: 23.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.378e-05/0.2123, allocations: 11.25 kB / 376 MB, free: 23.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.439e-05/0.2124, allocations: 48.17 kB / 376 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.2124, allocations: 26.75 kB / 376 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.2137, allocations: 0.7777 MB / 376.8 MB, free: 23.27 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.004286/0.218, allocations: 3.95 MB / 380.8 MB, free: 20.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.2193, allocations: 0.609 MB / 381.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004393/0.2198, allocations: 278.2 kB / 381.6 MB, free: 20.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.2198, allocations: 11.91 kB / 381.6 MB, free: 20.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005429/0.2203, allocations: 304.1 kB / 381.9 MB, free: 20.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 1.973e-06/0.2204, allocations: 3.828 kB / 381.9 MB, free: 20.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003703/0.2241, allocations: 2.131 MB / 384.1 MB, free: 19.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.2242, allocations: 482.8 kB / 384.5 MB, free: 18.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.2253, allocations: 1.102 MB / 385.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.2254, allocations: 43.08 kB / 385.7 MB, free: 18.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/0.2257, allocations: 0.6429 MB / 386.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.2258, allocations: 232.2 kB / 386.6 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-05/0.2259, allocations: 84.53 kB / 386.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.666e-05/0.226, allocations: 344 kB / 387 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.2265, allocations: 258.2 kB / 387.2 MB, free: 16.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/0.2271, allocations: 0.7175 MB / 387.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.2282, allocations: 0.9612 MB / 388.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2282, allocations: 3.969 kB / 388.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001647/0.2298, allocations: 1.163 MB / 390.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.2299, allocations: 73.84 kB / 390.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2299, allocations: 10.78 kB / 390.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004629/0.2304, allocations: 166.6 kB / 390.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.231, allocations: 208.9 kB / 390.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.2337, allocations: 3.557 MB / 394.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/0.2344, allocations: 81.77 kB / 394.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.2345, allocations: 43.53 kB / 394.2 MB, free: 11.48 MB / 302.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.0002844/0.2348, allocations: 292.7 kB / 394.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.2349, allocations: 133.5 kB / 394.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.2361, allocations: 0.7205 MB / 395.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.2361, allocations: 10.44 kB / 395.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2361, allocations: 1.344 kB / 395.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001051/0.2371, allocations: 0.9699 MB / 396.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.2393, allocations: 1.821 MB / 398.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.2393, allocations: 1.344 kB / 398.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.2397, allocations: 107.1 kB / 398.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003338/0.2401, allocations: 132.2 kB / 398.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.2401, allocations: 21.17 kB / 398.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.2422, allocations: 3.283 MB / 401.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2422, allocations: 11.89 kB / 401.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.2435, allocations: 1.077 MB / 402.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002428/0.2438, allocations: 251.1 kB / 403 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.2439, allocations: 15.91 kB / 403 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005758/0.2445, allocations: 55.47 kB / 403.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.2446, allocations: 59.94 kB / 403.1 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.2446, allocations: 23.73 kB / 403.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006603/0.2453, allocations: 0.7442 MB / 403.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2453, allocations: 0 / 403.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000748/0.246, allocations: 308 kB / 404.2 MB, free: 3.5 MB / 302.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.0001519/0.2462, allocations: 140 kB / 404.4 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.2476, allocations: 1.107 MB / 405.5 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2476, allocations: 3.906 kB / 405.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006501/0.2482, allocations: 0.552 MB / 406 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.2496, allocations: 310.1 kB / 406.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.2525, allocations: 2.868 MB / 409.2 MB, free: 14.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.2531, allocations: 1.089 MB / 410.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.2532, allocations: 87.42 kB / 410.4 MB, free: 13.19 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2532, allocations: 0 / 410.4 MB, free: 13.19 MB / 318.1 MB Notification: Performance of Templates: time 0.025/0.2782, allocations: 25.99 MB / 436.3 MB, free: 3.297 MB / 334.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