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.001092/0.001092, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 67.86 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2523, allocations: 50.53 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.00292/0.2552, allocations: 1.985 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2563, allocations: 0.6936 MB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.918e-05/0.2564, allocations: 4 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.2566, allocations: 15.8 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.716e-05/0.2566, allocations: 39.62 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.2569, allocations: 59.78 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.2571, allocations: 147.3 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.2573, allocations: 33.09 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.2574, allocations: 55.73 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.78e-05/0.2575, allocations: 59.75 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.2575, allocations: 8 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.371e-05/0.2576, allocations: 27.98 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.2576, allocations: 23.92 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.78e-05/0.2577, allocations: 59.67 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.2579, allocations: 149.2 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2579, allocations: 4 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2579, allocations: 3.938 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.2579, allocations: 0 / 412.1 MB, free: 14.19 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.0005936/0.2585, allocations: 442.9 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2586, allocations: 8.031 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.594e-05/0.2586, allocations: 46.73 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.2588, allocations: 28.83 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.2591, allocations: 200 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.2591, allocations: 12.31 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.2592, allocations: 16.12 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.2594, allocations: 121.4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.2595, allocations: 0 / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.2595, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2595, allocations: 4 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2598, allocations: 95.92 kB / 413 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008495/0.2606, allocations: 0.5126 MB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.261, allocations: 106.5 kB / 413.7 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.2611, allocations: 48.77 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.2611, allocations: 4 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.2611, allocations: 30.56 kB / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.2612, allocations: 0 / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004377/0.2616, allocations: 149.7 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.2616, allocations: 55.41 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.672e-05/0.2617, allocations: 132.6 kB / 414.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.2618, allocations: 25.7 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.2618, allocations: 120 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.2619, allocations: 35.55 kB / 414.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.2619, allocations: 25.72 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2621, allocations: 322.8 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.2622, allocations: 35.97 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2623, allocations: 70.84 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.2626, allocations: 115.3 kB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2626, allocations: 0 / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003173/0.2629, allocations: 149.3 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.2629, allocations: 4 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2629, allocations: 0 / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.263, allocations: 8.094 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.2631, allocations: 31.92 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.2631, allocations: 0 / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.255e-05/0.2632, allocations: 20.3 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.2633, allocations: 7.984 kB / 415 MB, free: 10.98 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 8.843e-05/0.2633, allocations: 125.7 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.2634, allocations: 7.906 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.2634, allocations: 20.66 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2634, allocations: 7.984 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2635, allocations: 3.984 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2635, allocations: 3.938 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.2637, allocations: 213.5 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2637, allocations: 0 / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.2639, allocations: 31.91 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2639, allocations: 4 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.2639, allocations: 0 / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2639, allocations: 0 / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2639, allocations: 0 / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004421/0.2644, allocations: 259.3 kB / 415.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.2644, allocations: 92.98 kB / 415.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/0.2645, allocations: 4 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.2646, allocations: 4 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.2646, allocations: 7.984 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.2646, allocations: 8 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.161e-05/0.2647, allocations: 99.27 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2647, allocations: 0 / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002542/0.265, allocations: 31.91 kB / 415.9 MB, free: 9.977 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.0006619/0.2656, allocations: 0.7904 MB / 416.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.2659, allocations: 100.1 kB / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2659, allocations: 0 / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.2661, allocations: 47.91 kB / 416.9 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.2664, allocations: 20.19 kB / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.2685, allocations: 1.874 MB / 418.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.2688, allocations: 0.708 MB / 419.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.282e-05/0.2689, allocations: 8.562 kB / 419.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.97e-05/0.269, allocations: 35.42 kB / 419.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.269, allocations: 0 / 419.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.2892, allocations: 2.75 MB / 422.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.973/8.262, allocations: 3.75 kB / 422.3 MB, free: 3.605 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.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