Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001537/0.001537, allocations: 109.1 kB / 21.22 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 209.3 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.91 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2376, allocations: 53.4 MB / 431.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003769/0.2413, allocations: 2.426 MB / 434.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2423, allocations: 0.5771 MB / 434.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2425, allocations: 4 kB / 434.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.2427, allocations: 67.44 kB / 435 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.243, allocations: 135 kB / 435.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.2433, allocations: 175.8 kB / 435.3 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005143/0.2438, allocations: 0.507 MB / 435.8 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.244, allocations: 47.03 kB / 435.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.2442, allocations: 239.3 kB / 436 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003325/0.2446, allocations: 251.2 kB / 436.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.905e-05/0.2446, allocations: 43.94 kB / 436.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.2448, allocations: 103.9 kB / 436.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.245, allocations: 111.7 kB / 436.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.2451, allocations: 163.3 kB / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005724/0.2457, allocations: 0.5099 MB / 437.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2457, allocations: 4 kB / 437.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2457, allocations: 3.938 kB / 437.2 MB, free: 1.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.2457, allocations: 0 / 437.2 MB, free: 1.145 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001295/0.247, allocations: 0.6336 MB / 437.9 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.247, allocations: 11.97 kB / 437.9 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.929e-05/0.2471, allocations: 8.844 kB / 437.9 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.188e-05/0.2471, allocations: 70.72 kB / 437.9 MB, free: 388 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.538e-05/0.2472, allocations: 36.7 kB / 438 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.2477, allocations: 237.9 kB / 438.2 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.2477, allocations: 25.03 kB / 438.2 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.753e-05/0.2478, allocations: 28.38 kB / 438.3 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000753/0.2485, allocations: 386.2 kB / 438.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2486, allocations: 3.953 kB / 438.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.479e-05/0.2486, allocations: 16 kB / 438.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.2486, allocations: 8 kB / 438.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008161/0.2494, allocations: 382.4 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.2515, allocations: 1.017 MB / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006224/0.2521, allocations: 318 kB / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.2524, allocations: 180.8 kB / 440.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.2525, allocations: 4 kB / 440.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.2525, allocations: 38.56 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.2525, allocations: 0 / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004525/0.257, allocations: 1.704 MB / 442.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.2571, allocations: 55.84 kB / 442.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.2574, allocations: 261 kB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.2574, allocations: 45.69 kB / 442.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2575, allocations: 157 kB / 442.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.2577, allocations: 170.6 kB / 443 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.2579, allocations: 98.22 kB / 443.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.258, allocations: 350.7 kB / 443.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.2584, allocations: 185.2 kB / 443.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.2589, allocations: 273.8 kB / 443.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.2595, allocations: 353.6 kB / 444.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2595, allocations: 0 / 444.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001233/0.2607, allocations: 0.6068 MB / 444.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.2607, allocations: 4 kB / 444.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2608, allocations: 4 kB / 444.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007367/0.2615, allocations: 341.6 kB / 445.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.2618, allocations: 71.91 kB / 445.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.2631, allocations: 1.362 MB / 446.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/0.2635, allocations: 75.97 kB / 446.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.416e-05/0.2636, allocations: 16 kB / 446.7 MB, free: 7.309 MB / 350.1 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 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002271/0.2638, allocations: 161.8 kB / 446.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-05/0.2639, allocations: 39.7 kB / 446.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.264, allocations: 55.61 kB / 446.9 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.264, allocations: 11.94 kB / 446.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2641, allocations: 0 / 446.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.2641, allocations: 0 / 446.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.2668, allocations: 1.228 MB / 448.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.2668, allocations: 4 kB / 448.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.2671, allocations: 64.08 kB / 448.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006062/0.2677, allocations: 309.5 kB / 448.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.364e-05/0.2678, allocations: 19.92 kB / 448.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.2691, allocations: 1.308 MB / 449.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.2691, allocations: 7.969 kB / 449.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/0.2708, allocations: 0.91 MB / 450.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.271, allocations: 87.67 kB / 450.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.2711, allocations: 16 kB / 450.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/0.2715, allocations: 39.95 kB / 450.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.2717, allocations: 103.7 kB / 451 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.2717, allocations: 19.98 kB / 451 MB, free: 2.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002141/0.2719, allocations: 184.5 kB / 451.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2719, allocations: 0 / 451.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.2724, allocations: 96 kB / 451.3 MB, free: 2.484 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003465/0.2759, allocations: 1.734 MB / 453 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.277, allocations: 473.2 kB / 453.5 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.277, allocations: 0 / 453.5 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006242/0.2776, allocations: 283.6 kB / 453.8 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.2782, allocations: 61.22 kB / 453.8 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/0.285, allocations: 4.057 MB / 457.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/0.2852, allocations: 177.8 kB / 458.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.2854, allocations: 38.95 kB / 458.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.2855, allocations: 111.4 kB / 458.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2855, allocations: 0 / 458.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.3213, allocations: 11.08 MB / 469.3 MB, free: 492 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.88, allocations: 0 / 469.3 MB, free: 492 kB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.365824541077018]