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.001793/0.001793, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001992/0.001992, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.468/1.468, allocations: 230.2 MB / 254.5 MB, free: 15.24 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="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 0.001875/0.001875, allocations: 71.88 kB / 373.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1196, allocations: 53.31 MB / 426.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004374/0.124, allocations: 2.589 MB / 429.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.1252, allocations: 0.5809 MB / 429.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.1253, allocations: 8 kB / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.1256, allocations: 75.41 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003137/0.126, allocations: 123.1 kB / 430 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.1263, allocations: 171.7 kB / 430.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005791/0.1269, allocations: 0.5069 MB / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1271, allocations: 48.66 kB / 430.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/0.1273, allocations: 231.3 kB / 431 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.1277, allocations: 255.1 kB / 431.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.99e-05/0.1278, allocations: 44 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.128, allocations: 91.98 kB / 431.3 MB, free: 388 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1281, allocations: 107.7 kB / 431.4 MB, free: 280 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000216/0.1283, allocations: 199 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2471/0.3754, allocations: 0.5027 MB / 432.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3754, allocations: 1.156 kB / 432.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3754, allocations: 0.625 kB / 432.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.3754, allocations: 0.5312 kB / 432.1 MB, free: 8.168 MB / 350.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.001298/0.3767, allocations: 0.7153 MB / 432.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3768, allocations: 9.406 kB / 432.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.26e-05/0.3769, allocations: 68 kB / 432.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.865e-05/0.377, allocations: 40.58 kB / 433 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.3774, allocations: 295.9 kB / 433.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3774, allocations: 28.78 kB / 433.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/0.3775, allocations: 32.38 kB / 433.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006952/0.3782, allocations: 376.1 kB / 433.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.3782, allocations: 9.203 kB / 433.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.554e-05/0.3783, allocations: 13.03 kB / 433.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.3783, allocations: 7.594 kB / 433.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006685/0.3789, allocations: 387.7 kB / 434.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.3807, allocations: 1.127 MB / 435.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.3813, allocations: 312.9 kB / 435.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/0.3817, allocations: 182.2 kB / 435.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.3817, allocations: 7.781 kB / 435.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.3817, allocations: 40.8 kB / 435.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.3817, allocations: 0 / 435.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004583/0.3863, allocations: 2.003 MB / 437.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.3864, allocations: 57.28 kB / 437.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.3866, allocations: 251.8 kB / 438.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.3867, allocations: 41.66 kB / 438.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.3868, allocations: 159.1 kB / 438.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.3869, allocations: 179.1 kB / 438.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3871, allocations: 93.8 kB / 438.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.139e-05/0.3871, allocations: 351.4 kB / 438.9 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/0.3875, allocations: 194.2 kB / 439.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.3879, allocations: 267.5 kB / 439.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005601/0.3885, allocations: 353.3 kB / 439.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3885, allocations: 0 / 439.7 MB, free: 4.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001122/0.3896, allocations: 0.6062 MB / 440.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3896, allocations: 8.219 kB / 440.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3896, allocations: 3 kB / 440.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007325/0.3903, allocations: 340.2 kB / 440.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002742/0.3906, allocations: 65 kB / 440.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.3917, allocations: 1.368 MB / 442 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.3921, allocations: 72.92 kB / 442.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.3922, allocations: 21.27 kB / 442.1 MB, free: 3.25 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.0002087/0.3924, allocations: 164.7 kB / 442.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.593e-05/0.3925, allocations: 35.41 kB / 442.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.3926, allocations: 54.31 kB / 442.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3926, allocations: 4.344 kB / 442.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3926, allocations: 0 / 442.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3926, allocations: 9.016 kB / 442.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.3954, allocations: 1.335 MB / 443.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.3954, allocations: 5.5 kB / 443.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002738/0.3957, allocations: 61.42 kB / 443.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005899/0.3963, allocations: 299 kB / 444.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.229e-05/0.3963, allocations: 23.02 kB / 444.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000956/0.3973, allocations: 1.314 MB / 445.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3973, allocations: 6.281 kB / 445.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.399, allocations: 0.9078 MB / 446.3 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/0.3993, allocations: 158.8 kB / 446.5 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.063e-05/0.3993, allocations: 19.48 kB / 446.5 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.3996, allocations: 39.7 kB / 446.6 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.3999, allocations: 88.98 kB / 446.6 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.5e-05/0.3999, allocations: 22.39 kB / 446.7 MB, free: 416 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.4001, allocations: 184.5 kB / 446.8 MB, free: 308 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4001, allocations: 1.5 kB / 446.8 MB, free: 308 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005209/0.4006, allocations: 100.3 kB / 446.9 MB, free: 292 kB / 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.003526/0.4042, allocations: 1.736 MB / 448.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.4054, allocations: 461.4 kB / 449.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4054, allocations: 6.938 kB / 449.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007114/0.4061, allocations: 279.7 kB / 449.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.4067, allocations: 63.98 kB / 449.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007582/0.4143, allocations: 4.057 MB / 453.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005283/0.4148, allocations: 0.7869 MB / 454.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.415, allocations: 38.03 kB / 454.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.4152, allocations: 100.2 kB / 454.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.4152, allocations: 0 / 454.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0447/0.4599, allocations: 11.92 MB / 466.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.54, allocations: 10.47 kB / 466.4 MB, free: 6.789 MB / 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.24400189705193]