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.001649/0.001649, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00195/0.00195, allocations: 207.6 kB / 24.53 MB, free: 4.07 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.354/1.354, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.001778/0.001778, allocations: 60.09 kB / 378.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.232, allocations: 53.41 MB / 432 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004092/0.2361, allocations: 2.594 MB / 434.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.2372, allocations: 0.6004 MB / 435.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.2373, allocations: 0 / 435.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003165/0.2376, allocations: 71.42 kB / 435.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.2379, allocations: 143 kB / 435.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.2383, allocations: 155.8 kB / 435.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005884/0.2389, allocations: 0.5148 MB / 436 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.239, allocations: 48.91 kB / 436.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.2393, allocations: 231.3 kB / 436.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003993/0.2397, allocations: 259.2 kB / 436.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.138e-05/0.2398, allocations: 40 kB / 436.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.24, allocations: 91.97 kB / 436.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.2401, allocations: 119.6 kB / 436.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.2403, allocations: 199.1 kB / 437 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006295/0.241, allocations: 0.499 MB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.241, allocations: 0 / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.241, allocations: 4 kB / 437.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.241, allocations: 3.938 kB / 437.5 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.00135/0.2423, allocations: 0.6335 MB / 438.1 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2424, allocations: 12.03 kB / 438.2 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.121e-05/0.2424, allocations: 12.84 kB / 438.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.796e-05/0.2425, allocations: 70.66 kB / 438.2 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.699e-05/0.2426, allocations: 44.7 kB / 438.3 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00042/0.243, allocations: 229.9 kB / 438.5 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.243, allocations: 33.02 kB / 438.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.564e-05/0.2431, allocations: 28.38 kB / 438.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000759/0.2438, allocations: 378.2 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.2439, allocations: 7.953 kB / 438.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.2439, allocations: 16 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2439, allocations: 8 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008178/0.2447, allocations: 382.4 kB / 439.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/0.2468, allocations: 1.099 MB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006191/0.2474, allocations: 309.7 kB / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003867/0.2478, allocations: 180.7 kB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.2479, allocations: 8 kB / 440.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.2479, allocations: 38.56 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.913e-06/0.2479, allocations: 0 / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004664/0.2526, allocations: 1.696 MB / 442.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.2526, allocations: 59.83 kB / 442.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.2529, allocations: 257 kB / 443 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.253, allocations: 49.62 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.2531, allocations: 157 kB / 443.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.2533, allocations: 174.6 kB / 443.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.2535, allocations: 98.28 kB / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2536, allocations: 346.7 kB / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003961/0.254, allocations: 189.2 kB / 444 MB, free: 10.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.2545, allocations: 269.8 kB / 444.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006506/0.2551, allocations: 357.6 kB / 444.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.2551, allocations: 4 kB / 444.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001226/0.2563, allocations: 0.599 MB / 445.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2564, allocations: 8 kB / 445.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2564, allocations: 160 / 445.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007293/0.2571, allocations: 345.5 kB / 445.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.2574, allocations: 67.91 kB / 445.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.2588, allocations: 1.362 MB / 446.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004513/0.2592, allocations: 75.94 kB / 447 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.2592, allocations: 20 kB / 447 MB, free: 7.223 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.0002345/0.2595, allocations: 165.8 kB / 447.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.925e-05/0.2596, allocations: 39.7 kB / 447.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.2597, allocations: 47.61 kB / 447.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.2597, allocations: 8.188 kB / 447.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.2597, allocations: 0 / 447.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2597, allocations: 3.938 kB / 447.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.2625, allocations: 1.306 MB / 448.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.2625, allocations: 3.984 kB / 448.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.2628, allocations: 55.92 kB / 448.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006382/0.2634, allocations: 309.6 kB / 449 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.2635, allocations: 23.92 kB / 449 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.2648, allocations: 1.308 MB / 450.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.2648, allocations: 3.938 kB / 450.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/0.2666, allocations: 0.9101 MB / 451.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.2668, allocations: 87.67 kB / 451.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.118e-05/0.2669, allocations: 16 kB / 451.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.2672, allocations: 39.95 kB / 451.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.2674, allocations: 91.75 kB / 451.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-05/0.2674, allocations: 23.98 kB / 451.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.2676, allocations: 180.5 kB / 451.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2676, allocations: 7.938 kB / 451.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.2681, allocations: 96 kB / 451.7 MB, free: 2.336 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.00342/0.2715, allocations: 1.722 MB / 453.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.2726, allocations: 469.2 kB / 453.9 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2726, allocations: 3.938 kB / 453.9 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006248/0.2733, allocations: 280.3 kB / 454.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.2738, allocations: 60.41 kB / 454.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007012/0.2808, allocations: 4.061 MB / 458.3 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.2812, allocations: 0.784 MB / 459.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.2814, allocations: 38.95 kB / 459.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.2815, allocations: 103.4 kB / 459.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2815, allocations: 4 kB / 459.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.3197, allocations: 12.46 MB / 471.7 MB, free: 14.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.68, allocations: 10.34 kB / 471.7 MB, free: 14.32 MB / 382.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.180412469024304]