Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 97.2 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.001111/0.001111, allocations: 208.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002328, allocations: 4 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1066, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002627/0.1093, allocations: 2.083 MB / 360.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006763/0.11, allocations: 390.8 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.1101, allocations: 7.938 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.198e-05/0.1102, allocations: 31.75 kB / 360.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.1104, allocations: 115.7 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.1107, allocations: 63.92 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003078/0.111, allocations: 263.4 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.1112, allocations: 89.62 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.1113, allocations: 119.6 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.1115, allocations: 135.4 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1116, allocations: 16 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/0.1116, allocations: 16 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.1117, allocations: 59.69 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.1117, allocations: 81.58 kB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.112, allocations: 251.5 kB / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.112, allocations: 0 / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.112, allocations: 3.938 kB / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.112, allocations: 4 kB / 361.9 MB, free: 10.05 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.000969/0.113, allocations: 0.5963 MB / 362.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.113, allocations: 8.031 kB / 362.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.696e-05/0.1131, allocations: 66.53 kB / 362.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.1132, allocations: 35.62 kB / 362.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.1135, allocations: 258.3 kB / 362.8 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.1135, allocations: 28.56 kB / 362.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.375e-05/0.1136, allocations: 31.95 kB / 362.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.1141, allocations: 276.8 kB / 363.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1142, allocations: 0 / 363.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.1142, allocations: 16 kB / 363.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1142, allocations: 4 kB / 363.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005617/0.1148, allocations: 282 kB / 363.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.116, allocations: 0.803 MB / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.1166, allocations: 363.2 kB / 364.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.1167, allocations: 12 kB / 364.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1167, allocations: 34.56 kB / 364.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.463e-06/0.1167, allocations: 0 / 364.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00422/0.121, allocations: 2.046 MB / 366.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.121, allocations: 55.97 kB / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.1212, allocations: 195 kB / 367 MB, free: 4.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.1212, allocations: 41.7 kB / 367 MB, free: 4.637 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.1213, allocations: 141 kB / 367.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.1215, allocations: 220.8 kB / 367.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.366e-05/0.1215, allocations: 12 kB / 367.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1217, allocations: 342.8 kB / 367.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/0.122, allocations: 169 kB / 367.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.1223, allocations: 173 kB / 368 MB, free: 3.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003427/0.1227, allocations: 186.2 kB / 368.2 MB, free: 3.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.1227, allocations: 4 kB / 368.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008106/0.1235, allocations: 498.5 kB / 368.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1235, allocations: 8 kB / 368.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.1236, allocations: 0 / 368.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1236, allocations: 7.938 kB / 368.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004765/0.1241, allocations: 131.8 kB / 368.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.1241, allocations: 0 / 368.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1243, allocations: 31.98 kB / 368.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.1243, allocations: 19.94 kB / 368.9 MB, free: 2.715 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001853/0.1245, allocations: 161.7 kB / 369.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.1246, allocations: 35.62 kB / 369.1 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1247, allocations: 47.33 kB / 369.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.1247, allocations: 8 kB / 369.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.1247, allocations: 0 / 369.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1247, allocations: 7.922 kB / 369.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.1268, allocations: 1.333 MB / 370.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.1268, allocations: 4 kB / 370.5 MB, free: 1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.1273, allocations: 127.8 kB / 370.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-06/0.1273, allocations: 8 kB / 370.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.1273, allocations: 19.98 kB / 370.7 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/0.1274, allocations: 11.94 kB / 370.7 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.1274, allocations: 7.953 kB / 370.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2264/0.3538, allocations: 1.107 MB / 371.8 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.354, allocations: 112.8 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.759e-05/0.354, allocations: 17.28 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.3543, allocations: 39.45 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3544, allocations: 51.86 kB / 372 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/0.3545, allocations: 22.08 kB / 372 MB, free: 19.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.3546, allocations: 138.5 kB / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3547, allocations: 0 / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004604/0.3551, allocations: 95.94 kB / 372.2 MB, free: 19.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.001901/0.357, allocations: 2.899 MB / 375.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.3581, allocations: 449.2 kB / 375.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3581, allocations: 1.094 kB / 375.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005111/0.3586, allocations: 258.1 kB / 375.8 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.3592, allocations: 77.89 kB / 375.9 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.3628, allocations: 2.412 MB / 378.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.3631, allocations: 0.7993 MB / 379.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000201/0.3633, allocations: 44.53 kB / 379.2 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.3635, allocations: 122.6 kB / 379.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3635, allocations: 0 / 379.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.3822, allocations: 6.742 MB / 386 MB, free: 13.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.3824, allocations: 189.9 kB / 386.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.203, allocations: 0 / 386.2 MB, free: 13.5 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat