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.0008141/0.0008141, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008867/0.0008867, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8821/0.8821, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.736e-05, allocations: 2.281 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003513/0.003541, allocations: 2.44 MB / 326.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009535/0.004494, allocations: 0.5656 MB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.004621, allocations: 7.938 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.004917, allocations: 67.42 kB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.00524, allocations: 146.9 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.005577, allocations: 167.7 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.006089, allocations: 0.5185 MB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.006273, allocations: 48.91 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003259/0.006599, allocations: 315.3 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.006852, allocations: 215.5 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.006911, allocations: 44 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.007056, allocations: 91.92 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.007186, allocations: 115.6 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.007297, allocations: 139.7 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004891/0.007786, allocations: 0.5414 MB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.007789, allocations: 0 / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.00779, allocations: 0 / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.007798, allocations: 0 / 329.9 MB, free: 10.5 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.0008779/0.008676, allocations: 0.6335 MB / 330.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.008718, allocations: 19.92 kB / 330.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.534e-05/0.008783, allocations: 66.72 kB / 330.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.008853, allocations: 40.7 kB / 330.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.00918, allocations: 237.2 kB / 330.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.009209, allocations: 29.03 kB / 330.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.394e-05/0.009262, allocations: 32.31 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.009768, allocations: 370.5 kB / 331.3 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.009786, allocations: 8.141 kB / 331.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.009815, allocations: 12.38 kB / 331.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.009825, allocations: 12.12 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005277/0.01035, allocations: 378.4 kB / 331.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.01174, allocations: 1.007 MB / 332.7 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/0.01215, allocations: 307 kB / 333 MB, free: 7.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.01238, allocations: 188.7 kB / 333.2 MB, free: 7.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.01241, allocations: 8 kB / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.01244, allocations: 38.56 kB / 333.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.285e-06/0.01244, allocations: 0 / 333.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003262/0.0157, allocations: 1.702 MB / 334.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.01575, allocations: 63.84 kB / 335 MB, free: 5.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.01598, allocations: 257.9 kB / 335.3 MB, free: 4.891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.01602, allocations: 41.69 kB / 335.3 MB, free: 4.844 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-05/0.01612, allocations: 153.1 kB / 335.4 MB, free: 4.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.01622, allocations: 174.6 kB / 335.6 MB, free: 4.516 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.01634, allocations: 98.28 kB / 335.7 MB, free: 4.414 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.01644, allocations: 346.8 kB / 336.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.01672, allocations: 189.2 kB / 336.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002867/0.017, allocations: 277.8 kB / 336.5 MB, free: 3.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004292/0.01743, allocations: 350.6 kB / 336.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01744, allocations: 4 kB / 336.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007949/0.01823, allocations: 0.6082 MB / 337.5 MB, free: 2.594 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.01825, allocations: 8 kB / 337.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.01826, allocations: 0 / 337.5 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005296/0.01879, allocations: 333.7 kB / 337.8 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.01896, allocations: 79.83 kB / 337.9 MB, free: 2.176 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.02, allocations: 1.358 MB / 339.2 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002566/0.02025, allocations: 63.95 kB / 339.3 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.02028, allocations: 24.03 kB / 339.3 MB, free: 0.6758 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 (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.0001809/0.02046, allocations: 166.5 kB / 339.5 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.02052, allocations: 35.98 kB / 339.5 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.871e-05/0.02058, allocations: 55.56 kB / 339.6 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.02059, allocations: 7.938 kB / 339.6 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.0206, allocations: 0 / 339.6 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.0206, allocations: 3.984 kB / 339.6 MB, free: 412 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.02231, allocations: 1.246 MB / 340.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.02231, allocations: 0 / 340.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.02247, allocations: 59.97 kB / 340.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.02287, allocations: 309.7 kB / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.0229, allocations: 15.98 kB / 341.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008238/0.02372, allocations: 1.323 MB / 342.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.02373, allocations: 0 / 342.5 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.02481, allocations: 0.9081 MB / 343.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.02494, allocations: 87.72 kB / 343.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.02499, allocations: 16 kB / 343.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.02514, allocations: 40.02 kB / 343.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.02528, allocations: 95.75 kB / 343.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.0253, allocations: 19.98 kB / 343.7 MB, free: 12.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001374/0.02544, allocations: 177.2 kB / 343.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.02544, allocations: 0 / 343.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003286/0.02577, allocations: 104 kB / 344 MB, free: 11.85 MB / 314.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 (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.001892/0.02766, allocations: 1.737 MB / 345.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007332/0.0284, allocations: 458.1 kB / 346.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.0284, allocations: 0 / 346.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.02877, allocations: 292.2 kB / 346.4 MB, free: 9.461 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.02915, allocations: 65.34 kB / 346.5 MB, free: 9.398 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004821/0.03397, allocations: 3.971 MB / 350.5 MB, free: 5.254 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.0341, allocations: 185.6 kB / 350.7 MB, free: 5.051 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.03422, allocations: 34.97 kB / 350.7 MB, free: 5.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.03436, allocations: 108.5 kB / 350.8 MB, free: 4.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.903e-06/0.03436, allocations: 0 / 350.8 MB, free: 4.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.06127, allocations: 11.44 MB / 362.2 MB, free: 9.543 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.185, allocations: 3.938 kB / 362.2 MB, free: 9.539 MB / 330.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable brake.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.mode in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.mode from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startBackward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startBackward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! Error: Could not read variable brake1.startForward in file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv. Warning: Get data of variable brake1.startForward from file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,mass1.s,mass1.v,mass2.s,mass2.v,brake.mode,brake.startBackward,brake.startForward,brake1.mode,brake1.startBackward,brake1.startForward Variables in the result:time,mass1.s,mass1.v,mass2.s,mass2.v [Calling sys.exit(0), Time elapsed: 9.987768757157028]