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.001521/0.001521, allocations: 122 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.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.001635/0.001635, allocations: 213.6 kB / 21.42 MB, free: 1.625 MB / 14.72 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 1.508/1.508, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001515/0.001515, allocations: 51.92 kB / 374.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1059, allocations: 53.33 MB / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004058/0.11, allocations: 2.589 MB / 430.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.111, allocations: 0.5733 MB / 430.6 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1111, allocations: 11.94 kB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000289/0.1114, allocations: 71.42 kB / 430.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.1117, allocations: 131.1 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.112, allocations: 167.7 kB / 431 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005521/0.1126, allocations: 0.5069 MB / 431.5 MB, free: 204 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.1127, allocations: 52.66 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2068/0.3195, allocations: 226.9 kB / 431.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.32, allocations: 255.8 kB / 432 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.3201, allocations: 40.31 kB / 432.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.3204, allocations: 96.03 kB / 432.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.3205, allocations: 113.8 kB / 432.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.3207, allocations: 200.5 kB / 432.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006094/0.3213, allocations: 0.498 MB / 433 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.3213, allocations: 3.312 kB / 433 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3214, allocations: 0.9062 kB / 433 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.3214, allocations: 0 / 433 MB, free: 8.031 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001305/0.3227, allocations: 0.7156 MB / 433.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3227, allocations: 11.16 kB / 433.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.3228, allocations: 41.36 kB / 433.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.3232, allocations: 300.5 kB / 434 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.3232, allocations: 24.88 kB / 434.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.377e-05/0.3233, allocations: 33.38 kB / 434.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006631/0.324, allocations: 376.9 kB / 434.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.324, allocations: 5.203 kB / 434.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.324, allocations: 13.97 kB / 434.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.324, allocations: 6.688 kB / 434.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008047/0.3248, allocations: 392.3 kB / 434.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.3268, allocations: 1.133 MB / 436 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005899/0.3274, allocations: 308.1 kB / 436.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003623/0.3278, allocations: 178.5 kB / 436.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.3278, allocations: 6.219 kB / 436.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.3278, allocations: 43.08 kB / 436.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.402e-06/0.3278, allocations: 4.531 kB / 436.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.004883/0.3327, allocations: 1.998 MB / 438.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.3327, allocations: 60.91 kB / 438.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.333, allocations: 249.2 kB / 438.8 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.3331, allocations: 49.16 kB / 438.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.624e-05/0.3332, allocations: 157.9 kB / 439 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.3333, allocations: 171.6 kB / 439.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.3335, allocations: 98.34 kB / 439.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.881e-05/0.3336, allocations: 339.2 kB / 439.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/0.334, allocations: 192.6 kB / 439.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/0.3344, allocations: 269.2 kB / 440.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006047/0.335, allocations: 357.2 kB / 440.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.335, allocations: 1.312 kB / 440.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001149/0.3361, allocations: 0.5988 MB / 441 MB, free: 4.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.3362, allocations: 5.938 kB / 441 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.3362, allocations: 2.438 kB / 441 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007332/0.3369, allocations: 347.1 kB / 441.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.3372, allocations: 74.78 kB / 441.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3383, allocations: 1.364 MB / 442.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.3388, allocations: 70.36 kB / 442.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.273e-05/0.3389, allocations: 21.95 kB / 442.9 MB, free: 2.91 MB / 350.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 (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.0001671/0.3391, allocations: 163.5 kB / 443.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.8e-05/0.3391, allocations: 43.97 kB / 443.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.3393, allocations: 48.44 kB / 443.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3393, allocations: 4.75 kB / 443.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.3393, allocations: 1.953 kB / 443.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3393, allocations: 2.391 kB / 443.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.342, allocations: 1.341 MB / 444.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.342, allocations: 1.062 kB / 444.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.3423, allocations: 61.66 kB / 444.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005832/0.3429, allocations: 302.4 kB / 444.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.3429, allocations: 19.45 kB / 444.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009602/0.3439, allocations: 1.318 MB / 446.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3439, allocations: 2.219 kB / 446.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.3456, allocations: 0.9066 MB / 447.1 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3457, allocations: 161.3 kB / 447.3 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.674e-05/0.3458, allocations: 15.66 kB / 447.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3461, allocations: 43.31 kB / 447.3 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.3464, allocations: 93.41 kB / 447.4 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.3464, allocations: 27.28 kB / 447.4 MB, free: 60 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002131/0.3466, allocations: 178.3 kB / 447.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3466, allocations: 0 / 447.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.3471, allocations: 101 kB / 447.7 MB, free: 15.94 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,7), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001395/0.3485, allocations: 383.5 kB / 448.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.3497, allocations: 469.3 kB / 448.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3497, allocations: 320 / 448.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006384/0.3503, allocations: 278.8 kB / 448.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000553/0.3508, allocations: 62.73 kB / 448.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.3535, allocations: 1.078 MB / 450 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3539, allocations: 0.7931 MB / 450.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.354, allocations: 41.11 kB / 450.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.354, allocations: 4 kB / 450.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of Templates: time 0.01086/0.3649, allocations: 7.134 MB / 457.9 MB, free: 11.84 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins1/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: 8.489565296011278]