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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 60.16 kB / 306.3 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08171/0.08294, allocations: 50.54 MB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003269/0.08624, allocations: 2.037 MB / 358.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.08732, allocations: 0.6935 MB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.08747, allocations: 4 kB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.0876, allocations: 11.86 kB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.103e-05/0.0877, allocations: 39.69 kB / 359.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.08791, allocations: 39.89 kB / 359.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.08809, allocations: 147.3 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.0882, allocations: 33.08 kB / 359.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.208e-05/0.0883, allocations: 51.78 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.674e-05/0.0884, allocations: 55.7 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.08843, allocations: 8 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.024e-05/0.08852, allocations: 20 kB / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.404e-05/0.08855, allocations: 19.92 kB / 360 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.08862, allocations: 55.72 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.08882, allocations: 143.8 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.08883, allocations: 4 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.08883, allocations: 0 / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.08884, allocations: 0 / 360.2 MB, free: 10.96 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.0006062/0.08946, allocations: 445.2 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.0895, allocations: 8.031 kB / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.08955, allocations: 42.69 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.08973, allocations: 36.72 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.08994, allocations: 200.2 kB / 360.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.08996, allocations: 8.375 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.08999, allocations: 16.12 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.09026, allocations: 110.7 kB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.09028, allocations: 7.891 kB / 361.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.09031, allocations: 4 kB / 361.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.09032, allocations: 4 kB / 361.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.09057, allocations: 92.53 kB / 361.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000805/0.09139, allocations: 0.5127 MB / 361.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.09169, allocations: 110.5 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.09182, allocations: 44.81 kB / 361.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.09185, allocations: 4 kB / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.09187, allocations: 30.56 kB / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.192e-06/0.09188, allocations: 0 / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004033/0.09228, allocations: 149.6 kB / 362 MB, free: 8.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.09233, allocations: 59.34 kB / 362.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.779e-05/0.09242, allocations: 136.7 kB / 362.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.09244, allocations: 25.7 kB / 362.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.76e-05/0.09251, allocations: 120.1 kB / 362.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.09255, allocations: 35.41 kB / 362.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.0926, allocations: 33.7 kB / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/0.0927, allocations: 318.8 kB / 362.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.09282, allocations: 31.98 kB / 362.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.09295, allocations: 75.33 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.09318, allocations: 103.4 kB / 362.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.09319, allocations: 3.938 kB / 363 MB, free: 7.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002908/0.09349, allocations: 149.4 kB / 363.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.09351, allocations: 8.094 kB / 363.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.09352, allocations: 4 kB / 363.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.09354, allocations: 4 kB / 363.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.0937, allocations: 31.97 kB / 363.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.09371, allocations: 7.938 kB / 363.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.09382, allocations: 7.906 kB / 363.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.09383, allocations: 8 kB / 363.2 MB, free: 7.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.343e-05/0.09392, allocations: 125.7 kB / 363.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.09396, allocations: 15.91 kB / 363.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.588e-05/0.094, allocations: 12.72 kB / 363.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.09401, allocations: 0 / 363.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.09402, allocations: 4 kB / 363.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.09403, allocations: 0 / 363.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.09423, allocations: 217.5 kB / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.09424, allocations: 0 / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.09443, allocations: 31.98 kB / 363.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.09444, allocations: 0 / 363.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.09446, allocations: 3.938 kB / 363.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.09446, allocations: 4 kB / 363.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09447, allocations: 0 / 363.6 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.09489, allocations: 263.6 kB / 363.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.09493, allocations: 81.11 kB / 363.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.09496, allocations: 7.938 kB / 363.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.09508, allocations: 12.03 kB / 363.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.09512, allocations: 11.98 kB / 363.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.09514, allocations: 0 / 363.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.799e-05/0.0952, allocations: 103.2 kB / 364 MB, free: 6.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0952, allocations: 0 / 364 MB, free: 6.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000245/0.09545, allocations: 24 kB / 364.1 MB, free: 6.758 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006591/0.09612, allocations: 0.7943 MB / 364.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000258/0.09639, allocations: 91.92 kB / 365 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.0964, allocations: 4 kB / 365 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.09652, allocations: 52.09 kB / 365 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.09686, allocations: 20.16 kB / 365 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.09893, allocations: 1.907 MB / 366.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.09919, allocations: 0.7043 MB / 367.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.685e-05/0.09926, allocations: 12.55 kB / 367.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-05/0.09934, allocations: 39.36 kB / 367.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.09934, allocations: 0 / 367.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2155/0.3149, allocations: 2.464 MB / 370.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.3151, allocations: 203.6 kB / 370.4 MB, free: 392 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/2.024, allocations: 0 / 370.4 MB, free: 392 kB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/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:der(eddyCurrentTorque.phi),der(heatCapacitor.T),der(inertia.w),eddyCurrentTorque.T,eddyCurrentTorque.TRef,eddyCurrentTorque.TheatPort,eddyCurrentTorque.alpha20,eddyCurrentTorque.constantExcitation,eddyCurrentTorque.excitation,eddyCurrentTorque.flange.phi,eddyCurrentTorque.flange.tau,eddyCurrentTorque.heatPort.Q_flow,eddyCurrentTorque.heatPort.T,eddyCurrentTorque.lossPower,eddyCurrentTorque.phi,eddyCurrentTorque.tau,eddyCurrentTorque.tau_nominal,eddyCurrentTorque.useExcitationInput,eddyCurrentTorque.useHeatPort,eddyCurrentTorque.useSupport,eddyCurrentTorque.w,eddyCurrentTorque.w_nominal,eddyCurrentTorque.w_normalized,heatCapacitor.C,heatCapacitor.T,heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,inertia.J,inertia.a,inertia.flange_a.phi,inertia.flange_a.tau,inertia.flange_b.phi,inertia.flange_b.tau,inertia.phi,inertia.stateSelect,inertia.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time