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.001146/0.001146, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.001192/0.001193, allocations: 192.2 kB / 18.66 MB, free: 4.418 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.383/1.383, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001313/0.001313, allocations: 51.94 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1112, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004093/0.1153, allocations: 2.424 MB / 377.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1165, allocations: 0.4961 MB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.1167, allocations: 4 kB / 378.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.117, allocations: 51.52 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.1172, allocations: 83.27 kB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005363/0.1177, allocations: 191.7 kB / 378.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000479/0.1182, allocations: 495.1 kB / 378.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1184, allocations: 80.64 kB / 378.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.1186, allocations: 211.4 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.1189, allocations: 235.2 kB / 379.4 MB, free: 332 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.932e-05/0.119, allocations: 36 kB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.1191, allocations: 95.88 kB / 379.5 MB, free: 200 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1193, allocations: 95.72 kB / 379.6 MB, free: 104 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2107/0.3299, allocations: 179.7 kB / 379.8 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008221/0.3308, allocations: 463.5 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3308, allocations: 2.344 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3308, allocations: 0 / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3309, allocations: 2.188 kB / 380.2 MB, free: 10.28 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.001252/0.3321, allocations: 0.664 MB / 380.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3322, allocations: 15.31 kB / 380.9 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.761e-05/0.3323, allocations: 33.91 kB / 380.9 MB, free: 9.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.3326, allocations: 287.3 kB / 381.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.3327, allocations: 18.97 kB / 381.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.3327, allocations: 29.69 kB / 381.3 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007228/0.3335, allocations: 377.9 kB / 381.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3335, allocations: 3.312 kB / 381.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.3336, allocations: 15.5 kB / 381.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3336, allocations: 6.875 kB / 381.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007877/0.3344, allocations: 407.2 kB / 382.1 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.3364, allocations: 1.099 MB / 383.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.3369, allocations: 300.1 kB / 383.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.3372, allocations: 199.6 kB / 383.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.3373, allocations: 4.219 kB / 383.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.661e-05/0.3373, allocations: 35.95 kB / 383.7 MB, free: 9.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.542e-06/0.3373, allocations: 0 / 383.7 MB, free: 9.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004237/0.3416, allocations: 2.038 MB / 385.7 MB, free: 8.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.3416, allocations: 59.25 kB / 385.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.3418, allocations: 241 kB / 386 MB, free: 7.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.3419, allocations: 43.06 kB / 386.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.24e-05/0.342, allocations: 148.1 kB / 386.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3421, allocations: 152.9 kB / 386.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.3423, allocations: 99.92 kB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.3424, allocations: 349.2 kB / 386.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.3428, allocations: 206.6 kB / 387 MB, free: 7.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004584/0.3433, allocations: 284 kB / 387.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.3439, allocations: 379.1 kB / 387.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3439, allocations: 2.938 kB / 387.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001488/0.3454, allocations: 0.6891 MB / 388.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3454, allocations: 5.969 kB / 388.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3454, allocations: 3.188 kB / 388.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000931/0.3464, allocations: 496.2 kB / 388.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.3467, allocations: 75.39 kB / 388.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.3478, allocations: 1.391 MB / 390.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.3482, allocations: 70.02 kB / 390.4 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.3483, allocations: 18.78 kB / 390.4 MB, free: 5.219 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.0001878/0.3485, allocations: 161.8 kB / 390.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.282e-05/0.3486, allocations: 34.52 kB / 390.6 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.3487, allocations: 48.45 kB / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.3487, allocations: 5.016 kB / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3487, allocations: 0 / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3487, allocations: 7.688 kB / 390.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.3514, allocations: 1.352 MB / 392 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3514, allocations: 5.406 kB / 392 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.3517, allocations: 59.98 kB / 392 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007447/0.3525, allocations: 463.4 kB / 392.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/0.3525, allocations: 24.28 kB / 392.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009792/0.3535, allocations: 1.342 MB / 393.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3535, allocations: 1.156 kB / 393.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.3553, allocations: 0.9415 MB / 394.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001582/0.3554, allocations: 150.9 kB / 394.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/0.3555, allocations: 23.28 kB / 395 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.3558, allocations: 43.28 kB / 395 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.3561, allocations: 87.45 kB / 395.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.076e-05/0.3561, allocations: 21.47 kB / 395.1 MB, free: 2.414 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001515/0.3563, allocations: 166.8 kB / 395.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3563, allocations: 0 / 395.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005255/0.3568, allocations: 109.9 kB / 395.4 MB, free: 2.297 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.0002705/0.3571, allocations: 137.2 kB / 395.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.3582, allocations: 0.4997 MB / 396 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3582, allocations: 1.406 kB / 396 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006447/0.3589, allocations: 313 kB / 396.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.3594, allocations: 49.33 kB / 396.4 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.3617, allocations: 0.9675 MB / 397.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.3619, allocations: 0.7818 MB / 398.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001601/0.3621, allocations: 37.05 kB / 398.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.722e-05/0.3622, allocations: 32.09 kB / 398.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3622, allocations: 0 / 398.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of Templates: time 0.01761/0.3798, allocations: 8.782 MB / 407 MB, free: 13.22 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/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