Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009202/0.0009203, allocations: 96.17 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.0009809/0.0009811, allocations: 207.9 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.358/1.358, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002924, allocations: 11.98 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.164, allocations: 63.46 MB / 481.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.3881/0.5521, allocations: 62.65 MB / 0.5314 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0426/0.5948, allocations: 14.68 MB / 0.5457 GB, free: 148 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01971/0.6145, allocations: 323.8 kB / 0.5461 GB, free: 92 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01351/0.6281, allocations: 3.094 MB / 0.5491 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03936/0.6675, allocations: 8.916 MB / 0.5578 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005994/0.6735, allocations: 1.27 MB / 0.559 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07066/0.7442, allocations: 50.02 MB / 0.6079 GB, free: 5.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00956/0.7538, allocations: 6.337 MB / 0.6141 GB, free: 15.59 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0041/0.758, allocations: 1.849 MB / 0.6159 GB, free: 13.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005261/0.7633, allocations: 2.652 MB / 0.6185 GB, free: 11.07 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001553/0.7649, allocations: 248 kB / 0.6187 GB, free: 10.83 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003479/0.7683, allocations: 1.159 MB / 0.6198 GB, free: 9.668 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003465/0.7718, allocations: 2.763 MB / 0.6225 GB, free: 6.898 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002371/0.7742, allocations: 1.314 MB / 0.6238 GB, free: 5.574 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.7846, allocations: 8.838 MB / 0.6324 GB, free: 12.71 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.7846, allocations: 3.938 kB / 0.6324 GB, free: 12.71 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7846, allocations: 0 / 0.6324 GB, free: 12.71 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003892/0.785, allocations: 0 / 0.6324 GB, free: 12.71 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.0205/0.8055, allocations: 7.365 MB / 0.6396 GB, free: 5.262 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.8056, allocations: 8.031 kB / 0.6396 GB, free: 5.254 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003533/0.8091, allocations: 1.083 MB / 0.6407 GB, free: 4.16 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.162/0.9712, allocations: 15.1 MB / 0.6554 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01643/0.9877, allocations: 5.569 MB / 0.6609 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004056/0.9881, allocations: 369.5 kB / 0.6612 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002644/0.9908, allocations: 0.5074 MB / 0.6617 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03579/1.027, allocations: 16.36 MB / 0.6777 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003299/1.027, allocations: 83.3 kB / 0.6778 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/1.028, allocations: 243.7 kB / 0.678 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004979/1.033, allocations: 2.919 MB / 0.6809 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03024/1.064, allocations: 13.72 MB / 0.6943 GB, free: 12.1 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3409/1.405, allocations: 64.44 MB / 0.7572 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/1.426, allocations: 7.884 MB / 0.7649 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02999/1.456, allocations: 18.99 MB / 0.7834 GB, free: 119.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/1.456, allocations: 62.59 kB / 0.7835 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=287): time 6.422e-06/1.456, allocations: 0 / 0.7835 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=370): time 0.1691/1.625, allocations: 51.65 MB / 0.8339 GB, free: 68.02 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/1.626, allocations: 273.8 kB / 0.8342 GB, free: 67.69 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008885/1.634, allocations: 6.517 MB / 0.8406 GB, free: 61.17 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009877/1.635, allocations: 81.7 kB / 0.8406 GB, free: 61.08 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002923/1.638, allocations: 4.749 MB / 0.8453 GB, free: 56.33 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001932/1.64, allocations: 1.356 MB / 0.8466 GB, free: 54.99 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005515/1.641, allocations: 184 kB / 0.8468 GB, free: 54.81 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003791/1.641, allocations: 0.6986 MB / 0.8475 GB, free: 54.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005083/1.646, allocations: 3.899 MB / 0.8513 GB, free: 50.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007727/1.654, allocations: 9.103 MB / 0.8602 GB, free: 38.52 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007934/1.662, allocations: 5.763 MB / 0.8658 GB, free: 32.74 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/1.662, allocations: 52 kB / 0.8658 GB, free: 32.69 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03349/1.696, allocations: 16.36 MB / 0.8818 GB, free: 16.29 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.00029/1.696, allocations: 84 kB / 0.8819 GB, free: 16.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000345/1.696, allocations: 184 kB / 0.8821 GB, free: 16.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/1.71, allocations: 4.107 MB / 0.8861 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007838/1.718, allocations: 2.063 MB / 0.8881 GB, free: 9.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03453/1.752, allocations: 22.74 MB / 0.9103 GB, free: 2.832 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009633/1.762, allocations: 0.515 MB / 0.9108 GB, free: 2.316 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002371/1.764, allocations: 0.5279 MB / 0.9113 GB, free: 1.789 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1088): * Single equations (assignments): 1083 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2978/2.062, allocations: 3.112 MB / 0.9144 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/2.064, allocations: 0.5728 MB / 0.9149 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02381/2.088, allocations: 9.861 MB / 0.9245 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-05/2.088, allocations: 39.78 kB / 0.9246 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-05/2.088, allocations: 16.81 kB / 0.9246 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.622e-05/2.088, allocations: 23.17 kB / 0.9246 GB, free: 179 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04088/2.129, allocations: 19.62 MB / 0.9438 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-05/2.129, allocations: 2.062 kB / 0.9438 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00307/2.132, allocations: 0.5454 MB / 0.9443 GB, free: 172.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01197/2.144, allocations: 3.661 MB / 0.9479 GB, free: 171.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008287/2.145, allocations: 67.19 kB / 0.948 GB, free: 171.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02499/2.17, allocations: 20.64 MB / 0.9681 GB, free: 153.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/2.17, allocations: 0 / 0.9681 GB, free: 153.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0237/2.193, allocations: 14.61 MB / 0.9824 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/2.196, allocations: 0.6183 MB / 0.983 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/2.197, allocations: 63.75 kB / 0.983 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002941/2.2, allocations: 211.7 kB / 0.9832 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007192/2.201, allocations: 226.6 kB / 0.9835 GB, free: 137.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002483/2.201, allocations: 91.98 kB / 0.9836 GB, free: 137.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006025/2.207, allocations: 4.143 MB / 0.9876 GB, free: 133.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/2.207, allocations: 0 / 0.9876 GB, free: 133.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008427/2.215, allocations: 1.868 MB / 0.9894 GB, free: 131.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02271/2.238, allocations: 15.52 MB / 1.005 GB, free: 116 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01337/2.252, allocations: 9.969 MB / 1.014 GB, free: 106.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/2.252, allocations: 3.906 kB / 1.014 GB, free: 106.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005155/2.257, allocations: 3.944 MB / 1.018 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/2.261, allocations: 0.7161 MB / 1.019 GB, free: 101.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4231/2.684, allocations: 192.9 MB / 1.207 GB, free: 100.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007595/2.691, allocations: 5.006 MB / 1.212 GB, free: 98.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008231/2.7, allocations: 2.813 MB / 1.215 GB, free: 98.19 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005533/2.705, allocations: 3.251 MB / 1.218 GB, free: 95.16 MB / 0.545 GB Notification: Performance of SimCode: time 3.056e-06/2.705, allocations: 0 / 1.218 GB, free: 95.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4577/3.163, allocations: 142.8 MB / 1.358 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/3.163, allocations: 212.8 kB / 1.358 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.275/9.438, allocations: 4 kB / 1.358 GB, free: 176.9 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat