Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009168/0.0009169, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.212/1.212, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008576/0.0008577, allocations: 90.34 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002985, allocations: 16 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2118, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.001415/0.2133, allocations: 1.443 MB / 376.6 MB, free: 44.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000697/0.214, allocations: 0.6342 MB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.2141, allocations: 6.312 kB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.453e-05/0.2142, allocations: 13.08 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.364e-05/0.2142, allocations: 36.31 kB / 377.3 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.2144, allocations: 35.66 kB / 377.4 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.2145, allocations: 114.2 kB / 377.5 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.386e-05/0.2146, allocations: 24.36 kB / 377.5 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.428e-05/0.2147, allocations: 35.31 kB / 377.5 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.346e-05/0.2147, allocations: 47.39 kB / 377.6 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.2148, allocations: 4.531 kB / 377.6 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.2148, allocations: 22.8 kB / 377.6 MB, free: 43.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.2149, allocations: 15.23 kB / 377.6 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.47e-05/0.2149, allocations: 72.28 kB / 377.7 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.2151, allocations: 99.34 kB / 377.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2151, allocations: 1.062 kB / 377.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2151, allocations: 0 / 377.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.2151, allocations: 0 / 377.8 MB, free: 43.43 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.0003854/0.2155, allocations: 396.2 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.2155, allocations: 9.531 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.2156, allocations: 42.06 kB / 378.2 MB, free: 42.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.2157, allocations: 27.55 kB / 378.2 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.2159, allocations: 193.1 kB / 378.4 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.2159, allocations: 7.969 kB / 378.4 MB, free: 42.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.2159, allocations: 23.22 kB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.2161, allocations: 91.94 kB / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2161, allocations: 0 / 378.6 MB, free: 42.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.2161, allocations: 9.203 kB / 378.6 MB, free: 42.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2162, allocations: 6.547 kB / 378.6 MB, free: 42.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.2163, allocations: 72.12 kB / 378.6 MB, free: 42.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005653/0.2169, allocations: 442.3 kB / 379.1 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.2171, allocations: 99.2 kB / 379.2 MB, free: 42.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.921e-05/0.2172, allocations: 32 kB / 379.2 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2172, allocations: 1.031 kB / 379.2 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.184e-05/0.2172, allocations: 35.53 kB / 379.2 MB, free: 42.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.2172, allocations: 4.219 kB / 379.2 MB, free: 42.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001121/0.2183, allocations: 0.5321 MB / 379.8 MB, free: 41.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.79e-05/0.2184, allocations: 60.56 kB / 379.8 MB, free: 41.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.002e-05/0.2184, allocations: 125.7 kB / 380 MB, free: 41.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.2184, allocations: 25.7 kB / 380 MB, free: 41.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.2185, allocations: 108.8 kB / 380.1 MB, free: 41.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.2185, allocations: 36.83 kB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.2185, allocations: 4 kB / 380.1 MB, free: 41.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.2186, allocations: 321.6 kB / 380.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.687e-05/0.2186, allocations: 30.17 kB / 380.5 MB, free: 40.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.783e-05/0.2187, allocations: 59.39 kB / 380.5 MB, free: 40.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2188, allocations: 92.64 kB / 380.6 MB, free: 40.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2188, allocations: 0.5625 kB / 380.6 MB, free: 40.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000168/0.219, allocations: 137.9 kB / 380.8 MB, free: 40.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.219, allocations: 5.906 kB / 380.8 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.219, allocations: 0.9688 kB / 380.8 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.219, allocations: 2.219 kB / 380.8 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.2192, allocations: 37.27 kB / 380.8 MB, free: 40.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.2192, allocations: 10.14 kB / 380.8 MB, free: 40.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.062e-05/0.2192, allocations: 2.125 kB / 380.8 MB, free: 40.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.2192, allocations: 8.375 kB / 380.8 MB, free: 40.68 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 (17): * Single equations (assignments): 17 * 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.675e-05/0.2193, allocations: 123.4 kB / 380.9 MB, free: 40.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.2193, allocations: 12.41 kB / 380.9 MB, free: 40.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.2194, allocations: 18.48 kB / 381 MB, free: 40.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2194, allocations: 1.125 kB / 381 MB, free: 40.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2194, allocations: 3.938 kB / 381 MB, free: 40.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2194, allocations: 1 kB / 381 MB, free: 40.54 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003982/0.2198, allocations: 427.3 kB / 381.4 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.2198, allocations: 1.656 kB / 381.4 MB, free: 40.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.22, allocations: 30.91 kB / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.22, allocations: 9.078 kB / 381.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.22, allocations: 1.594 kB / 381.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.22, allocations: 1 kB / 381.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.22, allocations: 1.344 kB / 381.4 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.2202, allocations: 255.5 kB / 381.7 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.2203, allocations: 89.17 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.2203, allocations: 1.375 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-05/0.2204, allocations: 5.688 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-05/0.2204, allocations: 12.47 kB / 381.8 MB, free: 39.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.2204, allocations: 6.75 kB / 381.8 MB, free: 39.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.154e-05/0.2204, allocations: 92.95 kB / 381.9 MB, free: 39.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2205, allocations: 4 kB / 381.9 MB, free: 39.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000231/0.2207, allocations: 25.22 kB / 381.9 MB, free: 39.7 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,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 (12): * Single equations (assignments): 12 * 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.0003226/0.221, allocations: 0.7788 MB / 382.7 MB, free: 38.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000136/0.2212, allocations: 82.83 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2212, allocations: 0 / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.919e-05/0.2212, allocations: 39.09 kB / 382.8 MB, free: 38.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.2216, allocations: 25.7 kB / 382.8 MB, free: 38.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.2226, allocations: 0.9871 MB / 383.8 MB, free: 38.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.863e-05/0.2227, allocations: 0.7086 MB / 384.5 MB, free: 37.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.279e-05/0.2227, allocations: 25.88 kB / 384.6 MB, free: 37.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2227, allocations: 0 / 384.6 MB, free: 37.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.394/2.616, allocations: 1.771 MB / 386.3 MB, free: 36.44 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches