Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 124.5 kB / 18.46 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 190.6 kB / 21.4 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 225.6 MB / 249.8 MB, free: 3.586 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 43.92 kB / 366.8 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1135, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003974/0.1175, allocations: 2.453 MB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1186, allocations: 0.4953 MB / 421.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.1187, allocations: 4 kB / 421.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.1189, allocations: 51.52 kB / 421.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.1191, allocations: 87.33 kB / 422 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.1196, allocations: 191.6 kB / 422.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.1201, allocations: 0.4912 MB / 422.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.1203, allocations: 43.08 kB / 422.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.1205, allocations: 211.4 kB / 422.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003567/0.1209, allocations: 247.1 kB / 423.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.742e-05/0.121, allocations: 36 kB / 423.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.1211, allocations: 91.89 kB / 423.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.1213, allocations: 99.7 kB / 423.4 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.1215, allocations: 183.2 kB / 423.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005882/0.1221, allocations: 470.2 kB / 424.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1221, allocations: 0 / 424.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1221, allocations: 0 / 424.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1221, allocations: 0 / 424.1 MB, free: 6.98 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001358/0.1234, allocations: 0.6701 MB / 424.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1235, allocations: 8.031 kB / 424.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/0.1236, allocations: 36.7 kB / 424.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.124, allocations: 296.6 kB / 425.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.124, allocations: 24.94 kB / 425.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.089e-05/0.1241, allocations: 28.38 kB / 425.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.1249, allocations: 381.2 kB / 425.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.1249, allocations: 192 / 425.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.1249, allocations: 15.94 kB / 425.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.1249, allocations: 4 kB / 425.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008488/0.1258, allocations: 409.9 kB / 425.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.1278, allocations: 1.104 MB / 427 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005484/0.1284, allocations: 276.4 kB / 427.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003835/0.1288, allocations: 185.8 kB / 427.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.1288, allocations: 4 kB / 427.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.1288, allocations: 42.5 kB / 427.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.1288, allocations: 0 / 427.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004931/0.1338, allocations: 2.037 MB / 429.5 MB, free: 1.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/0.1338, allocations: 55.41 kB / 429.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1341, allocations: 237 kB / 429.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.1341, allocations: 41.69 kB / 429.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1343, allocations: 153 kB / 430 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.1344, allocations: 158.7 kB / 430.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.1346, allocations: 102.2 kB / 430.3 MB, free: 408 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.1348, allocations: 342.8 kB / 430.6 MB, free: 56 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.1352, allocations: 213 kB / 430.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/0.1357, allocations: 280.8 kB / 431.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006801/0.1364, allocations: 381.6 kB / 431.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1364, allocations: 0 / 431.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001552/0.1379, allocations: 0.6925 MB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.138, allocations: 8 kB / 432.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.138, allocations: 0 / 432.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009268/0.1389, allocations: 493.5 kB / 432.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1392, allocations: 71.84 kB / 432.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.1406, allocations: 1.394 MB / 434.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/0.1411, allocations: 67.84 kB / 434.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.1411, allocations: 24.12 kB / 434.2 MB, free: 12.34 MB / 366.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 (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.0002502/0.1414, allocations: 162.2 kB / 434.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-05/0.1415, allocations: 31.75 kB / 434.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001326/0.1416, allocations: 47.31 kB / 434.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.1416, allocations: 4 kB / 434.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1416, allocations: 0 / 434.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1416, allocations: 3.984 kB / 434.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.1445, allocations: 1.341 MB / 435.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1445, allocations: 0 / 435.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.1448, allocations: 64.06 kB / 435.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008336/0.1456, allocations: 469.4 kB / 436.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.1457, allocations: 15.97 kB / 436.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.147, allocations: 1.339 MB / 437.7 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.147, allocations: 4.125 kB / 437.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.1489, allocations: 0.9403 MB / 438.6 MB, free: 7.754 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.1492, allocations: 156.9 kB / 438.8 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.841e-05/0.1493, allocations: 19.94 kB / 438.8 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003011/0.1496, allocations: 35.95 kB / 438.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.1498, allocations: 83.86 kB / 438.9 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.1498, allocations: 23.97 kB / 438.9 MB, free: 7.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.15, allocations: 172.5 kB / 439.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.15, allocations: 0 / 439.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004984/0.1505, allocations: 103.9 kB / 439.2 MB, free: 7.152 MB / 366.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,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002883/0.1508, allocations: 145.8 kB / 439.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.1519, allocations: 482.8 kB / 439.8 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.1519, allocations: 4 kB / 439.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006238/0.1526, allocations: 288.2 kB / 440.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005343/0.1531, allocations: 56.44 kB / 440.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.1556, allocations: 1.012 MB / 441.1 MB, free: 5.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.156, allocations: 0.78 MB / 441.9 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.1561, allocations: 35.42 kB / 442 MB, free: 4.289 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1561, allocations: 0 / 442 MB, free: 4.289 MB / 366.1 MB Notification: Performance of Templates: time 0.2044/0.3605, allocations: 6.681 MB / 448.6 MB, free: 30.79 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.852147682802752]