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.001185/0.001185, allocations: 110.3 kB / 17.28 MB, free: 6.219 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.001236/0.001236, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.328/1.328, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001126, allocations: 43.25 kB / 300.8 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.09014, allocations: 49.45 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01015/0.1003, allocations: 9.534 MB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005395/0.1058, allocations: 3.084 MB / 362.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.107, allocations: 23.94 kB / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.1088, allocations: 0.5245 MB / 363.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001761/0.1106, allocations: 0.4887 MB / 363.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000823/0.1115, allocations: 279.7 kB / 364.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002159/0.1136, allocations: 1.75 MB / 365.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008964/0.1145, allocations: 0.6414 MB / 366.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009323/0.1155, allocations: 0.6692 MB / 367.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009866/0.1165, allocations: 0.7428 MB / 368 MB, free: 2.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002851/0.1168, allocations: 160 kB / 368.1 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004745/0.1173, allocations: 200 kB / 368.3 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.1176, allocations: 334.8 kB / 368.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009189/0.1185, allocations: 0.8049 MB / 369.5 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.164/0.2825, allocations: 1.567 MB / 371 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2825, allocations: 0 / 371 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2825, allocations: 1.156 kB / 371 MB, free: 14.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.483e-05/0.2826, allocations: 0.75 kB / 371 MB, free: 14.26 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.003651/0.2863, allocations: 1.796 MB / 372.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.2864, allocations: 11.12 kB / 372.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006354/0.287, allocations: 198.9 kB / 373 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.2883, allocations: 0.8184 MB / 373.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.2885, allocations: 117.3 kB / 374 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.2886, allocations: 111.7 kB / 374.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.2906, allocations: 1.145 MB / 375.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.757e-05/0.2907, allocations: 2.875 kB / 375.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.024e-05/0.2908, allocations: 49.56 kB / 375.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.2908, allocations: 25.41 kB / 375.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.2923, allocations: 0.7581 MB / 376.1 MB, free: 12.61 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.005672/0.298, allocations: 3.938 MB / 380 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2994, allocations: 0.5882 MB / 380.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004791/0.2999, allocations: 264.2 kB / 380.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.506e-05/0.3, allocations: 15.36 kB / 380.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006548/0.3007, allocations: 298.9 kB / 381.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 4.749e-06/0.3007, allocations: 5 kB / 381.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004716/0.3054, allocations: 2.074 MB / 383.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.3055, allocations: 476.7 kB / 383.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.3071, allocations: 1.102 MB / 384.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.216e-05/0.3072, allocations: 43.52 kB / 384.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.3076, allocations: 0.6441 MB / 385.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.3078, allocations: 239.3 kB / 385.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002627/0.3081, allocations: 200 kB / 385.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.714e-05/0.3081, allocations: 343.8 kB / 386.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005066/0.3086, allocations: 245.3 kB / 386.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.3094, allocations: 0.7141 MB / 387.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3105, allocations: 0.9379 MB / 388.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3106, allocations: 6.469 kB / 388.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002204/0.3128, allocations: 1.147 MB / 389.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.033e-05/0.3128, allocations: 64.61 kB / 389.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.3129, allocations: 12.75 kB / 389.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000637/0.3135, allocations: 166.7 kB / 389.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/0.3142, allocations: 207.2 kB / 389.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.3178, allocations: 3.879 MB / 393.6 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.3192, allocations: 74.7 kB / 393.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3194, allocations: 49.09 kB / 393.7 MB, free: 1.953 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.0005358/0.3199, allocations: 302.1 kB / 394 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.3201, allocations: 125.1 kB / 394.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.3214, allocations: 0.7011 MB / 394.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3214, allocations: 9.312 kB / 394.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3215, allocations: 0 / 394.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001113/0.3226, allocations: 0.9568 MB / 395.8 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.3254, allocations: 1.798 MB / 397.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3254, allocations: 2.094 kB / 397.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004716/0.3259, allocations: 106.1 kB / 397.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004444/0.3264, allocations: 135.5 kB / 397.8 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/0.3264, allocations: 13.19 kB / 397.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.3299, allocations: 3.586 MB / 401.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.3299, allocations: 3.438 kB / 401.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3319, allocations: 1.051 MB / 402.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005202/0.3324, allocations: 253.8 kB / 402.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.3326, allocations: 19.53 kB / 402.8 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006487/0.3332, allocations: 53.33 kB / 402.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3334, allocations: 58.22 kB / 402.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.3334, allocations: 20.39 kB / 402.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009825/0.3344, allocations: 0.7426 MB / 403.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3344, allocations: 0 / 403.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3356, allocations: 305 kB / 403.9 MB, free: 10.84 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.0002704/0.3359, allocations: 144.4 kB / 404.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002166/0.338, allocations: 1.119 MB / 405.2 MB, free: 9.719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3381, allocations: 4 kB / 405.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.3389, allocations: 0.5323 MB / 405.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.3405, allocations: 331.8 kB / 406.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.3445, allocations: 2.733 MB / 408.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.3452, allocations: 1.082 MB / 409.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000249/0.3455, allocations: 87.44 kB / 410 MB, free: 4.902 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3455, allocations: 3 kB / 410 MB, free: 4.902 MB / 318.1 MB Notification: Performance of Templates: time 0.0308/0.3763, allocations: 26.17 MB / 436.1 MB, free: 10.86 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