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.0008204/0.0008204, allocations: 95.59 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009112/0.0009113, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.205/0.205, allocations: 45.92 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003004, allocations: 12 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 63.47 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.359/0.487, allocations: 66.39 MB / 0.5352 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03891/0.526, allocations: 14.03 MB / 0.5489 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01911/0.5451, allocations: 324.8 kB / 0.5492 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01364/0.5588, allocations: 3.411 MB / 0.5525 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03279/0.5917, allocations: 10.18 MB / 0.5625 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006638/0.5983, allocations: 1.289 MB / 0.5637 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08402/0.6824, allocations: 64.7 MB / 0.6269 GB, free: 3.273 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01109/0.6935, allocations: 6.377 MB / 0.6331 GB, free: 12.84 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005536/0.6991, allocations: 2.246 MB / 0.6353 GB, free: 10.59 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006991/0.7061, allocations: 3.658 MB / 0.6389 GB, free: 6.922 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001789/0.7079, allocations: 244 kB / 0.6391 GB, free: 6.684 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00385/0.7118, allocations: 1.19 MB / 0.6403 GB, free: 5.492 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004383/0.7162, allocations: 2.965 MB / 0.6432 GB, free: 2.52 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002709/0.7189, allocations: 1.31 MB / 0.6445 GB, free: 1.199 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.7298, allocations: 8.83 MB / 0.6531 GB, free: 8.348 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.7298, allocations: 4 kB / 0.6531 GB, free: 8.344 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.7298, allocations: 0 / 0.6531 GB, free: 8.344 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004484/0.7303, allocations: 0 / 0.6531 GB, free: 8.344 MB / 494.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.01745/0.7477, allocations: 7.169 MB / 0.6601 GB, free: 1.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.7478, allocations: 8.031 kB / 0.6601 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003173/0.751, allocations: 1.079 MB / 0.6612 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1332/0.8841, allocations: 13.24 MB / 0.6741 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01589/0.9001, allocations: 5.951 MB / 0.6799 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003958/0.9005, allocations: 373.5 kB / 0.6803 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/0.9031, allocations: 0.5112 MB / 0.6808 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03213/0.9353, allocations: 16.13 MB / 0.6965 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002438/0.9356, allocations: 79.3 kB / 0.6966 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000878/0.9364, allocations: 243.7 kB / 0.6968 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00447/0.9409, allocations: 2.915 MB / 0.6997 GB, free: 7.379 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3303/1.271, allocations: 13.43 MB / 0.7128 GB, free: 180.2 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.07713/1.348, allocations: 64.08 MB / 0.7754 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01913/1.368, allocations: 7.809 MB / 0.783 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004793/1.372, allocations: 4.058 MB / 0.787 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02986/1.402, allocations: 18.71 MB / 0.8052 GB, free: 99.95 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.028e-05/1.402, allocations: 68.5 kB / 0.8053 GB, free: 99.87 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 6.071e-06/1.402, allocations: 0 / 0.8053 GB, free: 99.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.1505/1.553, allocations: 47.11 MB / 0.8513 GB, free: 52.63 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001643/1.553, allocations: 269.7 kB / 0.8516 GB, free: 52.31 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01019/1.563, allocations: 6.041 MB / 0.8575 GB, free: 46.27 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00114/1.565, allocations: 82.72 kB / 0.8575 GB, free: 46.18 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003035/1.568, allocations: 4.741 MB / 0.8622 GB, free: 41.44 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001942/1.57, allocations: 1.34 MB / 0.8635 GB, free: 40.11 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005078/1.57, allocations: 184 kB / 0.8637 GB, free: 39.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003635/1.57, allocations: 0.6984 MB / 0.8643 GB, free: 39.22 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005924/1.576, allocations: 3.856 MB / 0.8681 GB, free: 35.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01006/1.587, allocations: 9.102 MB / 0.877 GB, free: 23.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008764/1.595, allocations: 5.717 MB / 0.8826 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.211e-05/1.595, allocations: 56 kB / 0.8826 GB, free: 17.89 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03403/1.63, allocations: 16.31 MB / 0.8986 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002851/1.63, allocations: 84 kB / 0.8986 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005567/1.63, allocations: 184 kB / 0.8988 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01474/1.645, allocations: 4.118 MB / 0.9028 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009425/1.655, allocations: 2.047 MB / 0.9048 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3874/2.042, allocations: 21.99 MB / 0.9263 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008041/2.05, allocations: 0.5119 MB / 0.9268 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002079/2.052, allocations: 0.5243 MB / 0.9273 GB, free: 171.7 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.006978/2.059, allocations: 3.115 MB / 0.9304 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/2.061, allocations: 0.5733 MB / 0.9309 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0212/2.082, allocations: 9.802 MB / 0.9405 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.647e-05/2.082, allocations: 46.39 kB / 0.9405 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-05/2.082, allocations: 18.38 kB / 0.9406 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.495e-05/2.082, allocations: 22.05 kB / 0.9406 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03936/2.121, allocations: 19.48 MB / 0.9596 GB, free: 160.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.427e-05/2.122, allocations: 0 / 0.9596 GB, free: 160.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/2.124, allocations: 0.5364 MB / 0.9601 GB, free: 160.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/2.135, allocations: 3.718 MB / 0.9637 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007867/2.136, allocations: 63.17 kB / 0.9638 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02454/2.161, allocations: 19.9 MB / 0.9832 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.161, allocations: 3.953 kB / 0.9832 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02349/2.184, allocations: 14.4 MB / 0.9973 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/2.186, allocations: 0.5834 MB / 0.9979 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00129/2.187, allocations: 59.95 kB / 0.9979 GB, free: 125.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/2.19, allocations: 223.5 kB / 0.9981 GB, free: 124.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006897/2.191, allocations: 218.1 kB / 0.9984 GB, free: 124.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002506/2.191, allocations: 100 kB / 0.9985 GB, free: 124.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005698/2.197, allocations: 3.768 MB / 1.002 GB, free: 120.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.31e-07/2.197, allocations: 3.844 kB / 1.002 GB, free: 120.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01038/2.207, allocations: 1.836 MB / 1.004 GB, free: 119 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.02426/2.232, allocations: 15.16 MB / 1.019 GB, free: 103.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0155/2.247, allocations: 9.837 MB / 1.028 GB, free: 94.03 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/2.247, allocations: 0 / 1.028 GB, free: 94.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00565/2.253, allocations: 3.894 MB / 1.032 GB, free: 90.12 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006347/2.259, allocations: 0.7719 MB / 1.033 GB, free: 89.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1206/2.38, allocations: 66.57 MB / 1.098 GB, free: 17.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008175/2.388, allocations: 4.843 MB / 1.103 GB, free: 12.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008892/2.397, allocations: 2.778 MB / 1.105 GB, free: 9.738 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005319/2.402, allocations: 3.241 MB / 1.109 GB, free: 6.496 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/2.402, allocations: 1.312 kB / 1.109 GB, free: 6.496 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5141/2.916, allocations: 141.3 MB / 1.246 GB, free: 90.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/2.917, allocations: 203.9 kB / 1.247 GB, free: 90.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.065/8.982, allocations: 0 / 1.247 GB, free: 90.71 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