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.001054/0.001054, allocations: 102.7 kB / 16.92 MB, free: 6.145 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.001239/0.00124, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.293/1.293, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 51.36 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09244, allocations: 49.44 MB / 350.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01197/0.1045, allocations: 9.591 MB / 359.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005238/0.1097, allocations: 3.115 MB / 362.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006949/0.1105, allocations: 31.88 kB / 362.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.1119, allocations: 0.5938 MB / 363.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.113, allocations: 0.5541 MB / 363.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.1136, allocations: 319.5 kB / 364.3 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.115, allocations: 1.74 MB / 366 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007594/0.1158, allocations: 0.6374 MB / 366.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006619/0.1165, allocations: 0.6693 MB / 367.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007514/0.1173, allocations: 0.7351 MB / 368 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000198/0.1175, allocations: 160 kB / 368.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000359/0.1178, allocations: 208 kB / 368.4 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.1181, allocations: 330.8 kB / 368.7 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000689/0.1188, allocations: 0.8048 MB / 369.5 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1686/0.2873, allocations: 1.955 MB / 371.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2874, allocations: 0 / 371.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2874, allocations: 3.188 kB / 371.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.699e-05/0.2875, allocations: 0.7188 kB / 371.5 MB, free: 14.68 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.003281/0.2907, allocations: 1.795 MB / 373.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2908, allocations: 11.31 kB / 373.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006484/0.2914, allocations: 197.6 kB / 373.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.2928, allocations: 0.8194 MB / 374.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.2929, allocations: 114.2 kB / 374.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.2931, allocations: 114.6 kB / 374.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.295, allocations: 1.14 MB / 375.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.2951, allocations: 5.703 kB / 375.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.445e-05/0.2952, allocations: 47.69 kB / 375.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.2952, allocations: 25.59 kB / 375.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.2968, allocations: 0.7601 MB / 376.5 MB, free: 13 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.00537/0.3022, allocations: 3.952 MB / 380.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.3036, allocations: 0.5894 MB / 381 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.3041, allocations: 267 kB / 381.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.3042, allocations: 7.188 kB / 381.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005584/0.3048, allocations: 296.6 kB / 381.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.935e-06/0.3048, allocations: 4 kB / 381.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004416/0.3092, allocations: 2.08 MB / 383.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.876e-05/0.3093, allocations: 476.5 kB / 384.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.3107, allocations: 1.104 MB / 385.3 MB, free: 8.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.3107, allocations: 39.58 kB / 385.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003595/0.3111, allocations: 0.6482 MB / 385.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3112, allocations: 234.7 kB / 386.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.3115, allocations: 201.3 kB / 386.4 MB, free: 8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.629e-05/0.3116, allocations: 345.6 kB / 386.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005194/0.3121, allocations: 243.5 kB / 386.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.3128, allocations: 0.7108 MB / 387.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3139, allocations: 0.935 MB / 388.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.314, allocations: 4.125 kB / 388.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001948/0.3159, allocations: 1.147 MB / 389.7 MB, free: 5.727 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.316, allocations: 66.69 kB / 389.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.316, allocations: 10.62 kB / 389.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005795/0.3166, allocations: 167.5 kB / 390 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006733/0.3173, allocations: 209.4 kB / 390.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00341/0.3207, allocations: 3.887 MB / 394.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.3218, allocations: 65.06 kB / 394.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.864e-05/0.3218, allocations: 49.67 kB / 394.2 MB, free: 2.184 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.000447/0.3223, allocations: 289.9 kB / 394.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.3224, allocations: 124.1 kB / 394.6 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.3238, allocations: 0.7098 MB / 395.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3238, allocations: 7.125 kB / 395.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3238, allocations: 0 / 395.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001306/0.3251, allocations: 0.9548 MB / 396.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003767/0.3289, allocations: 1.798 MB / 398.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.3289, allocations: 1.188 kB / 398.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005407/0.3295, allocations: 103.6 kB / 398.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005648/0.3301, allocations: 136.3 kB / 398.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.3301, allocations: 17.77 kB / 398.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004201/0.3343, allocations: 3.59 MB / 401.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/0.3344, allocations: 2.438 kB / 401.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.337, allocations: 1.046 MB / 402.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006384/0.3376, allocations: 258.2 kB / 403.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.3378, allocations: 20.56 kB / 403.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.3385, allocations: 33.75 kB / 403.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.3386, allocations: 67.41 kB / 403.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.3387, allocations: 17.38 kB / 403.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001133/0.3398, allocations: 0.7474 MB / 404.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3398, allocations: 0 / 404.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001249/0.3411, allocations: 306.4 kB / 404.4 MB, free: 10.71 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.0002898/0.3414, allocations: 140.6 kB / 404.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002283/0.3437, allocations: 1.121 MB / 405.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.3437, allocations: 6.688 kB / 405.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009631/0.3447, allocations: 0.5451 MB / 406.2 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.3463, allocations: 331.5 kB / 406.5 MB, free: 8.566 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.3502, allocations: 2.249 MB / 408.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.3508, allocations: 1.085 MB / 409.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006089/0.3514, allocations: 149.8 kB / 410 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.3516, allocations: 75.44 kB / 410.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3516, allocations: 0 / 410.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of Templates: time 0.03043/0.3821, allocations: 17.92 MB / 428 MB, free: 3.348 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/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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches