Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007973/0.0007973, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008021/0.0008021, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8456/0.8456, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.42e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002492/0.002516, allocations: 2.283 MB / 320.7 MB, free: 4.047 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008037/0.00332, allocations: 0.4951 MB / 321.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.003432, allocations: 4 kB / 321.2 MB, free: 3.547 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.00362, allocations: 55.52 kB / 321.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.003737, allocations: 91.14 kB / 321.3 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.004188, allocations: 199.6 kB / 321.5 MB, free: 3.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.004526, allocations: 0.491 MB / 322 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.004658, allocations: 48.89 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.005065, allocations: 299.5 kB / 322.4 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.005265, allocations: 195.5 kB / 322.6 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.117e-05/0.005306, allocations: 36 kB / 322.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.005425, allocations: 87.89 kB / 322.7 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.524e-05/0.00551, allocations: 103.7 kB / 322.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.066e-05/0.0056, allocations: 135.6 kB / 322.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004325/0.006033, allocations: 0.4947 MB / 323.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.006036, allocations: 3.984 kB / 323.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.006038, allocations: 0 / 323.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.006043, allocations: 0 / 323.4 MB, free: 1.324 MB / 282.7 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.0008021/0.006845, allocations: 0.5949 MB / 324 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.006884, allocations: 8.922 kB / 324 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.665e-05/0.006971, allocations: 58.73 kB / 324.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.007035, allocations: 36.75 kB / 324.1 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.007324, allocations: 234.1 kB / 324.3 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.007354, allocations: 24.97 kB / 324.4 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.007405, allocations: 32.38 kB / 324.4 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.007876, allocations: 374.5 kB / 324.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002601/0.008136, allocations: 4.141 kB / 324.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.008164, allocations: 12.38 kB / 324.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.008173, allocations: 12.12 kB / 324.8 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004724/0.008645, allocations: 406.3 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.009904, allocations: 0.9758 MB / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003354/0.01024, allocations: 276 kB / 326.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.01045, allocations: 197.7 kB / 326.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.01048, allocations: 8 kB / 326.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.0105, allocations: 38.5 kB / 326.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.0105, allocations: 0 / 326.7 MB, free: 13.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002604/0.0131, allocations: 1.731 MB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.01314, allocations: 55.41 kB / 328.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.01329, allocations: 241.7 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.01332, allocations: 41.7 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.616e-05/0.01338, allocations: 157 kB / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.804e-05/0.01346, allocations: 154.7 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.01356, allocations: 102.1 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.385e-05/0.01365, allocations: 334.8 kB / 329.5 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.01392, allocations: 208.9 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.01418, allocations: 288.2 kB / 329.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/0.01457, allocations: 378.7 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01457, allocations: 7.938 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009441/0.01552, allocations: 0.6979 MB / 331 MB, free: 9.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.01553, allocations: 8 kB / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01554, allocations: 0 / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005737/0.01611, allocations: 497.6 kB / 331.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.01629, allocations: 71.91 kB / 331.6 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008472/0.01713, allocations: 1.394 MB / 333 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.01734, allocations: 63.92 kB / 333 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.01736, allocations: 19.98 kB / 333.1 MB, free: 7.285 MB / 298.7 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.000134/0.0175, allocations: 170.2 kB / 333.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/0.01754, allocations: 35.75 kB / 333.3 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.051e-05/0.0176, allocations: 47.3 kB / 333.3 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.01761, allocations: 4 kB / 333.3 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.01761, allocations: 0 / 333.3 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.01762, allocations: 7.984 kB / 333.3 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.01917, allocations: 1.245 MB / 334.6 MB, free: 5.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.01917, allocations: 3.984 kB / 334.6 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.01932, allocations: 63.86 kB / 334.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004606/0.01978, allocations: 465.5 kB / 335.1 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.01981, allocations: 15.98 kB / 335.1 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007115/0.02052, allocations: 1.339 MB / 336.4 MB, free: 3.762 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.02053, allocations: 4.031 kB / 336.4 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.02159, allocations: 0.9488 MB / 337.4 MB, free: 2.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.0217, allocations: 71.75 kB / 337.5 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.867e-05/0.02175, allocations: 20.09 kB / 337.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.02189, allocations: 40.08 kB / 337.5 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.02202, allocations: 99.75 kB / 337.6 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.02204, allocations: 23.97 kB / 337.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001001/0.02214, allocations: 165.2 kB / 337.8 MB, free: 2.359 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02214, allocations: 0 / 337.8 MB, free: 2.359 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002751/0.02242, allocations: 104 kB / 337.9 MB, free: 2.258 MB / 298.7 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.001373/0.02379, allocations: 1.516 MB / 339.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006545/0.02445, allocations: 490.7 kB / 339.9 MB, free: 216 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.02445, allocations: 4.062 kB / 339.9 MB, free: 212 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.02481, allocations: 284.1 kB / 340.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.02514, allocations: 51.92 kB / 340.2 MB, free: 15.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004149/0.02929, allocations: 4.057 MB / 344.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.02943, allocations: 169.8 kB / 344.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.356e-05/0.02952, allocations: 38.97 kB / 344.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.02964, allocations: 92.45 kB / 344.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of SimCode: time 1.001e-06/0.02964, allocations: 0 / 344.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.05177, allocations: 11 MB / 355.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.829/7.88, allocations: 11.19 kB / 355.6 MB, free: 0.5156 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.502531015314162]