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.001454/0.001454, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001734/0.001734, allocations: 166.7 kB / 24.99 MB, free: 8.789 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.9935/0.9935, allocations: 177.1 MB / 205.3 MB, free: 5.609 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: 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.1.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.1.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.355e-05/2.528e-05, allocations: 2.312 kB / 273 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003684/0.003709, allocations: 2.569 MB / 275.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.004809, allocations: 0.5733 MB / 276.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.004946, allocations: 7.938 kB / 276.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.005264, allocations: 71.38 kB / 276.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.005593, allocations: 135 kB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.00593, allocations: 171.7 kB / 276.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005501/0.006481, allocations: 0.5185 MB / 277.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.00666, allocations: 48.91 kB / 277.1 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003788/0.007038, allocations: 319.3 kB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003181/0.007357, allocations: 211.5 kB / 277.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.007432, allocations: 40 kB / 277.7 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.007609, allocations: 95.91 kB / 277.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.007771, allocations: 115.6 kB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.007931, allocations: 139.7 kB / 278 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005213/0.008452, allocations: 406.6 kB / 278.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.008457, allocations: 0 / 278.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.008458, allocations: 0 / 278.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.008464, allocations: 3.938 kB / 278.4 MB, free: 12.43 MB / 266.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.001206/0.00967, allocations: 0.7217 MB / 279.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.009709, allocations: 8.031 kB / 279.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.009864, allocations: 64.7 kB / 279.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.01028, allocations: 260.6 kB / 279.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.01032, allocations: 21.03 kB / 279.5 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.317e-05/0.0104, allocations: 32.38 kB / 279.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/0.01107, allocations: 298.5 kB / 279.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.01109, allocations: 12.14 kB / 279.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.01113, allocations: 8.375 kB / 279.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.01115, allocations: 8.375 kB / 279.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005756/0.01172, allocations: 251.6 kB / 280.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.01345, allocations: 0.9438 MB / 281 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.01394, allocations: 238 kB / 281.3 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.0142, allocations: 123.6 kB / 281.4 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.01424, allocations: 8 kB / 281.4 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.01427, allocations: 37.39 kB / 281.4 MB, free: 9.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.655e-06/0.01427, allocations: 0 / 281.4 MB, free: 9.254 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003642/0.01792, allocations: 1.408 MB / 282.8 MB, free: 7.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.01795, allocations: 59.91 kB / 282.9 MB, free: 7.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.01821, allocations: 276.3 kB / 283.2 MB, free: 7.418 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.01826, allocations: 45.69 kB / 283.2 MB, free: 7.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.01837, allocations: 203.7 kB / 283.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.0185, allocations: 170.6 kB / 283.6 MB, free: 6.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.01866, allocations: 103.9 kB / 283.7 MB, free: 6.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.01882, allocations: 0.5118 MB / 284.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.01911, allocations: 121.2 kB / 284.3 MB, free: 6.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.01944, allocations: 220.5 kB / 284.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004575/0.0199, allocations: 281.3 kB / 284.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.0199, allocations: 0 / 284.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009516/0.02085, allocations: 484.5 kB / 285.3 MB, free: 5.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.02087, allocations: 12.09 kB / 285.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.02088, allocations: 4 kB / 285.3 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006185/0.0215, allocations: 275.2 kB / 285.6 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.02174, allocations: 71.84 kB / 285.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.02294, allocations: 1.752 MB / 287.4 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.02321, allocations: 52 kB / 287.4 MB, free: 2.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-05/0.02328, allocations: 20 kB / 287.5 MB, free: 2.949 MB / 266.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.0001601/0.02344, allocations: 184.5 kB / 287.6 MB, free: 2.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.02354, allocations: 47.81 kB / 287.7 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.182e-05/0.02362, allocations: 51.61 kB / 287.7 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.02363, allocations: 4 kB / 287.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.02364, allocations: 7.938 kB / 287.7 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.02364, allocations: 3.984 kB / 287.7 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.02559, allocations: 1.078 MB / 288.8 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.02559, allocations: 3.938 kB / 288.8 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.02581, allocations: 64.03 kB / 288.9 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004123/0.02623, allocations: 263.3 kB / 289.1 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.02625, allocations: 19.98 kB / 289.2 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007603/0.02701, allocations: 1.737 MB / 290.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.02701, allocations: 0 / 290.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008707/0.02789, allocations: 0.776 MB / 291.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.02799, allocations: 79.69 kB / 291.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.32e-05/0.02805, allocations: 16 kB / 291.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.02819, allocations: 35.91 kB / 291.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.02832, allocations: 91.81 kB / 291.9 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.02835, allocations: 23.98 kB / 291.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001076/0.02846, allocations: 193.1 kB / 292.1 MB, free: 14.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02846, allocations: 4 kB / 292.1 MB, free: 14.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.02874, allocations: 96 kB / 292.2 MB, free: 13.99 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007361/0.02948, allocations: 386.5 kB / 292.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.03004, allocations: 377.2 kB / 293 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.03004, allocations: 0 / 293 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.03031, allocations: 222.6 kB / 293.2 MB, free: 13.13 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.03065, allocations: 103.6 kB / 293.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.03197, allocations: 0.8918 MB / 294.2 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.042e-05/0.03203, allocations: 97.28 kB / 294.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.204e-05/0.03212, allocations: 42.95 kB / 294.3 MB, free: 11.93 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/0.03219, allocations: 36.48 kB / 294.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of SimCode: time 8.31e-07/0.0322, allocations: 0 / 294.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of Templates: time 0.008828/0.04102, allocations: 7.436 MB / 301.8 MB, free: 4.527 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0066271079704165]