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.0009338/0.0009339, allocations: 94.16 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 198.7 kB / 17.89 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.315/1.315, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002395/0.0002395, allocations: 4 kB / 306.6 MB, free: 1.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09056, allocations: 51.48 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001825/0.09241, allocations: 1.605 MB / 359.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000816/0.09325, allocations: 0.628 MB / 360.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.681e-05/0.09333, allocations: 3.938 kB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.09337, allocations: 11.92 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.09349, allocations: 47.83 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.09368, allocations: 55.86 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.09384, allocations: 95.8 kB / 360.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.09395, allocations: 29.08 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.379e-05/0.09403, allocations: 47.84 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.437e-05/0.09411, allocations: 47.78 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.09414, allocations: 4 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.769e-05/0.09422, allocations: 27.98 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.09425, allocations: 19.91 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.09429, allocations: 49.64 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.09444, allocations: 104 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.09445, allocations: 4 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.09446, allocations: 0 / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.09448, allocations: 0 / 360.8 MB, free: 11.14 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.000582/0.09506, allocations: 422.9 kB / 361.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.09511, allocations: 8.031 kB / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.09529, allocations: 31.8 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.09548, allocations: 198.8 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.0955, allocations: 11.94 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/0.09554, allocations: 11.95 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.0958, allocations: 122.7 kB / 361.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.09582, allocations: 0 / 361.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.09584, allocations: 4 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.09586, allocations: 8 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.09613, allocations: 95.88 kB / 361.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.09698, allocations: 0.5322 MB / 362.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.09729, allocations: 114.5 kB / 362.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.09732, allocations: 3.938 kB / 362.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.09734, allocations: 30.56 kB / 362.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.09735, allocations: 0 / 362.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004441/0.0978, allocations: 169.6 kB / 362.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.09784, allocations: 51.41 kB / 362.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.09795, allocations: 137.8 kB / 362.7 MB, free: 9.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.09797, allocations: 25.7 kB / 362.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.09804, allocations: 116.1 kB / 362.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.09808, allocations: 35.55 kB / 362.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.09809, allocations: 0 / 362.9 MB, free: 8.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/0.0982, allocations: 322.8 kB / 363.2 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.09832, allocations: 39.97 kB / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.09846, allocations: 75.34 kB / 363.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.09859, allocations: 47.98 kB / 363.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.0986, allocations: 0 / 363.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003084/0.09891, allocations: 153.4 kB / 363.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.09894, allocations: 10.97 kB / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.09895, allocations: 0 / 363.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.09896, allocations: 7.953 kB / 363.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.09917, allocations: 40.02 kB / 363.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.09919, allocations: 4 kB / 363.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.0993, allocations: 19.83 kB / 363.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.958e-06/0.09931, allocations: 4 kB / 363.6 MB, free: 8.094 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 9.035e-05/0.09941, allocations: 118.5 kB / 363.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.09944, allocations: 7.906 kB / 363.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.966e-05/0.09949, allocations: 20.7 kB / 363.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.0995, allocations: 4 kB / 363.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.09951, allocations: 3.953 kB / 363.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.09953, allocations: 7.938 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.09976, allocations: 213.5 kB / 364 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.09977, allocations: 0 / 364 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.09994, allocations: 27.98 kB / 364 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.09995, allocations: 0 / 364 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.09997, allocations: 8.375 kB / 364 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.09998, allocations: 0 / 364 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09999, allocations: 4 kB / 364 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000481/0.1005, allocations: 283.2 kB / 364.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.1005, allocations: 84.95 kB / 364.4 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.1006, allocations: 4 kB / 364.4 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.1007, allocations: 11.97 kB / 364.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.1007, allocations: 7.984 kB / 364.4 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.1007, allocations: 8 kB / 364.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.181e-05/0.1008, allocations: 99.22 kB / 364.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1008, allocations: 0 / 364.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002536/0.1011, allocations: 35.91 kB / 364.6 MB, free: 7.066 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.0001187/0.1012, allocations: 99.19 kB / 364.7 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002836/0.1015, allocations: 99.88 kB / 364.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1015, allocations: 8.188 kB / 364.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.1016, allocations: 43.98 kB / 364.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.1019, allocations: 16.31 kB / 364.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007581/0.1026, allocations: 0.5655 MB / 365.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.1029, allocations: 0.716 MB / 366.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.915e-05/0.103, allocations: 4.562 kB / 366.1 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.103, allocations: 11.44 kB / 366.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.103, allocations: 0 / 366.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of Templates: time 0.003044/0.1061, allocations: 1.04 MB / 367.2 MB, free: 4.43 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","../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