Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008368/0.0008368, allocations: 83.64 kB / 21.43 MB, free: 3.133 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.004088/0.004088, allocations: 162.5 kB / 24.69 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8509/0.8509, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 3.938 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.64e-05/1.827e-05, allocations: 6.219 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002472/0.002491, allocations: 2.272 MB / 300.7 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007754/0.003266, allocations: 0.4961 MB / 301.2 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.003367, allocations: 7.938 kB / 301.2 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.003548, allocations: 51.55 kB / 301.3 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.003705, allocations: 83.22 kB / 301.3 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004795/0.004185, allocations: 207.5 kB / 301.5 MB, free: 392 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1156/0.1198, allocations: 498 kB / 302 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.12, allocations: 46.61 kB / 302.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003745/0.1204, allocations: 295.3 kB / 302.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.1206, allocations: 201.6 kB / 302.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.152e-05/0.1207, allocations: 38.22 kB / 302.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.1208, allocations: 83.72 kB / 302.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.384e-05/0.1209, allocations: 99.25 kB / 302.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.121, allocations: 135.9 kB / 302.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.1215, allocations: 0.4991 MB / 303.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1215, allocations: 0 / 303.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1215, allocations: 2.156 kB / 303.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1215, allocations: 0 / 303.4 MB, free: 13.18 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0008009/0.1223, allocations: 0.5902 MB / 304 MB, free: 12.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1223, allocations: 14 kB / 304 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.527e-05/0.1224, allocations: 68.33 kB / 304.1 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.1225, allocations: 40.45 kB / 304.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.1227, allocations: 222.9 kB / 304.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.1228, allocations: 21.38 kB / 304.4 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.1228, allocations: 36.12 kB / 304.4 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.1233, allocations: 376.4 kB / 304.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1233, allocations: 3.297 kB / 304.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1233, allocations: 11.97 kB / 304.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.1233, allocations: 10.75 kB / 304.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004818/0.1238, allocations: 402.5 kB / 305.2 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.125, allocations: 0.9904 MB / 306.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.1253, allocations: 279.9 kB / 306.4 MB, free: 11.81 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.1255, allocations: 186.2 kB / 306.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.1256, allocations: 6.562 kB / 306.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.1256, allocations: 41.09 kB / 306.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 1.733e-06/0.1256, allocations: 3.375 kB / 306.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.002625/0.1282, allocations: 1.742 MB / 308.4 MB, free: 10.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.369e-05/0.1282, allocations: 55.31 kB / 308.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.1284, allocations: 243 kB / 308.7 MB, free: 10.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.1284, allocations: 39.89 kB / 308.7 MB, free: 10.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.1285, allocations: 151.6 kB / 308.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.672e-05/0.1286, allocations: 160.1 kB / 309 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1287, allocations: 100.3 kB / 309.1 MB, free: 10.37 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/0.1287, allocations: 342 kB / 309.5 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.129, allocations: 207.7 kB / 309.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.1292, allocations: 283.4 kB / 310 MB, free: 9.816 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.1296, allocations: 382.1 kB / 310.3 MB, free: 9.633 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1297, allocations: 5.125 kB / 310.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008323/0.1305, allocations: 0.6923 MB / 311 MB, free: 9.363 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1305, allocations: 9.812 kB / 311 MB, free: 9.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.1305, allocations: 2.281 kB / 311 MB, free: 9.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005617/0.1311, allocations: 497.8 kB / 311.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.1312, allocations: 73.83 kB / 311.6 MB, free: 9.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006417/0.1319, allocations: 1.387 MB / 313 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.1321, allocations: 65.5 kB / 313.1 MB, free: 8.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.1321, allocations: 19.72 kB / 313.1 MB, free: 8.039 MB / 282.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 (49): * Single equations (assignments): 47 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1322, allocations: 165 kB / 313.2 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.1322, allocations: 36.47 kB / 313.3 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.173e-05/0.1323, allocations: 51.61 kB / 313.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1323, allocations: 4.125 kB / 313.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1323, allocations: 1.938 kB / 313.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1323, allocations: 2.484 kB / 313.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1338, allocations: 1.256 MB / 314.6 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1338, allocations: 1.344 kB / 314.6 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.134, allocations: 58.94 kB / 314.6 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004639/0.1344, allocations: 464.2 kB / 315.1 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.1345, allocations: 15.75 kB / 315.1 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000538/0.135, allocations: 1.34 MB / 316.4 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.135, allocations: 3.016 kB / 316.5 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.1361, allocations: 0.9419 MB / 317.4 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.1362, allocations: 81.23 kB / 317.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.1362, allocations: 15.33 kB / 317.5 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.1364, allocations: 43.67 kB / 317.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.1365, allocations: 90.36 kB / 317.6 MB, free: 5.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.1365, allocations: 25.16 kB / 317.6 MB, free: 5.406 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001028/0.1366, allocations: 175.8 kB / 317.8 MB, free: 5.297 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1366, allocations: 0 / 317.8 MB, free: 5.297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003177/0.137, allocations: 105.2 kB / 317.9 MB, free: 5.281 MB / 282.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001254/0.1382, allocations: 1.516 MB / 319.4 MB, free: 4.281 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006836/0.1389, allocations: 489.8 kB / 319.9 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1389, allocations: 0 / 319.9 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003716/0.1393, allocations: 291 kB / 320.2 MB, free: 4.031 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.1396, allocations: 46.09 kB / 320.2 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.1434, allocations: 4.024 MB / 324.3 MB, free: 1.566 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.1435, allocations: 169.9 kB / 324.4 MB, free: 1.488 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.266e-05/0.1436, allocations: 41.41 kB / 324.5 MB, free: 1.469 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.1437, allocations: 92.14 kB / 324.6 MB, free: 1.406 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1437, allocations: 1.156 kB / 324.6 MB, free: 1.406 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.1655, allocations: 11.02 MB / 335.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/7.999, allocations: 3.938 kB / 335.6 MB, free: 8.547 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.55558615643531]