Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001101/0.001102, allocations: 191 kB / 18.63 MB, free: 4.367 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.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000998/0.0009983, allocations: 46.64 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1048, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008951/0.1138, allocations: 7.957 MB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004607/0.1185, allocations: 2.621 MB / 362.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009657/0.1195, allocations: 23.94 kB / 362.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001557/0.1211, allocations: 0.493 MB / 362.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.1224, allocations: 400.8 kB / 363 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.1229, allocations: 219.6 kB / 363.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.1243, allocations: 1.236 MB / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007719/0.125, allocations: 0.5331 MB / 365 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006585/0.1257, allocations: 482 kB / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006267/0.1263, allocations: 0.5173 MB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.1265, allocations: 112 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003058/0.1268, allocations: 156 kB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.127, allocations: 239.2 kB / 366.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005288/0.1275, allocations: 0.5676 MB / 367 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.1289, allocations: 1.456 MB / 368.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1289, allocations: 0 / 368.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1289, allocations: 0 / 368.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.129, allocations: 0 / 368.5 MB, free: 2.621 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002268/0.1312, allocations: 1.313 MB / 369.8 MB, free: 1.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1313, allocations: 15.88 kB / 369.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000541/0.1318, allocations: 147.6 kB / 370 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.1329, allocations: 0.6455 MB / 370.6 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.211e-05/0.133, allocations: 58.38 kB / 370.7 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.1332, allocations: 95.84 kB / 370.8 MB, free: 264 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1748/0.3079, allocations: 0.8136 MB / 371.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.028e-05/0.308, allocations: 1.781 kB / 371.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.283e-05/0.3081, allocations: 36.75 kB / 371.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.69e-05/0.3082, allocations: 21.12 kB / 371.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.3095, allocations: 0.5418 MB / 372.2 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.3144, allocations: 3.553 MB / 375.7 MB, free: 22.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000555/0.315, allocations: 245.4 kB / 376 MB, free: 22.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.3152, allocations: 119.7 kB / 376.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3153, allocations: 3.625 kB / 376.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.3153, allocations: 33.39 kB / 376.1 MB, free: 22.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.124e-06/0.3153, allocations: 0.6562 kB / 376.1 MB, free: 22.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002078/0.3174, allocations: 1.069 MB / 377.2 MB, free: 22.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.3174, allocations: 85.73 kB / 377.3 MB, free: 21.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.3186, allocations: 0.7566 MB / 378 MB, free: 21.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.3186, allocations: 32.33 kB / 378.1 MB, free: 21.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003361/0.319, allocations: 0.5147 MB / 378.6 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.758e-05/0.3191, allocations: 118.2 kB / 378.7 MB, free: 21.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.3193, allocations: 121.7 kB / 378.8 MB, free: 21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3195, allocations: 379.5 kB / 379.2 MB, free: 20.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.3198, allocations: 131.5 kB / 379.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004496/0.3202, allocations: 451.2 kB / 379.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.321, allocations: 0.6167 MB / 380.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.3211, allocations: 3.469 kB / 380.4 MB, free: 19.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00124/0.3223, allocations: 0.6475 MB / 381 MB, free: 19.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3223, allocations: 13.62 kB / 381 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.3224, allocations: 11.41 kB / 381 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.3225, allocations: 42.75 kB / 381.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.323, allocations: 149.9 kB / 381.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008069/0.3238, allocations: 1.381 MB / 382.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.3244, allocations: 37.75 kB / 382.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.3244, allocations: 36.45 kB / 382.7 MB, free: 17.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000304/0.3248, allocations: 253.5 kB / 382.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.3249, allocations: 75.53 kB / 383 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000686/0.3256, allocations: 332.4 kB / 383.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3256, allocations: 7.094 kB / 383.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3256, allocations: 5.344 kB / 383.3 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3256, allocations: 1.5 kB / 383.3 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.3275, allocations: 1.121 MB / 384.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.3275, allocations: 2.234 kB / 384.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.3278, allocations: 63.97 kB / 384.5 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.252e-05/0.3279, allocations: 20.05 kB / 384.5 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.179e-05/0.3279, allocations: 8.688 kB / 384.6 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000658/0.3286, allocations: 1.367 MB / 385.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3286, allocations: 2.125 kB / 385.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008737/0.3295, allocations: 0.5742 MB / 386.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.3297, allocations: 175.6 kB / 386.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.125e-05/0.3298, allocations: 11.06 kB / 386.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.3301, allocations: 21.06 kB / 386.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.3302, allocations: 29.78 kB / 386.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.3303, allocations: 9 kB / 386.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006947/0.331, allocations: 0.5208 MB / 387.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.331, allocations: 0 / 387.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007075/0.3317, allocations: 170.4 kB / 387.4 MB, free: 14.58 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001856/0.3319, allocations: 127 kB / 387.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009351/0.3328, allocations: 487.6 kB / 388 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.3328, allocations: 1.094 kB / 388 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.3332, allocations: 246.9 kB / 388.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008944/0.3341, allocations: 185.9 kB / 388.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.3362, allocations: 1.459 MB / 389.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.3368, allocations: 0.9568 MB / 390.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000301/0.3371, allocations: 93.23 kB / 391 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3372, allocations: 49.34 kB / 391 MB, free: 12.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3372, allocations: 3.719 kB / 391 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01435/0.3516, allocations: 8.436 MB / 399.4 MB, free: 8.43 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches