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.0008373/0.0008373, allocations: 94.22 kB / 16.99 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008664/0.0008665, allocations: 197.5 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 45.92 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002685, allocations: 8 kB / 418.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1358, allocations: 63.45 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.361/0.4969, allocations: 66.42 MB / 0.5352 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04529/0.5422, allocations: 14.03 MB / 0.5489 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01959/0.5619, allocations: 321.2 kB / 0.5492 GB, free: 14.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01283/0.5748, allocations: 3.423 MB / 0.5525 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03368/0.6085, allocations: 10.18 MB / 0.5625 GB, free: 4.973 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007186/0.6157, allocations: 1.284 MB / 0.5637 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.09898/0.7147, allocations: 64.73 MB / 0.627 GB, free: 3.215 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01087/0.7257, allocations: 6.375 MB / 0.6332 GB, free: 12.78 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004839/0.7305, allocations: 2.25 MB / 0.6354 GB, free: 10.52 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006453/0.737, allocations: 3.677 MB / 0.639 GB, free: 6.832 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001979/0.739, allocations: 248 kB / 0.6392 GB, free: 6.59 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005298/0.7444, allocations: 1.194 MB / 0.6404 GB, free: 5.395 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004686/0.7491, allocations: 2.965 MB / 0.6433 GB, free: 2.422 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002554/0.7517, allocations: 1.318 MB / 0.6446 GB, free: 1.094 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01073/0.7624, allocations: 8.842 MB / 0.6532 GB, free: 8.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.7625, allocations: 7.984 kB / 0.6532 GB, free: 8.223 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.7625, allocations: 4 kB / 0.6532 GB, free: 8.219 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004858/0.763, allocations: 0 / 0.6532 GB, free: 8.219 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02081/0.7838, allocations: 7.17 MB / 0.6602 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.7838, allocations: 12.03 kB / 0.6602 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003122/0.787, allocations: 1.075 MB / 0.6613 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1325/0.9195, allocations: 13.25 MB / 0.6742 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.9338, allocations: 5.951 MB / 0.68 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004222/0.9343, allocations: 369.5 kB / 0.6804 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/0.9363, allocations: 0.5112 MB / 0.6809 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03253/0.9689, allocations: 16.14 MB / 0.6966 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003586/0.9693, allocations: 87.2 kB / 0.6967 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001727/0.971, allocations: 239.7 kB / 0.6969 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005017/0.9761, allocations: 2.919 MB / 0.6998 GB, free: 7.234 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2967/1.273, allocations: 13.45 MB / 0.7129 GB, free: 180 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.0733/1.346, allocations: 64.16 MB / 0.7756 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02464/1.371, allocations: 7.855 MB / 0.7832 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007478/1.378, allocations: 4.13 MB / 0.7873 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0322/1.411, allocations: 18.8 MB / 0.8056 GB, free: 99.46 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/1.411, allocations: 60.5 kB / 0.8057 GB, free: 99.39 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=287): time 5.54e-06/1.411, allocations: 0 / 0.8057 GB, free: 99.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=370): time 0.1496/1.56, allocations: 51.38 MB / 0.8559 GB, free: 47.88 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/1.56, allocations: 269.8 kB / 0.8561 GB, free: 47.56 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006439/1.567, allocations: 6.045 MB / 0.862 GB, free: 41.51 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006669/1.568, allocations: 81.7 kB / 0.8621 GB, free: 41.43 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002152/1.57, allocations: 4.746 MB / 0.8667 GB, free: 36.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00118/1.571, allocations: 1.363 MB / 0.8681 GB, free: 35.33 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/1.571, allocations: 184 kB / 0.8682 GB, free: 35.15 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003082/1.572, allocations: 0.7025 MB / 0.8689 GB, free: 34.44 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004671/1.576, allocations: 3.899 MB / 0.8727 GB, free: 30.53 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007224/1.584, allocations: 9.142 MB / 0.8817 GB, free: 18.82 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/1.591, allocations: 5.759 MB / 0.8873 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.786e-05/1.591, allocations: 55.94 kB / 0.8873 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02926/1.62, allocations: 16.36 MB / 0.9033 GB, free: 12.58 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.62, allocations: 80 kB / 0.9034 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002031/1.62, allocations: 186.7 kB / 0.9036 GB, free: 12.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/1.633, allocations: 4.111 MB / 0.9076 GB, free: 8.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007274/1.64, allocations: 2.059 MB / 0.9096 GB, free: 6.145 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2667/1.907, allocations: 21.97 MB / 0.931 GB, free: 170.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007948/1.915, allocations: 0.5058 MB / 0.9315 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003196/1.918, allocations: 0.5329 MB / 0.9321 GB, free: 170.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 (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.01061/1.929, allocations: 3.124 MB / 0.9351 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.93, allocations: 0.5696 MB / 0.9357 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01976/1.95, allocations: 9.862 MB / 0.9453 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.814e-05/1.95, allocations: 35.38 kB / 0.9453 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.075e-05/1.95, allocations: 19.25 kB / 0.9454 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.959e-05/1.95, allocations: 18.38 kB / 0.9454 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03489/1.985, allocations: 19.59 MB / 0.9645 GB, free: 159.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.893e-05/1.985, allocations: 3.812 kB / 0.9645 GB, free: 159.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002785/1.988, allocations: 0.5341 MB / 0.965 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01079/1.999, allocations: 3.666 MB / 0.9686 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007188/2, allocations: 63.98 kB / 0.9687 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02542/2.025, allocations: 19.86 MB / 0.9881 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/2.025, allocations: 8 kB / 0.9881 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02631/2.051, allocations: 14.53 MB / 1.002 GB, free: 121.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/2.053, allocations: 0.5835 MB / 1.003 GB, free: 120.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002149/2.055, allocations: 56 kB / 1.003 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004452/2.06, allocations: 207.7 kB / 1.003 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001534/2.061, allocations: 230.1 kB / 1.003 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000755/2.062, allocations: 99.58 kB / 1.003 GB, free: 120 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007861/2.07, allocations: 3.764 MB / 1.007 GB, free: 116.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.82e-07/2.07, allocations: 0 / 1.007 GB, free: 116.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01099/2.081, allocations: 1.845 MB / 1.009 GB, free: 114.4 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.02843/2.11, allocations: 15.27 MB / 1.024 GB, free: 99.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0179/2.127, allocations: 9.969 MB / 1.034 GB, free: 89.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/2.128, allocations: 0 / 1.034 GB, free: 89.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006379/2.134, allocations: 3.944 MB / 1.037 GB, free: 85.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006602/2.141, allocations: 0.7876 MB / 1.038 GB, free: 84.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1173/2.258, allocations: 66.85 MB / 1.103 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007237/2.265, allocations: 4.863 MB / 1.108 GB, free: 7.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007527/2.273, allocations: 2.801 MB / 1.111 GB, free: 4.422 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004636/2.277, allocations: 3.245 MB / 1.114 GB, free: 1.176 MB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/2.277, allocations: 0 / 1.114 GB, free: 1.176 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4608/2.738, allocations: 141.7 MB / 1.253 GB, free: 86.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002885/2.739, allocations: 211.3 kB / 1.253 GB, free: 85.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.147/8.885, allocations: 0 / 1.253 GB, free: 85.8 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