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.0008377/0.0008377, 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.0007956/0.0007956, 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.8742/0.8742, allocations: 177 MB / 204.1 MB, free: 5.742 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.974e-06/1.974e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.153e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002638/0.002659, allocations: 2.434 MB / 326.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006703/0.003329, allocations: 0.5695 MB / 327.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.00344, allocations: 7.938 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002389/0.003679, allocations: 63.38 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.003894, allocations: 147 kB / 327.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.004104, allocations: 175.6 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.004456, allocations: 0.5146 MB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.00458, allocations: 48.91 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.004824, allocations: 323.3 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.005027, allocations: 203.5 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.106e-05/0.005078, allocations: 48 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.005191, allocations: 91.91 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.005318, allocations: 115.6 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.005418, allocations: 139.7 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004349/0.005853, allocations: 0.5414 MB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.005856, allocations: 4 kB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.005857, allocations: 0 / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.005863, allocations: 0 / 329.9 MB, free: 10.48 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.0008291/0.006692, allocations: 0.6373 MB / 330.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.006729, allocations: 15.97 kB / 330.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.759e-05/0.006787, allocations: 62.73 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.651e-05/0.006854, allocations: 40.7 kB / 330.6 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.007154, allocations: 241.2 kB / 330.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.007176, allocations: 28.97 kB / 330.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/0.00722, allocations: 28.38 kB / 330.9 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.007687, allocations: 374.5 kB / 331.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.007702, allocations: 4.141 kB / 331.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.007731, allocations: 20.36 kB / 331.3 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.007739, allocations: 12.12 kB / 331.3 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.008226, allocations: 382.4 kB / 331.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.009474, allocations: 0.9988 MB / 332.7 MB, free: 7.516 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.009901, allocations: 314.9 kB / 333 MB, free: 7.195 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.01012, allocations: 176.8 kB / 333.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.01015, allocations: 8 kB / 333.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.01017, allocations: 38.56 kB / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.01017, allocations: 0 / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002771/0.01294, allocations: 1.706 MB / 334.9 MB, free: 5.195 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.01297, allocations: 55.91 kB / 335 MB, free: 5.129 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.01316, allocations: 257.9 kB / 335.3 MB, free: 4.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.01319, allocations: 41.7 kB / 335.3 MB, free: 4.824 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.611e-05/0.01327, allocations: 157 kB / 335.4 MB, free: 4.664 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.01349, allocations: 174.6 kB / 335.6 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.0136, allocations: 98.28 kB / 335.7 MB, free: 4.391 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.697e-05/0.01368, allocations: 346.8 kB / 336.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.01393, allocations: 185.2 kB / 336.2 MB, free: 3.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.0142, allocations: 273.8 kB / 336.5 MB, free: 3.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.01459, allocations: 354.6 kB / 336.8 MB, free: 3.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.0146, allocations: 8 kB / 336.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007373/0.01533, allocations: 0.612 MB / 337.5 MB, free: 2.566 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.01535, allocations: 7.281 kB / 337.5 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.01536, allocations: 4 kB / 337.5 MB, free: 2.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/0.01583, allocations: 337.7 kB / 337.8 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.01598, allocations: 79.84 kB / 337.9 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.01716, allocations: 1.358 MB / 339.2 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.01738, allocations: 67.91 kB / 339.3 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.01741, allocations: 16 kB / 339.3 MB, free: 0.6484 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.0001537/0.01756, allocations: 166.5 kB / 339.5 MB, free: 488 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/0.01761, allocations: 31.81 kB / 339.5 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.612e-05/0.01768, allocations: 55.56 kB / 339.6 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01768, allocations: 7.984 kB / 339.6 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.01769, allocations: 0 / 339.6 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.0177, allocations: 0 / 339.6 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.01936, allocations: 1.246 MB / 340.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.01936, allocations: 0 / 340.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.01952, allocations: 59.97 kB / 340.9 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000365/0.01988, allocations: 313.6 kB / 341.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.01991, allocations: 20.17 kB / 341.2 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007984/0.02071, allocations: 1.319 MB / 342.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.02071, allocations: 4.031 kB / 342.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.02192, allocations: 0.9003 MB / 343.4 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.02205, allocations: 87.72 kB / 343.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.629e-05/0.02212, allocations: 16 kB / 343.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.02228, allocations: 44.02 kB / 343.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.02245, allocations: 91.75 kB / 343.7 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.02248, allocations: 23.98 kB / 343.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001558/0.02264, allocations: 181.2 kB / 343.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02264, allocations: 0 / 343.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003415/0.02298, allocations: 100 kB / 344 MB, free: 11.83 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.001992/0.02497, allocations: 1.731 MB / 345.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007103/0.02568, allocations: 466 kB / 346.2 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.02568, allocations: 0 / 346.2 MB, free: 9.719 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007051/0.02639, allocations: 280.3 kB / 346.4 MB, free: 9.445 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.02674, allocations: 77.36 kB / 346.5 MB, free: 9.371 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.03114, allocations: 3.967 MB / 350.5 MB, free: 5.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.03127, allocations: 189.6 kB / 350.7 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.03138, allocations: 34.97 kB / 350.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.03151, allocations: 104.5 kB / 350.8 MB, free: 4.887 MB / 314.7 MB Notification: Performance of SimCode: time 8.21e-07/0.03151, allocations: 0 / 350.8 MB, free: 4.887 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.05622, allocations: 11.44 MB / 362.2 MB, free: 9.512 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/7.843, allocations: 4.062 kB / 362.2 MB, free: 9.508 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.511667189188302]