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.001292/0.001292, 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.001355/0.001355, 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.486/1.486, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001239/0.00124, allocations: 55.91 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.004533/0.1124, allocations: 2.416 MB / 377.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.1135, allocations: 0.5 MB / 378 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1136, allocations: 4 kB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.1139, allocations: 47.52 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.1141, allocations: 87.27 kB / 378.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.1146, allocations: 191.7 kB / 378.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.1151, allocations: 495.1 kB / 378.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.1153, allocations: 76.66 kB / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.1156, allocations: 211.4 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.1159, allocations: 239.2 kB / 379.4 MB, free: 316 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.451e-05/0.1159, allocations: 36 kB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1161, allocations: 87.89 kB / 379.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.1162, allocations: 99.7 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2344/0.3506, allocations: 182.2 kB / 379.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008725/0.3515, allocations: 464 kB / 380.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3516, allocations: 0.9688 kB / 380.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3516, allocations: 0 / 380.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.3516, allocations: 2.188 kB / 380.2 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.001492/0.3531, allocations: 0.6614 MB / 380.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.3532, allocations: 12.25 kB / 380.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.3533, allocations: 33.86 kB / 380.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005476/0.3538, allocations: 288.7 kB / 381.2 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.3539, allocations: 24 kB / 381.2 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.599e-05/0.354, allocations: 30.69 kB / 381.3 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007886/0.3548, allocations: 378.5 kB / 381.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.3548, allocations: 0.8438 kB / 381.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/0.3549, allocations: 16.44 kB / 381.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.3549, allocations: 6.875 kB / 381.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008915/0.3558, allocations: 403.8 kB / 382.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.3582, allocations: 1.096 MB / 383.1 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.3587, allocations: 300 kB / 383.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.3592, allocations: 200 kB / 383.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/0.3592, allocations: 4.031 kB / 383.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3592, allocations: 37.52 kB / 383.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.114e-06/0.3593, allocations: 0 / 383.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.00462/0.3639, allocations: 2.036 MB / 385.7 MB, free: 8.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3639, allocations: 56.77 kB / 385.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.3643, allocations: 242.1 kB / 386 MB, free: 7.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.3643, allocations: 39.41 kB / 386 MB, free: 7.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/0.3644, allocations: 151.6 kB / 386.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.3645, allocations: 153.1 kB / 386.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.3648, allocations: 100.7 kB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3649, allocations: 350.8 kB / 386.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/0.3653, allocations: 209.4 kB / 387 MB, free: 7.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.3658, allocations: 286.5 kB / 387.3 MB, free: 6.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006695/0.3664, allocations: 378.5 kB / 387.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3665, allocations: 0 / 387.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001484/0.3679, allocations: 0.6906 MB / 388.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.368, allocations: 5.969 kB / 388.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.368, allocations: 3.297 kB / 388.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.3691, allocations: 0.4886 MB / 388.8 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.3694, allocations: 72.72 kB / 388.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3706, allocations: 1.385 MB / 390.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004414/0.371, allocations: 70 kB / 390.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.3711, allocations: 22.38 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.0001993/0.3713, allocations: 157.5 kB / 390.5 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.529e-05/0.3714, allocations: 35.38 kB / 390.6 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.3715, allocations: 46.59 kB / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.3715, allocations: 6.047 kB / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3715, allocations: 4 kB / 390.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.3715, allocations: 2.844 kB / 390.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.3743, allocations: 1.361 MB / 392 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3743, allocations: 3.656 kB / 392 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3745, allocations: 57.94 kB / 392 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006975/0.3753, allocations: 472.6 kB / 392.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.3753, allocations: 14.14 kB / 392.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.3764, allocations: 1.339 MB / 393.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3764, allocations: 1.281 kB / 393.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.3782, allocations: 0.9449 MB / 394.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.3784, allocations: 154.7 kB / 394.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.014e-05/0.3785, allocations: 24.22 kB / 395 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.3788, allocations: 38.36 kB / 395 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.3791, allocations: 84.33 kB / 395.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.3792, allocations: 21.09 kB / 395.1 MB, free: 2.414 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.3793, allocations: 170.9 kB / 395.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3793, allocations: 0 / 395.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005296/0.3799, allocations: 105.4 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.0002951/0.3802, allocations: 139 kB / 395.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.3813, allocations: 0.5004 MB / 396 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3813, allocations: 0 / 396 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006294/0.382, allocations: 309 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.0005332/0.3825, allocations: 60.34 kB / 396.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.3848, allocations: 0.97 MB / 397.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3852, allocations: 0.7776 MB / 398.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.3853, allocations: 32.09 kB / 398.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.646e-05/0.3854, allocations: 31.97 kB / 398.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3854, allocations: 5.156 kB / 398.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of Templates: time 0.01947/0.4049, allocations: 8.784 MB / 407 MB, free: 13.21 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