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.001044/0.001044, allocations: 113.3 kB / 17.69 MB, free: 5.309 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.001027/0.001027, allocations: 191 kB / 18.63 MB, free: 4.375 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.325/1.325, allocations: 222.9 MB / 242.3 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 51.48 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.0873, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01054/0.09789, allocations: 9.565 MB / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005619/0.1036, allocations: 3.123 MB / 364.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.1046, allocations: 35.88 kB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.1062, allocations: 0.5898 MB / 364.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001332/0.1075, allocations: 0.5542 MB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006939/0.1082, allocations: 315.5 kB / 365.7 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.11, allocations: 1.767 MB / 367.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008624/0.1109, allocations: 0.6336 MB / 368.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009168/0.1118, allocations: 0.6655 MB / 368.8 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008846/0.1127, allocations: 0.7467 MB / 369.5 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001903/0.1129, allocations: 160 kB / 369.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003602/0.1133, allocations: 196 kB / 369.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002508/0.1136, allocations: 326.8 kB / 370.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006936/0.1143, allocations: 0.8126 MB / 371 MB, free: 140 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1593/0.2736, allocations: 1.974 MB / 373 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2736, allocations: 0.8438 kB / 373 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2736, allocations: 0.5312 kB / 373 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.471e-05/0.2737, allocations: 0.9688 kB / 373 MB, free: 14.16 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.003173/0.2769, allocations: 1.793 MB / 374.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.2769, allocations: 8.812 kB / 374.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006061/0.2775, allocations: 199.9 kB / 375 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.279, allocations: 0.831 MB / 375.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.2792, allocations: 114.9 kB / 375.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.2793, allocations: 113.7 kB / 376 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.2812, allocations: 1.144 MB / 377.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.2812, allocations: 2.109 kB / 377.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.013e-05/0.2813, allocations: 50.34 kB / 377.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.2814, allocations: 27.22 kB / 377.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.2829, allocations: 0.7568 MB / 378 MB, free: 12.49 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.005423/0.2883, allocations: 3.91 MB / 381.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.2898, allocations: 0.5858 MB / 382.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.2903, allocations: 265.2 kB / 382.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.2904, allocations: 9.188 kB / 382.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005743/0.291, allocations: 301.8 kB / 383.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.675e-06/0.291, allocations: 0 / 383.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004529/0.2955, allocations: 2.081 MB / 385.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.2956, allocations: 480.2 kB / 385.6 MB, free: 8.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/0.2972, allocations: 1.101 MB / 386.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.598e-05/0.2973, allocations: 47.45 kB / 386.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/0.2977, allocations: 0.6417 MB / 387.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.2979, allocations: 230.7 kB / 387.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.2982, allocations: 201.1 kB / 387.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.676e-05/0.2983, allocations: 345.5 kB / 388.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.2988, allocations: 247 kB / 388.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008022/0.2996, allocations: 0.7109 MB / 389.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3008, allocations: 0.9393 MB / 390 MB, free: 5.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.3009, allocations: 7.562 kB / 390.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002033/0.3029, allocations: 1.14 MB / 391.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.763e-05/0.303, allocations: 66.66 kB / 391.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.303, allocations: 12.19 kB / 391.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000625/0.3036, allocations: 171.6 kB / 391.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006926/0.3043, allocations: 202.5 kB / 391.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003539/0.3079, allocations: 3.881 MB / 395.5 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.3091, allocations: 67.73 kB / 395.6 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.388e-05/0.3092, allocations: 52.59 kB / 395.6 MB, free: 1.277 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.0004857/0.3096, allocations: 288.2 kB / 395.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.3098, allocations: 124.9 kB / 396 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.3112, allocations: 0.7065 MB / 396.7 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.3112, allocations: 7.969 kB / 396.8 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3112, allocations: 4.375 kB / 396.8 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00125/0.3125, allocations: 0.9599 MB / 397.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.3158, allocations: 1.791 MB / 399.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.3158, allocations: 1.344 kB / 399.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000483/0.3163, allocations: 110.8 kB / 399.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004554/0.3167, allocations: 130.3 kB / 399.7 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.3168, allocations: 17.89 kB / 399.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.3207, allocations: 3.589 MB / 403.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3207, allocations: 0 / 403.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.323, allocations: 1.048 MB / 404.4 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007149/0.3237, allocations: 255.2 kB / 404.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/0.3239, allocations: 18.16 kB / 404.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006228/0.3245, allocations: 38.28 kB / 404.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3247, allocations: 60.45 kB / 404.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.612e-05/0.3247, allocations: 23.81 kB / 404.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001112/0.3258, allocations: 0.7475 MB / 405.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3258, allocations: 0 / 405.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001387/0.3272, allocations: 313 kB / 405.8 MB, free: 9.66 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.0003185/0.3276, allocations: 139.2 kB / 406 MB, free: 9.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.3297, allocations: 1.091 MB / 407.1 MB, free: 8.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.3297, allocations: 4.938 kB / 407.1 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009037/0.3306, allocations: 0.5515 MB / 407.6 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.332, allocations: 330.9 kB / 407.9 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.3358, allocations: 2.222 MB / 410.2 MB, free: 5.641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/0.3364, allocations: 1.085 MB / 411.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005384/0.337, allocations: 153.8 kB / 411.4 MB, free: 4.375 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001811/0.3372, allocations: 75.44 kB / 411.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3372, allocations: 0 / 411.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of Templates: time 0.02922/0.3664, allocations: 17.94 MB / 429.4 MB, free: 2.684 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 -s cvode -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