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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=4000,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=4000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 101.5 kB / 18.39 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 183 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09199, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004056/0.09609, allocations: 2.424 MB / 378.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.09749, allocations: 0.5 MB / 378.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.09777, allocations: 0 / 378.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.09811, allocations: 51.52 kB / 378.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.09842, allocations: 87.27 kB / 378.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.09907, allocations: 187.7 kB / 379 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006599/0.09975, allocations: 491.1 kB / 379.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.09996, allocations: 84.62 kB / 379.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.1003, allocations: 207.4 kB / 379.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.1007, allocations: 235.2 kB / 380 MB, free: 324 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.422e-05/0.1008, allocations: 40 kB / 380.1 MB, free: 284 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.101, allocations: 91.89 kB / 380.2 MB, free: 192 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.1012, allocations: 103.7 kB / 380.3 MB, free: 88 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1958/0.297, allocations: 169.3 kB / 380.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007591/0.2978, allocations: 467.1 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2979, allocations: 1.281 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2979, allocations: 0 / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.2979, allocations: 1.812 kB / 380.9 MB, free: 10.27 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.001204/0.2991, allocations: 0.6641 MB / 381.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2991, allocations: 8.859 kB / 381.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.955e-05/0.2992, allocations: 34.22 kB / 381.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.2996, allocations: 286.9 kB / 381.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.2997, allocations: 23.8 kB / 381.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.897e-05/0.2997, allocations: 28.75 kB / 381.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006987/0.3004, allocations: 380.6 kB / 382.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.3005, allocations: 2.172 kB / 382.3 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.3005, allocations: 17.7 kB / 382.3 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.3005, allocations: 6.875 kB / 382.3 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007863/0.3013, allocations: 401.7 kB / 382.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.3034, allocations: 1.103 MB / 383.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000526/0.3039, allocations: 296.8 kB / 384.1 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003486/0.3043, allocations: 201.2 kB / 384.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.764e-05/0.3044, allocations: 8.875 kB / 384.3 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.3044, allocations: 36.55 kB / 384.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.004e-06/0.3044, allocations: 0 / 384.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004344/0.3087, allocations: 2.039 MB / 386.4 MB, free: 8.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.3088, allocations: 56 kB / 386.4 MB, free: 8.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.3091, allocations: 241 kB / 386.7 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/0.3091, allocations: 40.97 kB / 386.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-05/0.3092, allocations: 147.8 kB / 386.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.3094, allocations: 153.6 kB / 387 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.3095, allocations: 101.7 kB / 387.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.42e-05/0.3096, allocations: 342.9 kB / 387.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003833/0.31, allocations: 210.9 kB / 387.7 MB, free: 7.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.3104, allocations: 285.9 kB / 387.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000591/0.311, allocations: 379.7 kB / 388.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.311, allocations: 1.094 kB / 388.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001398/0.3124, allocations: 0.6924 MB / 389 MB, free: 6.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.3125, allocations: 6.344 kB / 389 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3125, allocations: 2.688 kB / 389 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009064/0.3134, allocations: 492.8 kB / 389.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.3137, allocations: 71.66 kB / 389.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.3148, allocations: 1.395 MB / 391 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004592/0.3152, allocations: 69.06 kB / 391 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.297e-05/0.3153, allocations: 19.19 kB / 391 MB, free: 5.211 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.0002062/0.3155, allocations: 167.1 kB / 391.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.3156, allocations: 35.42 kB / 391.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.3157, allocations: 47.34 kB / 391.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3157, allocations: 5.844 kB / 391.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.3157, allocations: 0.7031 kB / 391.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3158, allocations: 5.969 kB / 391.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002726/0.3185, allocations: 1.355 MB / 392.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3185, allocations: 1.438 kB / 392.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002664/0.3188, allocations: 64.23 kB / 392.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007291/0.3195, allocations: 463.4 kB / 393.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.284e-05/0.3196, allocations: 18.72 kB / 393.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000967/0.3206, allocations: 1.342 MB / 394.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3206, allocations: 1.469 kB / 394.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.3223, allocations: 0.9418 MB / 395.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.3225, allocations: 154 kB / 395.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.702e-05/0.3226, allocations: 20.5 kB / 395.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.3229, allocations: 42 kB / 395.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.3231, allocations: 84.22 kB / 395.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-05/0.3232, allocations: 22.28 kB / 395.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.3234, allocations: 170.8 kB / 396 MB, free: 2.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3234, allocations: 1.094 kB / 396 MB, free: 2.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005652/0.324, allocations: 104.5 kB / 396.1 MB, free: 2.293 MB / 318.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.0002506/0.3242, allocations: 136.1 kB / 396.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.3255, allocations: 0.507 MB / 396.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3255, allocations: 0 / 396.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006234/0.3261, allocations: 307 kB / 397 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.3267, allocations: 49.59 kB / 397 MB, free: 1.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.329, allocations: 0.9978 MB / 398 MB, free: 1.312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.3293, allocations: 0.7787 MB / 398.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3294, allocations: 37.41 kB / 398.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3294, allocations: 0 / 398.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of Templates: time 0.01218/0.3416, allocations: 6.697 MB / 405.6 MB, free: 14.13 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile (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) 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) Reference file matches