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.001076/0.001076, allocations: 109.5 kB / 16.62 MB, free: 6.961 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.001271/0.001272, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.364/1.364, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009696/0.0009696, allocations: 46.3 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09288, allocations: 49.45 MB / 349.6 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01045/0.1034, allocations: 9.522 MB / 359.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005222/0.1086, allocations: 3.092 MB / 362.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.1097, allocations: 31.88 kB / 362.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.1112, allocations: 0.5206 MB / 362.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001251/0.1125, allocations: 0.4887 MB / 363.2 MB, free: 7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006656/0.1131, allocations: 267.7 kB / 363.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001945/0.1151, allocations: 1.749 MB / 365.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008709/0.116, allocations: 0.6414 MB / 365.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000932/0.1169, allocations: 0.6731 MB / 366.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007497/0.1177, allocations: 0.739 MB / 367.3 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.1179, allocations: 156 kB / 367.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003547/0.1182, allocations: 200 kB / 367.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.1185, allocations: 330.8 kB / 368 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007004/0.1192, allocations: 0.8048 MB / 368.8 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1541/0.2732, allocations: 1.954 MB / 370.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2733, allocations: 5.453 kB / 370.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2733, allocations: 1.938 kB / 370.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.984e-05/0.2733, allocations: 0 / 370.7 MB, free: 14.47 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.00311/0.2765, allocations: 1.798 MB / 372.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2765, allocations: 10.06 kB / 372.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005915/0.2771, allocations: 199 kB / 372.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.2783, allocations: 0.8246 MB / 373.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000118/0.2785, allocations: 110.5 kB / 373.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.2786, allocations: 115.4 kB / 373.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001896/0.2805, allocations: 1.146 MB / 374.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.2806, allocations: 2.453 kB / 374.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-05/0.2807, allocations: 48 kB / 375 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.2807, allocations: 26.75 kB / 375 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.2821, allocations: 0.7585 MB / 375.8 MB, free: 12.82 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.005544/0.2877, allocations: 3.94 MB / 379.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.2892, allocations: 0.5878 MB / 380.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004649/0.2897, allocations: 265.3 kB / 380.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.594e-05/0.2898, allocations: 8.609 kB / 380.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.2904, allocations: 303 kB / 380.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.336e-06/0.2905, allocations: 0 / 380.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004345/0.2948, allocations: 2.079 MB / 382.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.188e-05/0.2949, allocations: 476.2 kB / 383.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.2962, allocations: 1.102 MB / 384.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.2963, allocations: 43.2 kB / 384.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/0.2967, allocations: 0.6434 MB / 385.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.2968, allocations: 237.5 kB / 385.4 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.2971, allocations: 200.5 kB / 385.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.386e-05/0.2972, allocations: 343.9 kB / 386 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005062/0.2977, allocations: 244.5 kB / 386.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007006/0.2984, allocations: 0.7063 MB / 386.9 MB, free: 6.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2995, allocations: 0.9438 MB / 387.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.2995, allocations: 3.562 kB / 387.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001805/0.3013, allocations: 1.147 MB / 389 MB, free: 5.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.3014, allocations: 63.94 kB / 389.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.3014, allocations: 17.45 kB / 389.1 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/0.3019, allocations: 166.7 kB / 389.2 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006327/0.3026, allocations: 207.4 kB / 389.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003463/0.306, allocations: 3.884 MB / 393.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000958/0.307, allocations: 72.86 kB / 393.4 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/0.3071, allocations: 49.41 kB / 393.4 MB, free: 2.117 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.0004099/0.3075, allocations: 299.1 kB / 393.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.3077, allocations: 127.8 kB / 393.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.309, allocations: 0.6989 MB / 394.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.309, allocations: 9.406 kB / 394.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.309, allocations: 1.875 kB / 394.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001185/0.3102, allocations: 0.9547 MB / 395.5 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.3127, allocations: 1.804 MB / 397.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3128, allocations: 1.75 kB / 397.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000457/0.3132, allocations: 106.3 kB / 397.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004311/0.3137, allocations: 131.8 kB / 397.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.194e-05/0.3137, allocations: 13.5 kB / 397.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003427/0.3172, allocations: 3.581 MB / 401.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3172, allocations: 3.906 kB / 401.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.3189, allocations: 1.052 MB / 402.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.3194, allocations: 253.7 kB / 402.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.3195, allocations: 18.86 kB / 402.5 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.3202, allocations: 50.78 kB / 402.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3203, allocations: 71.56 kB / 402.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.3203, allocations: 16.97 kB / 402.6 MB, free: 11.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008669/0.3212, allocations: 0.7427 MB / 403.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3212, allocations: 0 / 403.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009245/0.3221, allocations: 310.8 kB / 403.7 MB, free: 10.79 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.0002094/0.3224, allocations: 138.8 kB / 403.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.3243, allocations: 1.109 MB / 404.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3243, allocations: 0 / 404.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008657/0.3252, allocations: 0.5484 MB / 405.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3265, allocations: 337.3 kB / 405.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003411/0.33, allocations: 2.696 MB / 408.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.3306, allocations: 1.086 MB / 409.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005145/0.3311, allocations: 145.8 kB / 409.7 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.3312, allocations: 75.44 kB / 409.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3313, allocations: 0 / 409.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Templates: time 0.02964/0.3609, allocations: 17.84 MB / 427.6 MB, free: 3.211 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