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.001306/0.001306, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 204.7 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 67.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2417, allocations: 50.55 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003224/0.245, allocations: 1.982 MB / 410.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.246, allocations: 0.6972 MB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.395e-05/0.2461, allocations: 0 / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.2462, allocations: 31.78 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.333e-05/0.2463, allocations: 35.64 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.2466, allocations: 47.86 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001902/0.2468, allocations: 147.3 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.2469, allocations: 37.08 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.416e-05/0.247, allocations: 51.8 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.2471, allocations: 55.77 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.2471, allocations: 16 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.624e-05/0.2472, allocations: 27.98 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.74e-05/0.2473, allocations: 23.91 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.912e-05/0.2473, allocations: 63.61 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.2476, allocations: 142.5 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2476, allocations: 0 / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2476, allocations: 3.938 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2476, allocations: 0 / 412.2 MB, free: 14.12 MB / 334.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.0006618/0.2483, allocations: 446.8 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2483, allocations: 12.03 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.506e-05/0.2484, allocations: 42.73 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.2486, allocations: 24.88 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.2488, allocations: 208.1 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.2488, allocations: 8.375 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.2489, allocations: 12.12 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.2491, allocations: 125.5 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.2492, allocations: 0 / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.2492, allocations: 4 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2492, allocations: 4 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.2495, allocations: 87.92 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008567/0.2503, allocations: 0.5206 MB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.2507, allocations: 102.5 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.2508, allocations: 52.75 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.2508, allocations: 4 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.2509, allocations: 34.56 kB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2509, allocations: 0 / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004946/0.2514, allocations: 145.7 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.2514, allocations: 55.34 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.2515, allocations: 133.8 kB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.2516, allocations: 33.7 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.287e-05/0.2516, allocations: 108.2 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.2517, allocations: 39.62 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.2517, allocations: 25.72 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.2519, allocations: 322.8 kB / 414.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.252, allocations: 39.97 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.2522, allocations: 71.41 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.2524, allocations: 107.3 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2524, allocations: 0 / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003233/0.2528, allocations: 153.4 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2528, allocations: 8 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2528, allocations: 3.984 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2528, allocations: 4 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.253, allocations: 31.92 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/0.253, allocations: 0 / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.033e-05/0.2531, allocations: 15.98 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2531, allocations: 12.09 kB / 415.1 MB, free: 10.9 MB / 334.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 0.0001074/0.2532, allocations: 117.8 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.227e-05/0.2533, allocations: 11.91 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.864e-05/0.2533, allocations: 16.72 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2533, allocations: 7.922 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2533, allocations: 0 / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2533, allocations: 3.938 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.2536, allocations: 213.5 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2536, allocations: 4 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.2538, allocations: 35.97 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2538, allocations: 384 / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.2538, allocations: 0 / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2538, allocations: 4 kB / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2538, allocations: 0 / 415.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.2543, allocations: 263.3 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.2544, allocations: 93.02 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.2544, allocations: 0 / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.2545, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-05/0.2545, allocations: 11.98 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.2545, allocations: 0 / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.082e-05/0.2546, allocations: 105.9 kB / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2546, allocations: 0 / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002404/0.2549, allocations: 24 kB / 416 MB, free: 9.906 MB / 334.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.0007399/0.2556, allocations: 0.7982 MB / 416.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.2559, allocations: 99.98 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2559, allocations: 0 / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.2561, allocations: 47.91 kB / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.2564, allocations: 16.5 kB / 417 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.2587, allocations: 1.875 MB / 418.8 MB, free: 6.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.2591, allocations: 0.7119 MB / 419.5 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.343e-05/0.2591, allocations: 8.5 kB / 419.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.956e-05/0.2592, allocations: 31.42 kB / 419.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2592, allocations: 0 / 419.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.2837, allocations: 2.713 MB / 422.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.82/8.104, allocations: 4.438 kB / 422.3 MB, free: 3.562 MB / 334.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.1.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,eddyCurrentTorque.lossPower,inertia.phi,heatCapacitor.T 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