Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009856/0.0009856, allocations: 101.7 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 197.2 kB / 17.9 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002135/0.0002135, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 51.52 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.00285/0.1095, allocations: 1.648 MB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1108, allocations: 0.6511 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.616e-05/0.1109, allocations: 0 / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1111, allocations: 19.86 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.1112, allocations: 35.7 kB / 361 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1115, allocations: 43.86 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002236/0.1117, allocations: 131.3 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.1118, allocations: 33.08 kB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.741e-05/0.112, allocations: 43.8 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1121, allocations: 51.77 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.1121, allocations: 8 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.1122, allocations: 27.92 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.649e-05/0.1123, allocations: 19.92 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.865e-05/0.1123, allocations: 45.64 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.1125, allocations: 104 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1125, allocations: 0 / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1126, allocations: 0 / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.1126, allocations: 0 / 361.5 MB, free: 10.77 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007005/0.1133, allocations: 423 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1133, allocations: 8.031 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.1136, allocations: 27.8 kB / 361.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002459/0.1138, allocations: 206.8 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.1139, allocations: 8 kB / 362.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.1139, allocations: 8 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.1143, allocations: 126.7 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1143, allocations: 0 / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.1144, allocations: 8 kB / 362.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.1144, allocations: 0 / 362.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.1148, allocations: 99.88 kB / 362.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.116, allocations: 0.5282 MB / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.1164, allocations: 110.6 kB / 363 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1166, allocations: 44.84 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.1166, allocations: 4 kB / 363.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.1166, allocations: 38.67 kB / 363.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.1166, allocations: 0 / 363.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005932/0.1172, allocations: 169.4 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.1173, allocations: 55.41 kB / 363.3 MB, free: 8.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.1174, allocations: 130 kB / 363.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.1175, allocations: 25.7 kB / 363.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.1175, allocations: 116.1 kB / 363.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.1176, allocations: 35.55 kB / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.1176, allocations: 4 kB / 363.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1178, allocations: 322.8 kB / 363.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.118, allocations: 39.92 kB / 364 MB, free: 8.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.1181, allocations: 75.39 kB / 364 MB, free: 7.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.1182, allocations: 47.98 kB / 364.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1183, allocations: 0 / 364.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003659/0.1186, allocations: 165.3 kB / 364.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1187, allocations: 4 kB / 364.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1187, allocations: 0 / 364.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1187, allocations: 7.953 kB / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.1189, allocations: 31.98 kB / 364.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.119, allocations: 0 / 364.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1191, allocations: 23.98 kB / 364.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.1192, allocations: 4 kB / 364.3 MB, free: 7.676 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.1193, allocations: 130.4 kB / 364.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.1194, allocations: 7.906 kB / 364.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.1194, allocations: 12.72 kB / 364.5 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1194, allocations: 7.984 kB / 364.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.1194, allocations: 3.953 kB / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1195, allocations: 0 / 364.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.1198, allocations: 209.5 kB / 364.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1199, allocations: 4 kB / 364.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1201, allocations: 31.97 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1202, allocations: 4 kB / 364.7 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.1202, allocations: 4 kB / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1202, allocations: 0 / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1202, allocations: 0 / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000652/0.1209, allocations: 279.6 kB / 365 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.1209, allocations: 92.98 kB / 365.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.121, allocations: 0 / 365.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.1211, allocations: 16 kB / 365.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.1212, allocations: 11.92 kB / 365.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.1212, allocations: 0 / 365.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.091e-05/0.1213, allocations: 110 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1213, allocations: 0 / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.1216, allocations: 31.91 kB / 365.3 MB, free: 6.648 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * 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 (9): * Single equations (assignments): 9 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001305/0.1217, allocations: 95.25 kB / 365.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.1222, allocations: 103.9 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1222, allocations: 0 / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.1224, allocations: 52.09 kB / 365.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005744/0.123, allocations: 19.98 kB / 365.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.1241, allocations: 0.5577 MB / 366.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002393/0.1244, allocations: 0.7082 MB / 366.8 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.1245, allocations: 8.562 kB / 366.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.863e-05/0.1246, allocations: 11.44 kB / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1246, allocations: 0 / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of Templates: time 0.004641/0.1292, allocations: 1.047 MB / 367.9 MB, free: 4.012 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertia.phi,heatCapacitor.T,eddyCurrentTorque.lossPower Variables in the result:eddyCurrentTorque.T,eddyCurrentTorque.TRef,eddyCurrentTorque.alpha20,eddyCurrentTorque.constantExcitation,eddyCurrentTorque.lossPower,eddyCurrentTorque.phi,eddyCurrentTorque.tau_nominal,eddyCurrentTorque.useExcitationInput,eddyCurrentTorque.w_nominal,heatCapacitor.C,heatCapacitor.T,inertia.J,inertia.phi,ramp.duration,ramp.height,ramp.offset,ramp.startTime,time