Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000737/0.0007371, allocations: 99.77 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008963/0.0008964, allocations: 192.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002262, allocations: 4 kB / 306.8 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.117, allocations: 51.49 MB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.003534/0.1206, allocations: 3.039 MB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.1224, allocations: 0.8766 MB / 362.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.1226, allocations: 11.94 kB / 362.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.1229, allocations: 59.53 kB / 362.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.1231, allocations: 126.9 kB / 362.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.1235, allocations: 115.8 kB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.1241, allocations: 0.545 MB / 363.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.1244, allocations: 162 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.1247, allocations: 203.3 kB / 363.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.125, allocations: 239 kB / 363.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.01e-05/0.1251, allocations: 24 kB / 363.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.941e-05/0.1252, allocations: 32 kB / 363.7 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.03e-05/0.1253, allocations: 87.66 kB / 363.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.846e-05/0.1254, allocations: 113.5 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004095/0.1258, allocations: 435 kB / 364.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1258, allocations: 0 / 364.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1258, allocations: 4 kB / 364.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1258, allocations: 0 / 364.3 MB, free: 7.707 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.00147/0.1273, allocations: 0.799 MB / 365.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.1274, allocations: 12.03 kB / 365.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.983e-05/0.1275, allocations: 82.53 kB / 365.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.1277, allocations: 75.33 kB / 365.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.1281, allocations: 322 kB / 365.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.1281, allocations: 33 kB / 365.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.619e-05/0.1282, allocations: 47.95 kB / 365.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009278/0.1292, allocations: 470.4 kB / 366.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.1292, allocations: 7.891 kB / 366.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.1292, allocations: 16 kB / 366.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1293, allocations: 12 kB / 366.2 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.1303, allocations: 499.6 kB / 366.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002223/0.1325, allocations: 1.382 MB / 368.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009546/0.1335, allocations: 0.5493 MB / 368.6 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000772/0.1342, allocations: 395.7 kB / 369 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.1343, allocations: 8.547 kB / 369 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1343, allocations: 39.12 kB / 369 MB, free: 2.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 3.356e-06/0.1344, allocations: 0 / 369 MB, free: 2.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=103): time 0.2503/0.3846, allocations: 3.287 MB / 372.3 MB, free: 19.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.3847, allocations: 66.38 kB / 372.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.385, allocations: 248.7 kB / 372.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.3851, allocations: 43.58 kB / 372.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.3852, allocations: 199.6 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.3855, allocations: 347.7 kB / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.3855, allocations: 16.88 kB / 373.2 MB, free: 18.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3856, allocations: 367.2 kB / 373.6 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.3862, allocations: 286.9 kB / 373.9 MB, free: 18.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/0.387, allocations: 365.8 kB / 374.2 MB, free: 18.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007128/0.3877, allocations: 319.6 kB / 374.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3877, allocations: 4.25 kB / 374.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001696/0.3894, allocations: 0.813 MB / 375.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.3895, allocations: 6.078 kB / 375.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3895, allocations: 0.9688 kB / 375.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.3895, allocations: 5.031 kB / 375.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/0.3903, allocations: 221 kB / 375.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3903, allocations: 6.922 kB / 375.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.3907, allocations: 58.58 kB / 375.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.3908, allocations: 33.77 kB / 375.7 MB, free: 18.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002465/0.391, allocations: 192.7 kB / 375.9 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.849e-05/0.3911, allocations: 54.84 kB / 375.9 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.3913, allocations: 72.55 kB / 376 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.3913, allocations: 9.625 kB / 376 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.297e-05/0.3913, allocations: 8.125 kB / 376 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3914, allocations: 4.641 kB / 376 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003354/0.3947, allocations: 2.031 MB / 378 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.3948, allocations: 8.969 kB / 378.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00085/0.3956, allocations: 214.3 kB / 378.3 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.799e-05/0.3956, allocations: 11.83 kB / 378.3 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.093e-05/0.3957, allocations: 25.03 kB / 378.3 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.44e-05/0.3957, allocations: 13.33 kB / 378.3 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/0.3957, allocations: 7.469 kB / 378.3 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3979, allocations: 1.424 MB / 379.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.3981, allocations: 125 kB / 379.9 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.912e-05/0.3982, allocations: 32.34 kB / 379.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.3986, allocations: 56.58 kB / 380 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.3987, allocations: 78.55 kB / 380 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.3988, allocations: 32.83 kB / 380.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.3989, allocations: 174.7 kB / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3989, allocations: 0 / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006123/0.3996, allocations: 155.8 kB / 380.4 MB, free: 15.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00237/0.4019, allocations: 1.995 MB / 382.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.4036, allocations: 0.7548 MB / 383.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4036, allocations: 1 kB / 383.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000835/0.4045, allocations: 461.5 kB / 383.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008114/0.4053, allocations: 119.2 kB / 383.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005937/0.4112, allocations: 3.755 MB / 387.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.4116, allocations: 0.8684 MB / 388.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004308/0.4121, allocations: 78.56 kB / 388.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.4124, allocations: 200.1 kB / 388.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of SimCode: time 1.883e-06/0.4124, allocations: 0 / 388.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/0.4505, allocations: 10.45 MB / 399.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.4507, allocations: 194.1 kB / 399.2 MB, free: 5.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.475, allocations: 0 / 399.2 MB, free: 5.324 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat