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.001293/0.001293, allocations: 104 kB / 17.59 MB, free: 5.555 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.00128/0.00128, allocations: 191.5 kB / 18.51 MB, free: 4.637 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.359/1.359, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 52.2 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08296/0.08398, allocations: 49.44 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009772/0.09379, allocations: 9.581 MB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004786/0.09861, allocations: 3.127 MB / 363.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006713/0.0993, allocations: 27.94 kB / 363.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.1007, allocations: 0.5899 MB / 364.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001087/0.1018, allocations: 0.5541 MB / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005761/0.1023, allocations: 323.5 kB / 364.9 MB, free: 6.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.1039, allocations: 1.739 MB / 366.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007871/0.1047, allocations: 0.6336 MB / 367.3 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006947/0.1054, allocations: 0.6732 MB / 368 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007327/0.1061, allocations: 0.739 MB / 368.7 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.1063, allocations: 160 kB / 368.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003567/0.1067, allocations: 200 kB / 369.1 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.1069, allocations: 334.8 kB / 369.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006758/0.1076, allocations: 0.8126 MB / 370.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1481/0.2557, allocations: 1.944 MB / 372.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2558, allocations: 0 / 372.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2558, allocations: 1.219 kB / 372.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.2559, allocations: 3.469 kB / 372.2 MB, free: 14.62 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.006191/0.2621, allocations: 1.798 MB / 373.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.2622, allocations: 9.906 kB / 374 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.2633, allocations: 198.7 kB / 374.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.2653, allocations: 0.8192 MB / 375 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.2655, allocations: 114.9 kB / 375.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.2658, allocations: 110.5 kB / 375.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002841/0.2686, allocations: 1.143 MB / 376.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-05/0.2687, allocations: 3.5 kB / 376.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.2688, allocations: 47.64 kB / 376.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/0.2689, allocations: 26.12 kB / 376.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/0.2713, allocations: 0.7589 MB / 377.2 MB, free: 12.95 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.008301/0.2797, allocations: 3.954 MB / 381.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002219/0.2819, allocations: 0.5847 MB / 381.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007786/0.2827, allocations: 265.8 kB / 382 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.2828, allocations: 13.41 kB / 382 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009429/0.2837, allocations: 299.1 kB / 382.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.947e-06/0.2838, allocations: 4 kB / 382.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.006935/0.2907, allocations: 2.076 MB / 384.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.2908, allocations: 478.9 kB / 384.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/0.2931, allocations: 1.107 MB / 385.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.2932, allocations: 40.3 kB / 386 MB, free: 8.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005291/0.2937, allocations: 0.6389 MB / 386.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.2939, allocations: 238.1 kB / 386.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003581/0.2943, allocations: 197.7 kB / 387 MB, free: 7.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.772e-05/0.2944, allocations: 349.1 kB / 387.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007694/0.2952, allocations: 238.5 kB / 387.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.2962, allocations: 0.7167 MB / 388.3 MB, free: 6.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.298, allocations: 0.9339 MB / 389.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.298, allocations: 4.562 kB / 389.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003019/0.301, allocations: 1.146 MB / 390.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.3011, allocations: 62.31 kB / 390.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.3011, allocations: 14.95 kB / 390.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005692/0.3017, allocations: 171.8 kB / 390.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000715/0.3024, allocations: 210.6 kB / 390.9 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004611/0.307, allocations: 3.882 MB / 394.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001713/0.3088, allocations: 64.22 kB / 394.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.3089, allocations: 47.72 kB / 394.8 MB, free: 2.145 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.0006512/0.3096, allocations: 296 kB / 395.1 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.3099, allocations: 129.7 kB / 395.3 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.312, allocations: 0.6996 MB / 396 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.312, allocations: 13.95 kB / 396 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3121, allocations: 4 kB / 396 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001841/0.3139, allocations: 0.9518 MB / 396.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/0.3184, allocations: 1.791 MB / 398.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.3185, allocations: 2.75 kB / 398.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.3192, allocations: 102.7 kB / 398.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006489/0.3199, allocations: 139.6 kB / 399 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.32, allocations: 18.36 kB / 399 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004853/0.3248, allocations: 3.593 MB / 402.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.3249, allocations: 4.219 kB / 402.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00287/0.3278, allocations: 1.048 MB / 403.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008269/0.3286, allocations: 257.4 kB / 403.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.3289, allocations: 19.88 kB / 403.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.3299, allocations: 33.56 kB / 403.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.3301, allocations: 65.77 kB / 404 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-05/0.3302, allocations: 17.31 kB / 404 MB, free: 11.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.3316, allocations: 0.7467 MB / 404.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3316, allocations: 0 / 404.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001969/0.3336, allocations: 306.9 kB / 405.1 MB, free: 10.65 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.0003243/0.3339, allocations: 136.9 kB / 405.2 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003204/0.3371, allocations: 1.122 MB / 406.3 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3372, allocations: 4.188 kB / 406.3 MB, free: 9.383 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.3384, allocations: 0.5383 MB / 406.9 MB, free: 8.832 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.3409, allocations: 328.1 kB / 407.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00522/0.3462, allocations: 2.288 MB / 409.5 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008964/0.3471, allocations: 1.089 MB / 410.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003458/0.3474, allocations: 83.44 kB / 410.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3475, allocations: 4 kB / 410.6 MB, free: 5 MB / 318.1 MB Notification: Performance of Templates: time 0.03432/0.3818, allocations: 26.17 MB / 436.8 MB, free: 10.96 MB / 350.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