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.0009091/0.0009091, allocations: 100.4 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 203.6 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002249/0.0002249, allocations: 15.98 kB / 306.7 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.002937/0.1183, allocations: 2.844 MB / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.1196, allocations: 0.912 MB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.1198, allocations: 15.88 kB / 362 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.142e-05/0.1199, allocations: 59.53 kB / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.1202, allocations: 167.5 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000412/0.1206, allocations: 119.8 kB / 362.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005162/0.1211, allocations: 403.7 kB / 362.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.1214, allocations: 158 kB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.1218, allocations: 203.2 kB / 363.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.1221, allocations: 235 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.431e-05/0.1221, allocations: 28 kB / 363.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.1223, allocations: 31.98 kB / 363.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.574e-05/0.1224, allocations: 87.67 kB / 363.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.1225, allocations: 117.4 kB / 363.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004728/0.123, allocations: 431 kB / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.123, allocations: 0 / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.123, allocations: 0 / 364 MB, free: 8.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.123, allocations: 4 kB / 364 MB, free: 8.188 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.001532/0.1245, allocations: 0.799 MB / 364.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1246, allocations: 12.03 kB / 364.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.8e-05/0.1247, allocations: 78.53 kB / 364.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.1249, allocations: 67.33 kB / 364.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.1252, allocations: 334 kB / 365.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.1253, allocations: 29 kB / 365.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.479e-05/0.1254, allocations: 51.95 kB / 365.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000852/0.1262, allocations: 466.4 kB / 365.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.1263, allocations: 3.906 kB / 365.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.1263, allocations: 19.98 kB / 365.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.1263, allocations: 12 kB / 365.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1273, allocations: 491.7 kB / 366.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.1296, allocations: 1.398 MB / 367.7 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009472/0.1305, allocations: 0.5493 MB / 368.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.368e-05/0.1306, allocations: 8.562 kB / 368.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.1307, allocations: 43.12 kB / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.715e-06/0.1307, allocations: 0 / 368.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=103): time 0.007778/0.1385, allocations: 3.284 MB / 371.6 MB, free: 316 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/0.1386, allocations: 64.41 kB / 371.6 MB, free: 240 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2068/0.3454, allocations: 246.1 kB / 371.9 MB, free: 19.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001683/0.3456, allocations: 42.33 kB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.3458, allocations: 198.3 kB / 372.1 MB, free: 19.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.3461, allocations: 349.1 kB / 372.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.3462, allocations: 17.16 kB / 372.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3463, allocations: 363 kB / 372.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007449/0.347, allocations: 286.5 kB / 373.1 MB, free: 19.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006862/0.3477, allocations: 362.2 kB / 373.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006816/0.3484, allocations: 315.9 kB / 373.8 MB, free: 19.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3484, allocations: 1 kB / 373.8 MB, free: 19.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001817/0.3502, allocations: 0.8096 MB / 374.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.3503, allocations: 4.812 kB / 374.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.3503, allocations: 2.281 kB / 374.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.3503, allocations: 3.781 kB / 374.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.3512, allocations: 219.4 kB / 374.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.674e-05/0.3513, allocations: 4.094 kB / 374.8 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003818/0.3517, allocations: 66.17 kB / 374.9 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-05/0.3517, allocations: 29.34 kB / 374.9 MB, free: 19.13 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.0002181/0.3519, allocations: 196.8 kB / 375.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.352, allocations: 50.94 kB / 375.1 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.3522, allocations: 72.23 kB / 375.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.3522, allocations: 14.62 kB / 375.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.3522, allocations: 0 / 375.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.3523, allocations: 7.266 kB / 375.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.3553, allocations: 2.02 MB / 377.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.3553, allocations: 4.938 kB / 377.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008371/0.3562, allocations: 217.8 kB / 377.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.3562, allocations: 9.062 kB / 377.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.586e-05/0.3563, allocations: 30.77 kB / 377.5 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.544e-05/0.3563, allocations: 9.734 kB / 377.5 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.3563, allocations: 8.25 kB / 377.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.3588, allocations: 1.634 MB / 379.2 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3589, allocations: 128.7 kB / 379.3 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.826e-05/0.359, allocations: 24.7 kB / 379.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004148/0.3594, allocations: 62.59 kB / 379.4 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.3596, allocations: 74.88 kB / 379.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.168e-05/0.3596, allocations: 30.33 kB / 379.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.3598, allocations: 180.8 kB / 379.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.52e-07/0.3598, allocations: 4 kB / 379.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005715/0.3604, allocations: 155.8 kB / 379.8 MB, free: 16.48 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.002801/0.3632, allocations: 3.506 MB / 383.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.3649, allocations: 0.7492 MB / 384.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.3649, allocations: 5.031 kB / 384.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008405/0.3657, allocations: 460 kB / 384.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006372/0.3664, allocations: 101.3 kB / 384.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.3725, allocations: 4.038 MB / 388.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.373, allocations: 0.8809 MB / 389.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003711/0.3734, allocations: 78.59 kB / 389.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.3737, allocations: 198.1 kB / 389.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3737, allocations: 0.9688 kB / 389.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.3984, allocations: 10.4 MB / 400.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.3986, allocations: 180.8 kB / 400.4 MB, free: 4.129 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.348, allocations: 0 / 400.4 MB, free: 4.129 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