Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 82.86 kB / 20.68 MB, free: 1.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002605/0.002605, allocations: 165.4 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 177.2 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.013e-05/2.156e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0118/0.01182, allocations: 8.483 MB / 333.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007073/0.01889, allocations: 2.965 MB / 336.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00158/0.02047, allocations: 33.34 kB / 336.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.02237, allocations: 0.5696 MB / 337.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.02447, allocations: 0.6069 MB / 337.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008504/0.02532, allocations: 321.9 kB / 338.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002637/0.02796, allocations: 1.843 MB / 339.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008508/0.02881, allocations: 427.1 kB / 340.3 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001683/0.03049, allocations: 1.033 MB / 341.3 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008892/0.03138, allocations: 0.5491 MB / 341.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002434/0.03162, allocations: 160 kB / 342.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004632/0.03209, allocations: 188 kB / 342.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003468/0.03243, allocations: 338.7 kB / 342.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007732/0.03321, allocations: 0.5612 MB / 343.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002453/0.03566, allocations: 2.009 MB / 345.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.03566, allocations: 0 / 345.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.03567, allocations: 0 / 345.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.03568, allocations: 0 / 345.1 MB, free: 1.02 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.003677/0.03936, allocations: 1.751 MB / 346.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.03941, allocations: 8.031 kB / 346.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006344/0.04005, allocations: 207.9 kB / 347.1 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.0415, allocations: 0.7749 MB / 347.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.04169, allocations: 163.8 kB / 348 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.04186, allocations: 108.4 kB / 348.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.04423, allocations: 1.574 MB / 349.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.628e-05/0.04427, allocations: 3.938 kB / 349.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.04438, allocations: 51.98 kB / 349.8 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.0444, allocations: 28 kB / 349.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.04603, allocations: 0.7535 MB / 350.5 MB, free: 11.31 MB / 318.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.005628/0.05166, allocations: 3.2 MB / 353.7 MB, free: 7.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.05334, allocations: 0.5431 MB / 354.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.05389, allocations: 246.7 kB / 354.5 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.05394, allocations: 16.38 kB / 354.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007181/0.05466, allocations: 323.9 kB / 354.9 MB, free: 6.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 2.625e-06/0.05466, allocations: 0 / 354.9 MB, free: 6.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.004943/0.0596, allocations: 1.841 MB / 356.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002849/0.05989, allocations: 475.3 kB / 357.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.06126, allocations: 0.9673 MB / 358.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.476e-05/0.06133, allocations: 41.7 kB / 358.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006155/0.06194, allocations: 0.6673 MB / 358.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.06216, allocations: 245.9 kB / 359.1 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.06247, allocations: 198.8 kB / 359.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.06264, allocations: 345.9 kB / 359.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000617/0.06326, allocations: 301.9 kB / 359.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.06453, allocations: 1.165 MB / 361.1 MB, free: 60 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.06605, allocations: 0.949 MB / 362 MB, free: 14.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.06605, allocations: 4 kB / 362 MB, free: 14.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002227/0.06828, allocations: 1.173 MB / 363.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.012e-05/0.06835, allocations: 67.39 kB / 363.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.06837, allocations: 19.97 kB / 363.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006466/0.06901, allocations: 169.5 kB / 363.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/0.06973, allocations: 207.6 kB / 363.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005227/0.07496, allocations: 3.588 MB / 367.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.07598, allocations: 63.92 kB / 367.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/0.07605, allocations: 48.16 kB / 367.4 MB, free: 9.363 MB / 334.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.0005497/0.0766, allocations: 293.6 kB / 367.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.07678, allocations: 123.2 kB / 367.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.07861, allocations: 0.6929 MB / 368.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.07863, allocations: 12.16 kB / 368.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.07863, allocations: 4 kB / 368.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001561/0.08019, allocations: 0.9473 MB / 369.4 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.08312, allocations: 1.499 MB / 370.9 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.08313, allocations: 7.938 kB / 370.9 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.08365, allocations: 108.1 kB / 371 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004862/0.08414, allocations: 133.5 kB / 371.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.08418, allocations: 15.98 kB / 371.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004193/0.08837, allocations: 3.304 MB / 374.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.08838, allocations: 12.19 kB / 374.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.09062, allocations: 1.037 MB / 375.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.09111, allocations: 167.2 kB / 375.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.09125, allocations: 16 kB / 375.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006377/0.09189, allocations: 44.08 kB / 375.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.09206, allocations: 64.33 kB / 375.8 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.0921, allocations: 20 kB / 375.8 MB, free: 436 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001179/0.09328, allocations: 0.6345 MB / 376.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09328, allocations: 0 / 376.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001321/0.0946, allocations: 304 kB / 376.8 MB, free: 15.48 MB / 350.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.0003355/0.09494, allocations: 139.1 kB / 376.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.09756, allocations: 1.123 MB / 378 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.09756, allocations: 4.125 kB / 378 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.09867, allocations: 0.5311 MB / 378.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.1002, allocations: 271.6 kB / 378.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/0.1046, allocations: 2.089 MB / 380.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007454/0.1053, allocations: 0.4968 MB / 381.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000598/0.1059, allocations: 128.7 kB / 381.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.1061, allocations: 72.48 kB / 381.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.1061, allocations: 4 kB / 381.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Templates: time 0.0345/0.1406, allocations: 17.03 MB / 398.6 MB, free: 9.754 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 8.251683421432972]