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.001848/0.001848, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 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.002371/0.002371, allocations: 204.7 kB / 25.23 MB, free: 3.551 MB / 14.72 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 1.574/1.574, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] 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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 51.92 kB / 348.4 MB, free: 9.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4079/0.4098, allocations: 49.17 MB / 397.6 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004359/0.4141, allocations: 2.436 MB / 400 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.4152, allocations: 0.5058 MB / 400.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.4154, allocations: 6.594 kB / 400.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002524/0.4156, allocations: 44.2 kB / 400.6 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.4158, allocations: 81.61 kB / 400.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.4164, allocations: 199.7 kB / 400.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006387/0.417, allocations: 498.9 kB / 401.4 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.4172, allocations: 61.61 kB / 401.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002912/0.4175, allocations: 217.7 kB / 401.6 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.4179, allocations: 239.5 kB / 401.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-05/0.418, allocations: 37.94 kB / 401.9 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.4182, allocations: 90.45 kB / 402 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.4184, allocations: 100.1 kB / 402.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.4186, allocations: 178.7 kB / 402.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008349/0.4194, allocations: 478.1 kB / 402.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4194, allocations: 0 / 402.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4194, allocations: 1.375 kB / 402.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.4194, allocations: 0 / 402.7 MB, free: 6.414 MB / 318.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.001385/0.4208, allocations: 0.5915 MB / 403.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/0.4209, allocations: 9.062 kB / 403.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/0.421, allocations: 38.55 kB / 403.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.4216, allocations: 224.3 kB / 403.6 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.993e-05/0.4216, allocations: 32.73 kB / 403.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.034e-05/0.4217, allocations: 31.66 kB / 403.6 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009473/0.4227, allocations: 386.4 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.4227, allocations: 1.25 kB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.4227, allocations: 14.59 kB / 404 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4227, allocations: 7.141 kB / 404 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008968/0.4236, allocations: 402.9 kB / 404.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.4261, allocations: 1.063 MB / 405.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.4267, allocations: 278.8 kB / 405.8 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.4271, allocations: 185.8 kB / 406 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.507e-05/0.4271, allocations: 8.75 kB / 406 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.4272, allocations: 40.61 kB / 406 MB, free: 4.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.184e-06/0.4272, allocations: 0 / 406 MB, free: 4.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004887/0.4321, allocations: 1.73 MB / 407.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.4321, allocations: 55.53 kB / 407.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003172/0.4324, allocations: 237.5 kB / 408 MB, free: 3.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.479e-05/0.4325, allocations: 40.28 kB / 408.1 MB, free: 3.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4326, allocations: 155.1 kB / 408.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.4328, allocations: 160 kB / 408.4 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.433, allocations: 100 kB / 408.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4331, allocations: 342.1 kB / 408.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004404/0.4336, allocations: 206.3 kB / 409 MB, free: 2.844 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005361/0.4341, allocations: 291.9 kB / 409.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.4348, allocations: 376.2 kB / 409.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4348, allocations: 1.766 kB / 409.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001606/0.4364, allocations: 0.6898 MB / 410.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.4364, allocations: 5.844 kB / 410.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.4364, allocations: 1.25 kB / 410.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/0.4375, allocations: 0.4906 MB / 410.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.4378, allocations: 68.03 kB / 410.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.4393, allocations: 1.395 MB / 412.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.4397, allocations: 67.5 kB / 412.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.4398, allocations: 17.72 kB / 412.4 MB, free: 0.7031 MB / 318.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.0002206/0.44, allocations: 164.7 kB / 412.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.468e-05/0.4401, allocations: 34.81 kB / 412.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.4402, allocations: 49.58 kB / 412.6 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4402, allocations: 5 kB / 412.6 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.4403, allocations: 0 / 412.6 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4403, allocations: 0 / 412.6 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.4434, allocations: 1.329 MB / 414 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4434, allocations: 1.125 kB / 414 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.4437, allocations: 59.12 kB / 414 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009391/0.4446, allocations: 469.8 kB / 414.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.138e-05/0.4447, allocations: 21.59 kB / 414.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.4462, allocations: 1.333 MB / 415.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.4462, allocations: 5.281 kB / 415.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002201/0.4484, allocations: 0.9373 MB / 416.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.4486, allocations: 77.53 kB / 416.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.685e-05/0.4487, allocations: 23.17 kB / 416.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.449, allocations: 31.16 kB / 416.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/0.4492, allocations: 94.38 kB / 417 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.064e-05/0.4493, allocations: 18.98 kB / 417 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002342/0.4495, allocations: 170.6 kB / 417.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4495, allocations: 0 / 417.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005585/0.4501, allocations: 105.2 kB / 417.3 MB, free: 13.25 MB / 334.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.0003364/0.4504, allocations: 138.6 kB / 417.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.4517, allocations: 488.9 kB / 417.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.4517, allocations: 0 / 417.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/0.4524, allocations: 275.9 kB / 418.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.4529, allocations: 56.89 kB / 418.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.4555, allocations: 1.002 MB / 419.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.4561, allocations: 0.7773 MB / 420 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.4562, allocations: 37.58 kB / 420 MB, free: 11.3 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4562, allocations: 0 / 420 MB, free: 11.3 MB / 334.1 MB Notification: Performance of Templates: time 0.01222/0.4684, allocations: 6.674 MB / 426.7 MB, free: 5.617 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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.082176799885929]