Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1972/0.1972, allocations: 45.91 MB / 344 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003007, allocations: 8 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 63.46 MB / 481.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.3077/0.4306, allocations: 62.63 MB / 0.5314 GB, free: 9.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03582/0.4665, allocations: 14.69 MB / 0.5457 GB, free: 184 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01761/0.4842, allocations: 320.2 kB / 0.546 GB, free: 132 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01328/0.4975, allocations: 3.084 MB / 0.5491 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03338/0.5309, allocations: 8.925 MB / 0.5578 GB, free: 7.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005575/0.5365, allocations: 1.251 MB / 0.559 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.07087/0.6074, allocations: 50.03 MB / 0.6078 GB, free: 6.035 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.6184, allocations: 6.339 MB / 0.614 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004377/0.6228, allocations: 1.842 MB / 0.6158 GB, free: 13.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004663/0.6275, allocations: 2.637 MB / 0.6184 GB, free: 11.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001548/0.6291, allocations: 248 kB / 0.6186 GB, free: 10.9 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003595/0.6327, allocations: 1.159 MB / 0.6198 GB, free: 9.738 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003465/0.6362, allocations: 2.763 MB / 0.6225 GB, free: 6.969 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002004/0.6382, allocations: 1.31 MB / 0.6238 GB, free: 5.648 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00997/0.6482, allocations: 8.818 MB / 0.6324 GB, free: 12.81 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6482, allocations: 0 / 0.6324 GB, free: 12.81 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6482, allocations: 0 / 0.6324 GB, free: 12.81 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003791/0.6486, allocations: 0 / 0.6324 GB, free: 12.81 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.01889/0.6675, allocations: 7.353 MB / 0.6395 GB, free: 5.371 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.6676, allocations: 8.031 kB / 0.6396 GB, free: 5.363 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003059/0.6706, allocations: 1.083 MB / 0.6406 GB, free: 4.27 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1606/0.8312, allocations: 15.1 MB / 0.6554 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01495/0.8462, allocations: 5.569 MB / 0.6608 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.8466, allocations: 369.5 kB / 0.6612 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002108/0.8487, allocations: 0.5112 MB / 0.6616 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0318/0.8805, allocations: 16.35 MB / 0.6776 GB, free: 13.19 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002336/0.8808, allocations: 79.27 kB / 0.6777 GB, free: 13.11 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008277/0.8817, allocations: 235.8 kB / 0.6779 GB, free: 12.88 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004787/0.8864, allocations: 2.919 MB / 0.6808 GB, free: 9.961 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03067/0.9171, allocations: 13.69 MB / 0.6941 GB, free: 12.25 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.3711/1.288, allocations: 64.37 MB / 0.757 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02079/1.309, allocations: 7.836 MB / 0.7646 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03027/1.339, allocations: 18.91 MB / 0.7831 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/1.34, allocations: 64.03 kB / 0.7832 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 4.558e-06/1.34, allocations: 4 kB / 0.7832 GB, free: 120.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.1393/1.479, allocations: 47.41 MB / 0.8295 GB, free: 72.61 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/1.479, allocations: 273.7 kB / 0.8297 GB, free: 72.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007063/1.486, allocations: 6.514 MB / 0.8361 GB, free: 65.77 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007455/1.487, allocations: 85.7 kB / 0.8362 GB, free: 65.68 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002154/1.489, allocations: 4.738 MB / 0.8408 GB, free: 60.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001164/1.49, allocations: 1.332 MB / 0.8421 GB, free: 59.61 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000374/1.491, allocations: 184 kB / 0.8423 GB, free: 59.43 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000324/1.491, allocations: 0.6945 MB / 0.843 GB, free: 58.73 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004371/1.495, allocations: 3.859 MB / 0.8467 GB, free: 54.86 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006483/1.502, allocations: 9.063 MB / 0.8556 GB, free: 43.23 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00655/1.508, allocations: 5.716 MB / 0.8612 GB, free: 37.49 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.491e-05/1.508, allocations: 52 kB / 0.8612 GB, free: 37.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03109/1.539, allocations: 16.31 MB / 0.8771 GB, free: 21.08 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000128/1.54, allocations: 84 kB / 0.8772 GB, free: 21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/1.54, allocations: 184.9 kB / 0.8774 GB, free: 20.82 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01272/1.553, allocations: 4.126 MB / 0.8814 GB, free: 16.69 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006578/1.559, allocations: 2.043 MB / 0.8834 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03035/1.59, allocations: 22.79 MB / 0.9057 GB, free: 7.582 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008329/1.598, allocations: 0.5071 MB / 0.9062 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/1.6, allocations: 0.5325 MB / 0.9067 GB, free: 6.543 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 (1080): * Single equations (assignments): 1075 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006935/1.607, allocations: 3.117 MB / 0.9097 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001478/1.608, allocations: 0.5669 MB / 0.9103 GB, free: 2.84 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3077/1.916, allocations: 9.804 MB / 0.9199 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-05/1.916, allocations: 37.8 kB / 0.9199 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.984e-05/1.916, allocations: 16.41 kB / 0.9199 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001036/1.916, allocations: 17.64 kB / 0.9199 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04856/1.965, allocations: 19.52 MB / 0.939 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.642e-05/1.965, allocations: 0 / 0.939 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002887/1.968, allocations: 0.5309 MB / 0.9395 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01273/1.981, allocations: 3.714 MB / 0.9432 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009947/1.982, allocations: 68.64 kB / 0.9432 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02903/2.011, allocations: 20.67 MB / 0.9634 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/2.011, allocations: 4.5 kB / 0.9634 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02666/2.037, allocations: 14.5 MB / 0.9776 GB, free: 144 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/2.04, allocations: 0.6148 MB / 0.9782 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002339/2.042, allocations: 56 kB / 0.9782 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004778/2.047, allocations: 222.6 kB / 0.9784 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001316/2.048, allocations: 229.9 kB / 0.9787 GB, free: 143.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003596/2.049, allocations: 96.92 kB / 0.9787 GB, free: 143.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007426/2.056, allocations: 4.135 MB / 0.9828 GB, free: 139 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.32e-07/2.056, allocations: 0 / 0.9828 GB, free: 139 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01201/2.068, allocations: 1.857 MB / 0.9846 GB, free: 137.1 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 (262): * Single equations (assignments): 257 * 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.02728/2.096, allocations: 15.41 MB / 0.9996 GB, free: 121.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01624/2.112, allocations: 9.848 MB / 1.009 GB, free: 111.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/2.112, allocations: 3.969 kB / 1.009 GB, free: 111.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005494/2.117, allocations: 3.886 MB / 1.013 GB, free: 107.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004646/2.122, allocations: 0.7168 MB / 1.014 GB, free: 107.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.375/2.497, allocations: 192.6 MB / 1.202 GB, free: 105.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005495/2.503, allocations: 4.99 MB / 1.207 GB, free: 104.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007393/2.51, allocations: 2.791 MB / 1.209 GB, free: 103.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00461/2.515, allocations: 3.247 MB / 1.213 GB, free: 100.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.072e-06/2.515, allocations: 0 / 1.213 GB, free: 100.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5118/3.027, allocations: 142.4 MB / 1.352 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/3.027, allocations: 204.4 kB / 1.352 GB, free: 177 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.203/9.23, allocations: 0 / 1.352 GB, free: 177 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat