Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.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.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake",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.0008404/0.0008404, allocations: 174.2 kB / 16.72 MB, free: 5.078 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.201/1.201, allocations: 205.4 MB / 222.9 MB, free: 8.926 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.0007401/0.0007399, allocations: 82.42 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003149, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2003/0.2007, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002045/0.2027, allocations: 2.032 MB / 377.2 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008398/0.2036, allocations: 496.8 kB / 377.7 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.2038, allocations: 4.094 kB / 377.7 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.204, allocations: 47.11 kB / 377.8 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.2041, allocations: 67.97 kB / 377.8 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.2045, allocations: 142.5 kB / 378 MB, free: 43.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.205, allocations: 429.4 kB / 378.4 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.2051, allocations: 57.31 kB / 378.4 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.2054, allocations: 185.7 kB / 378.6 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.2056, allocations: 215.1 kB / 378.8 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.2057, allocations: 20.09 kB / 378.8 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.2059, allocations: 61.58 kB / 378.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.053e-05/0.206, allocations: 82.16 kB / 379 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.2061, allocations: 181.4 kB / 379.2 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.2064, allocations: 322.8 kB / 379.5 MB, free: 42.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.2064, allocations: 0 / 379.5 MB, free: 42.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2064, allocations: 0 / 379.5 MB, free: 42.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.597e-06/0.2064, allocations: 0 / 379.5 MB, free: 42.22 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001011/0.2074, allocations: 0.6216 MB / 380.1 MB, free: 41.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2075, allocations: 9.438 kB / 380.1 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.281e-05/0.2076, allocations: 68.19 kB / 380.2 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.2076, allocations: 34.03 kB / 380.2 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.2079, allocations: 272.5 kB / 380.5 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.2079, allocations: 29.03 kB / 380.5 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.208, allocations: 30.38 kB / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/0.2086, allocations: 382.8 kB / 380.9 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.2087, allocations: 5.312 kB / 380.9 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.2087, allocations: 9.406 kB / 380.9 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2087, allocations: 6.781 kB / 380.9 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006984/0.2094, allocations: 406.1 kB / 381.3 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2111, allocations: 1.131 MB / 382.5 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.2116, allocations: 299 kB / 382.7 MB, free: 39.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.212, allocations: 200.3 kB / 382.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.212, allocations: 4.312 kB / 382.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.2121, allocations: 43.94 kB / 383 MB, free: 39.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.395e-06/0.2121, allocations: 3.984 kB / 383 MB, free: 39.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004328/0.2164, allocations: 2.107 MB / 385.1 MB, free: 38.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.2165, allocations: 55.72 kB / 385.2 MB, free: 38.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.2167, allocations: 241.5 kB / 385.4 MB, free: 38.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.2168, allocations: 43.42 kB / 385.4 MB, free: 38.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.2168, allocations: 154.8 kB / 385.6 MB, free: 37.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.42e-05/0.2169, allocations: 148.9 kB / 385.7 MB, free: 37.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.217, allocations: 13.42 kB / 385.7 MB, free: 37.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.311e-05/0.217, allocations: 345.2 kB / 386.1 MB, free: 37.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.2174, allocations: 211.1 kB / 386.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.2177, allocations: 280.8 kB / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.2183, allocations: 381.7 kB / 386.9 MB, free: 36.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2183, allocations: 4 kB / 386.9 MB, free: 36.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001187/0.2195, allocations: 0.6847 MB / 387.6 MB, free: 35.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2195, allocations: 8.031 kB / 387.6 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2195, allocations: 4 kB / 387.6 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007288/0.2203, allocations: 0.4896 MB / 388.1 MB, free: 35.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.2205, allocations: 75.91 kB / 388.2 MB, free: 35.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009615/0.2215, allocations: 1.398 MB / 389.6 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.2219, allocations: 91.98 kB / 389.7 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/0.222, allocations: 19.98 kB / 389.7 MB, free: 33.65 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.2222, allocations: 159.3 kB / 389.9 MB, free: 33.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.739e-05/0.2222, allocations: 31.56 kB / 389.9 MB, free: 33.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-05/0.2224, allocations: 59.23 kB / 389.9 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2224, allocations: 4 kB / 390 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.2224, allocations: 0 / 390 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2224, allocations: 0 / 390 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.2247, allocations: 1.389 MB / 391.3 MB, free: 31.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.2247, allocations: 0 / 391.3 MB, free: 31.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.225, allocations: 68 kB / 391.4 MB, free: 31.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005614/0.2255, allocations: 473.3 kB / 391.9 MB, free: 31.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/0.2256, allocations: 19.98 kB / 391.9 MB, free: 31.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008157/0.2264, allocations: 1.335 MB / 393.2 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2264, allocations: 8.062 kB / 393.2 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.2278, allocations: 0.9431 MB / 394.2 MB, free: 29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.228, allocations: 156.7 kB / 394.3 MB, free: 28.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.413e-05/0.2281, allocations: 19.94 kB / 394.3 MB, free: 28.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.2284, allocations: 55.95 kB / 394.4 MB, free: 28.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.2286, allocations: 95.73 kB / 394.5 MB, free: 28.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.2287, allocations: 23.97 kB / 394.5 MB, free: 28.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001297/0.2288, allocations: 172.5 kB / 394.7 MB, free: 28.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2288, allocations: 0 / 394.7 MB, free: 28.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004487/0.2293, allocations: 104 kB / 394.8 MB, free: 28.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001702/0.231, allocations: 1.527 MB / 396.3 MB, free: 26.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008755/0.2319, allocations: 0.5027 MB / 396.8 MB, free: 26.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2319, allocations: 4.312 kB / 396.8 MB, free: 26.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.2323, allocations: 288 kB / 397.1 MB, free: 26.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.2328, allocations: 47.16 kB / 397.2 MB, free: 25.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.2369, allocations: 2.712 MB / 399.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001736/0.2371, allocations: 0.7841 MB / 400.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.2373, allocations: 87.41 kB / 400.7 MB, free: 22.27 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2373, allocations: 0 / 400.7 MB, free: 22.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.255/4.493, allocations: 7.212 MB / 407.9 MB, free: 15.04 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches