Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008256/0.0008256, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008562/0.0008562, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8819/0.8819, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.992e-05/2.147e-05, allocations: 4.953 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002662/0.002683, allocations: 2.431 MB / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008874/0.003571, allocations: 0.581 MB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.003679, allocations: 4 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.003927, allocations: 59.44 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.004168, allocations: 142.9 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.004405, allocations: 179.6 kB / 327.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.004739, allocations: 0.5185 MB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.004871, allocations: 53.48 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.005119, allocations: 315.4 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.005326, allocations: 203.5 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.203e-05/0.005378, allocations: 40 kB / 329.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.005497, allocations: 95.91 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.005607, allocations: 119.6 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.00571, allocations: 139.7 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.006413, allocations: 0.5452 MB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.006421, allocations: 3.984 kB / 330 MB, free: 10.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.006423, allocations: 0 / 330 MB, free: 10.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.006431, allocations: 0 / 330 MB, free: 10.51 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.001023/0.007454, allocations: 0.6403 MB / 330.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.007506, allocations: 12.03 kB / 330.6 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.74e-05/0.007573, allocations: 62.72 kB / 330.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.004e-05/0.007653, allocations: 40.7 kB / 330.7 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.008033, allocations: 241.1 kB / 330.9 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.008066, allocations: 25.03 kB / 331 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/0.008131, allocations: 32.38 kB / 331 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.00863, allocations: 374.5 kB / 331.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.00865, allocations: 12.12 kB / 331.4 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.008677, allocations: 8.375 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.008686, allocations: 12.12 kB / 331.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.009264, allocations: 386.3 kB / 331.8 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.01056, allocations: 0.9989 MB / 332.8 MB, free: 7.555 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.01098, allocations: 317.4 kB / 333.1 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.01119, allocations: 176.8 kB / 333.3 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.01123, allocations: 4 kB / 333.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.01125, allocations: 38.55 kB / 333.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.773e-06/0.01125, allocations: 0 / 333.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002789/0.01404, allocations: 1.716 MB / 335 MB, free: 5.227 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.01408, allocations: 59.91 kB / 335.1 MB, free: 5.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.01429, allocations: 253.9 kB / 335.3 MB, free: 4.902 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.01432, allocations: 41.7 kB / 335.4 MB, free: 4.855 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.0144, allocations: 153.1 kB / 335.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.348e-05/0.01449, allocations: 178.5 kB / 335.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.01461, allocations: 94.3 kB / 335.8 MB, free: 4.426 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.01471, allocations: 342.8 kB / 336.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.01495, allocations: 189.2 kB / 336.3 MB, free: 3.898 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.01522, allocations: 273.8 kB / 336.6 MB, free: 3.602 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.01561, allocations: 350.6 kB / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01561, allocations: 0 / 336.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007678/0.01638, allocations: 0.6161 MB / 337.5 MB, free: 2.605 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.0164, allocations: 8 kB / 337.5 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.01641, allocations: 0 / 337.5 MB, free: 2.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00053/0.01694, allocations: 345.5 kB / 337.9 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.01711, allocations: 67.91 kB / 337.9 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008854/0.01799, allocations: 1.366 MB / 339.3 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.01822, allocations: 72.06 kB / 339.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.01824, allocations: 20 kB / 339.4 MB, free: 0.668 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.0001473/0.01839, allocations: 162.5 kB / 339.5 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.796e-05/0.01844, allocations: 31.81 kB / 339.6 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.668e-05/0.0185, allocations: 63.48 kB / 339.6 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.01851, allocations: 8 kB / 339.6 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.01852, allocations: 0 / 339.6 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01852, allocations: 0 / 339.6 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.02012, allocations: 1.24 MB / 340.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.02012, allocations: 0 / 340.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.02027, allocations: 63.91 kB / 340.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003755/0.02065, allocations: 309.7 kB / 341.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.02068, allocations: 15.98 kB / 341.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007774/0.02145, allocations: 1.319 MB / 342.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.02146, allocations: 3.938 kB / 342.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.02252, allocations: 0.897 MB / 343.5 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.02264, allocations: 75.73 kB / 343.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.02269, allocations: 23.98 kB / 343.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.02284, allocations: 31.97 kB / 343.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.02298, allocations: 99.69 kB / 343.7 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.023, allocations: 23.98 kB / 343.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.02312, allocations: 189.1 kB / 343.9 MB, free: 11.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02312, allocations: 0 / 343.9 MB, free: 11.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003116/0.02343, allocations: 96 kB / 344 MB, free: 11.86 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.00184/0.02527, allocations: 1.748 MB / 345.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006983/0.02597, allocations: 466.1 kB / 346.2 MB, free: 9.766 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.02598, allocations: 4 kB / 346.2 MB, free: 9.762 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.02634, allocations: 279.6 kB / 346.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.02671, allocations: 76.34 kB / 346.6 MB, free: 9.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004203/0.03092, allocations: 3.97 MB / 350.5 MB, free: 5.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.03104, allocations: 189.6 kB / 350.7 MB, free: 5.078 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.03115, allocations: 30.97 kB / 350.8 MB, free: 5.047 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.03127, allocations: 104.5 kB / 350.9 MB, free: 4.945 MB / 314.7 MB Notification: Performance of SimCode: time 7.32e-07/0.03127, allocations: 4 kB / 350.9 MB, free: 4.941 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.05523, allocations: 11.45 MB / 362.3 MB, free: 9.582 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.471, allocations: 10.31 kB / 362.3 MB, free: 9.574 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.147323437966406]