Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009034/0.0009034, allocations: 98.2 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009439/0.0009439, allocations: 197.9 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002034/0.0002034, allocations: 8 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1006, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.006462/0.1071, allocations: 6.377 MB / 364.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.1109, allocations: 2.531 MB / 367 MB, free: 4.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004121/0.1113, allocations: 23.94 kB / 367 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009882/0.1123, allocations: 437.9 kB / 367.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007769/0.1131, allocations: 470.6 kB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1134, allocations: 151.8 kB / 368 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1146, allocations: 0.8933 MB / 368.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005105/0.1151, allocations: 396 kB / 369.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000363/0.1155, allocations: 362.6 kB / 369.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000426/0.1159, allocations: 414 kB / 370.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.905e-05/0.116, allocations: 48 kB / 370.1 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.1162, allocations: 95.97 kB / 370.2 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1163, allocations: 151.4 kB / 370.4 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.1165, allocations: 225.1 kB / 370.6 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009391/0.1175, allocations: 1.094 MB / 371.7 MB, free: 240 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.1175, allocations: 0 / 371.7 MB, free: 240 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1175, allocations: 0 / 371.7 MB, free: 240 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1175, allocations: 0 / 371.7 MB, free: 240 kB / 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.182/0.2995, allocations: 1.137 MB / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.2996, allocations: 9.625 kB / 372.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008278/0.3004, allocations: 171.5 kB / 373 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.3016, allocations: 0.6085 MB / 373.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-05/0.3016, allocations: 61.88 kB / 373.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.3018, allocations: 93.34 kB / 373.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.3035, allocations: 0.8086 MB / 374.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.3036, allocations: 2.875 kB / 374.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.3037, allocations: 36.97 kB / 374.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.908e-05/0.3038, allocations: 20.72 kB / 374.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3051, allocations: 0.5526 MB / 375.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.3093, allocations: 3.545 MB / 378.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.3098, allocations: 253.5 kB / 379 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.3098, allocations: 4.781 kB / 379 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.3098, allocations: 31.94 kB / 379 MB, free: 16.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 2.355e-06/0.3098, allocations: 0 / 379 MB, free: 16.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002116/0.312, allocations: 1.1 MB / 380.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.312, allocations: 84.81 kB / 380.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008544/0.3129, allocations: 0.7084 MB / 380.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.3129, allocations: 30.89 kB / 380.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003016/0.3132, allocations: 0.513 MB / 381.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.574e-05/0.3133, allocations: 108.5 kB / 381.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.3133, allocations: 10.84 kB / 381.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3134, allocations: 382.9 kB / 381.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.3137, allocations: 137.9 kB / 382.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.3142, allocations: 447.7 kB / 382.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.3145, allocations: 215.6 kB / 382.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3146, allocations: 2.969 kB / 382.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001008/0.3156, allocations: 0.6486 MB / 383.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3156, allocations: 9.25 kB / 383.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3156, allocations: 11.5 kB / 383.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/0.3158, allocations: 39.77 kB / 383.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.3163, allocations: 161.7 kB / 383.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007329/0.317, allocations: 1.292 MB / 384.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/0.3175, allocations: 49.23 kB / 384.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.3175, allocations: 32.83 kB / 385 MB, free: 12.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000308/0.3179, allocations: 237.4 kB / 385.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.318, allocations: 83.8 kB / 385.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006868/0.3187, allocations: 345.3 kB / 385.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3187, allocations: 6.875 kB / 385.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3187, allocations: 5.672 kB / 385.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3187, allocations: 1.969 kB / 385.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.3204, allocations: 1.099 MB / 386.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3204, allocations: 2.062 kB / 386.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002961/0.3207, allocations: 71.2 kB / 386.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001027/0.3208, allocations: 23.5 kB / 386.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.3208, allocations: 7.594 kB / 386.8 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006301/0.3215, allocations: 1.278 MB / 388.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3215, allocations: 3.859 kB / 388.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009065/0.3224, allocations: 0.666 MB / 388.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.3226, allocations: 170 kB / 388.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.3227, allocations: 9.516 kB / 388.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.323, allocations: 23.8 kB / 389 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.3231, allocations: 31.77 kB / 389 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.3231, allocations: 12.38 kB / 389 MB, free: 8.973 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006168/0.3237, allocations: 478 kB / 389.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3237, allocations: 0 / 389.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007933/0.3245, allocations: 170.1 kB / 389.6 MB, free: 8.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000212/0.3248, allocations: 124.9 kB / 389.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008813/0.3257, allocations: 490.5 kB / 390.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3257, allocations: 4.062 kB / 390.2 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.326, allocations: 243.7 kB / 390.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008321/0.3269, allocations: 178.5 kB / 390.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.3293, allocations: 1.798 MB / 392.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.3298, allocations: 0.9704 MB / 393.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004146/0.3302, allocations: 90.08 kB / 393.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3303, allocations: 53.28 kB / 393.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3304, allocations: 0 / 393.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of Templates: time 0.01565/0.346, allocations: 7.143 MB / 400.7 MB, free: 2.98 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches