Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009161/0.0009161, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.183/1.183, allocations: 226.5 MB / 244.7 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007727/0.0007731, allocations: 105.3 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002197/0.0002198, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2192, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.001931/0.2212, allocations: 2.163 MB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006458/0.2218, allocations: 0.5415 MB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.222, allocations: 4 kB / 410.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.2222, allocations: 59.61 kB / 410.9 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.2224, allocations: 114.5 kB / 411 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.2226, allocations: 117 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.2229, allocations: 443.1 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.223, allocations: 64.86 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.2232, allocations: 199.3 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.2234, allocations: 219.2 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.146e-05/0.2234, allocations: 20 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.2236, allocations: 75.91 kB / 412.1 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.2237, allocations: 90.11 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.2238, allocations: 188.9 kB / 412.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.2241, allocations: 356.4 kB / 412.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2241, allocations: 0 / 412.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.2241, allocations: 3.984 kB / 412.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2241, allocations: 0 / 412.7 MB, free: 23.07 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009766/0.2251, allocations: 0.6589 MB / 413.4 MB, free: 22.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.2251, allocations: 8.031 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.2252, allocations: 74.66 kB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.2253, allocations: 40.47 kB / 413.5 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.2255, allocations: 283.7 kB / 413.8 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.2256, allocations: 25.03 kB / 413.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/0.2256, allocations: 32.28 kB / 413.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.2262, allocations: 378.4 kB / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2262, allocations: 3.938 kB / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.2263, allocations: 16 kB / 414.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2263, allocations: 4 kB / 414.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.2269, allocations: 378.4 kB / 414.6 MB, free: 21.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.2284, allocations: 1.147 MB / 415.8 MB, free: 19.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004536/0.2289, allocations: 318.7 kB / 416.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.2292, allocations: 196.7 kB / 416.3 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.2293, allocations: 4.719 kB / 416.3 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.301e-05/0.2293, allocations: 38.55 kB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.753e-06/0.2293, allocations: 0 / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00366/0.2329, allocations: 2.045 MB / 418.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.233, allocations: 59.84 kB / 418.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.2332, allocations: 260.8 kB / 418.7 MB, free: 16.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.2332, allocations: 41.7 kB / 418.7 MB, free: 16.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.289e-05/0.2333, allocations: 152.8 kB / 418.9 MB, free: 16.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.2334, allocations: 161.8 kB / 419 MB, free: 16.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.2334, allocations: 12 kB / 419 MB, free: 16.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.725e-05/0.2335, allocations: 346.7 kB / 419.4 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.2338, allocations: 181 kB / 419.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.2341, allocations: 264.8 kB / 419.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004656/0.2346, allocations: 353.6 kB / 420.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2346, allocations: 0 / 420.1 MB, free: 15.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008936/0.2355, allocations: 0.5988 MB / 420.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.2355, allocations: 4 kB / 420.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2355, allocations: 4 kB / 420.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005188/0.236, allocations: 297.7 kB / 421 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.2363, allocations: 67.91 kB / 421.1 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008728/0.2371, allocations: 1.347 MB / 422.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.2376, allocations: 100 kB / 422.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.2376, allocations: 16 kB / 422.6 MB, free: 12.73 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 (47): * Single equations (assignments): 45 * 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 9,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001497/0.2378, allocations: 165.7 kB / 422.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.2378, allocations: 43.47 kB / 422.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.903e-05/0.2379, allocations: 51.61 kB / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.2379, allocations: 8.031 kB / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.238, allocations: 0 / 422.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.238, allocations: 7.984 kB / 422.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.2401, allocations: 1.354 MB / 424.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.2401, allocations: 4 kB / 424.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.2403, allocations: 63.91 kB / 424.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000412/0.2407, allocations: 257.7 kB / 424.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.2408, allocations: 24.09 kB / 424.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007692/0.2416, allocations: 1.304 MB / 425.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2416, allocations: 8.094 kB / 425.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.2428, allocations: 0.8852 MB / 426.7 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.243, allocations: 152.7 kB / 426.9 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.399e-05/0.243, allocations: 20 kB / 426.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.2433, allocations: 51.95 kB / 426.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.2435, allocations: 111.6 kB / 427.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.2436, allocations: 23.97 kB / 427.1 MB, free: 8.016 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001198/0.2437, allocations: 180.5 kB / 427.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.2437, allocations: 4 kB / 427.3 MB, free: 7.836 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003577/0.2441, allocations: 107.9 kB / 427.4 MB, free: 7.73 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 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002012/0.2461, allocations: 1.692 MB / 429.1 MB, free: 6.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008808/0.247, allocations: 493.6 kB / 429.5 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.247, allocations: 0 / 429.5 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004533/0.2474, allocations: 276 kB / 429.8 MB, free: 5.367 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.2479, allocations: 64.84 kB / 429.9 MB, free: 5.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.2517, allocations: 2.683 MB / 432.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.2519, allocations: 0.792 MB / 433.3 MB, free: 1.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.252, allocations: 103.4 kB / 433.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.252, allocations: 3.938 kB / 433.5 MB, free: 1.602 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.581/3.833, allocations: 7.63 MB / 441.1 MB, free: 9.961 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches