Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009218/0.0009217, allocations: 198.1 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008016/0.0008017, allocations: 106.2 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002057, allocations: 8 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.2022, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001268/0.2035, allocations: 1.468 MB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000609/0.2041, allocations: 0.6189 MB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.252e-05/0.2042, allocations: 4.875 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.962e-05/0.2043, allocations: 7.922 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.074e-05/0.2043, allocations: 36.33 kB / 410.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.2045, allocations: 40.47 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.2046, allocations: 116.1 kB / 410.4 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.2047, allocations: 17.48 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.883e-05/0.2048, allocations: 39.86 kB / 410.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.28e-05/0.2048, allocations: 43.78 kB / 410.5 MB, free: 25.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.2049, allocations: 4 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.2049, allocations: 20.98 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.409e-05/0.2049, allocations: 15.92 kB / 410.6 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.205, allocations: 69.5 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.964e-05/0.2051, allocations: 92.45 kB / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2051, allocations: 0 / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2051, allocations: 0 / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.996e-06/0.2051, allocations: 0 / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003434/0.2055, allocations: 387.4 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2055, allocations: 12.03 kB / 411.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.2056, allocations: 46.73 kB / 411.1 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.2057, allocations: 24.73 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.2058, allocations: 200.2 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.699e-06/0.2059, allocations: 8.562 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.2059, allocations: 12.06 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.206, allocations: 92.66 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2061, allocations: 4 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.2061, allocations: 4 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2061, allocations: 3.984 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.816e-05/0.2062, allocations: 67.84 kB / 411.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.2067, allocations: 485.1 kB / 412 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.2069, allocations: 86.53 kB / 412.1 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.207, allocations: 28.89 kB / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.207, allocations: 0 / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.083e-05/0.207, allocations: 38.56 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.207, allocations: 0 / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001728/0.2072, allocations: 85.69 kB / 412.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.702e-05/0.2072, allocations: 55.34 kB / 412.3 MB, free: 23.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.677e-05/0.2073, allocations: 129.8 kB / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.635e-06/0.2073, allocations: 25.7 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.2073, allocations: 111.8 kB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.2073, allocations: 31.55 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-06/0.2073, allocations: 4 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.407e-05/0.2074, allocations: 314.8 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.56e-05/0.2074, allocations: 23.98 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.342e-05/0.2075, allocations: 55.92 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.977e-05/0.2076, allocations: 75.31 kB / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2076, allocations: 0 / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001218/0.2077, allocations: 113.5 kB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.2077, allocations: 4 kB / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2077, allocations: 8.094 kB / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.2077, allocations: 0 / 413.2 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.386e-05/0.2078, allocations: 27.92 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.2078, allocations: 4 kB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.44e-05/0.2079, allocations: 8 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.2079, allocations: 0 / 413.2 MB, free: 22.35 MB / 298.7 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 (13): * Single equations (assignments): 13 * 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 5.155e-05/0.208, allocations: 125.7 kB / 413.4 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.208, allocations: 3.906 kB / 413.4 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.342e-05/0.208, allocations: 20.38 kB / 413.4 MB, free: 22.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.208, allocations: 7.922 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.208, allocations: 0 / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2081, allocations: 3.938 kB / 413.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.2082, allocations: 201.7 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2082, allocations: 0 / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.2083, allocations: 19.98 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2084, allocations: 0 / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.2084, allocations: 8 kB / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2084, allocations: 3.938 kB / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2084, allocations: 0 / 413.6 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001609/0.2085, allocations: 203.4 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.802e-05/0.2086, allocations: 85.02 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.2086, allocations: 8.031 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.122e-05/0.2087, allocations: 3.938 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.92e-05/0.2087, allocations: 4.094 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.2087, allocations: 4.031 kB / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.774e-05/0.2087, allocations: 95.27 kB / 414 MB, free: 21.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2087, allocations: 4 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000213/0.209, allocations: 27.91 kB / 414 MB, free: 21.44 MB / 298.7 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 (8): * Single equations (assignments): 8 * 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.0002565/0.2092, allocations: 0.7358 MB / 414.8 MB, free: 20.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001071/0.2093, allocations: 63.95 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2093, allocations: 4.188 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.078e-05/0.2094, allocations: 24.47 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.2097, allocations: 23.67 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.2106, allocations: 0.9338 MB / 415.8 MB, free: 19.56 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.227e-05/0.2107, allocations: 0.7043 MB / 416.5 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.2107, allocations: 27.42 kB / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2107, allocations: 0 / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.36/2.57, allocations: 1.663 MB / 418.2 MB, free: 17.14 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches