Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002002/0.002007, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00147/0.001469, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2923/0.2923, allocations: 43.56 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004425/0.0004424, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1204, allocations: 58.86 MB / 490.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.4238/0.5442, allocations: 62.65 MB / 0.54 GB, free: 9.613 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.05818/0.6024, allocations: 14.67 MB / 0.5543 GB, free: 3.711 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01644/0.6189, allocations: 320.3 kB / 0.5546 GB, free: 3.66 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.6306, allocations: 3.089 MB / 0.5577 GB, free: 1.953 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03895/0.6696, allocations: 8.939 MB / 0.5664 GB, free: 12.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007229/0.6768, allocations: 1.265 MB / 0.5676 GB, free: 11.44 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.07729/0.7542, allocations: 28.1 MB / 0.5951 GB, free: 1.125 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01407/0.7683, allocations: 6.357 MB / 0.6013 GB, free: 10.71 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005093/0.7735, allocations: 1.861 MB / 0.6031 GB, free: 8.844 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006108/0.7796, allocations: 2.641 MB / 0.6057 GB, free: 6.195 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.7816, allocations: 252 kB / 0.6059 GB, free: 5.949 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004737/0.7863, allocations: 1.166 MB / 0.607 GB, free: 4.781 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005584/0.792, allocations: 2.77 MB / 0.6097 GB, free: 2.004 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003293/0.7953, allocations: 1.318 MB / 0.611 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01553/0.8109, allocations: 8.865 MB / 0.6197 GB, free: 7.789 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.811, allocations: 0 / 0.6197 GB, free: 7.789 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.811, allocations: 7.875 kB / 0.6197 GB, free: 7.781 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003796/0.8114, allocations: 0 / 0.6197 GB, free: 7.781 MB / 426.7 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.03019/0.8416, allocations: 7.365 MB / 0.6269 GB, free: 340 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.8417, allocations: 8.031 kB / 0.6269 GB, free: 332 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003793/0.8455, allocations: 1.087 MB / 0.628 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3372/1.183, allocations: 15.1 MB / 0.6427 GB, free: 96 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02221/1.205, allocations: 6.191 MB / 0.6488 GB, free: 9.824 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005355/1.206, allocations: 365.5 kB / 0.6491 GB, free: 9.465 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002684/1.208, allocations: 0.5112 MB / 0.6496 GB, free: 8.953 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05057/1.259, allocations: 16.34 MB / 0.6656 GB, free: 7.543 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003603/1.259, allocations: 79.31 kB / 0.6656 GB, free: 7.465 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001875/1.261, allocations: 231.8 kB / 0.6659 GB, free: 7.238 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008708/1.27, allocations: 2.919 MB / 0.6687 GB, free: 4.312 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0494/1.319, allocations: 13.68 MB / 0.6821 GB, free: 6.609 MB / 490.7 MB 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.565/1.885, allocations: 64.43 MB / 0.745 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04098/1.926, allocations: 7.828 MB / 0.7526 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04681/1.972, allocations: 18.85 MB / 0.771 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.593e-05/1.973, allocations: 67.02 kB / 0.7711 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 7.083e-06/1.973, allocations: 0 / 0.7711 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=362): time 0.2872/2.26, allocations: 47.62 MB / 0.8176 GB, free: 92.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.26, allocations: 269.2 kB / 0.8179 GB, free: 92.01 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01266/2.273, allocations: 6.571 MB / 0.8243 GB, free: 85.43 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009283/2.274, allocations: 81.7 kB / 0.8244 GB, free: 85.35 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003702/2.277, allocations: 4.551 MB / 0.8288 GB, free: 80.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002031/2.279, allocations: 1.332 MB / 0.8301 GB, free: 79.48 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/2.281, allocations: 188 kB / 0.8303 GB, free: 79.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005732/2.281, allocations: 0.6954 MB / 0.831 GB, free: 78.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009563/2.291, allocations: 3.844 MB / 0.8347 GB, free: 74.74 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01321/2.304, allocations: 9.057 MB / 0.8436 GB, free: 63.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/2.317, allocations: 5.702 MB / 0.8491 GB, free: 57.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/2.317, allocations: 52 kB / 0.8492 GB, free: 57.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.05417/2.371, allocations: 16.07 MB / 0.8649 GB, free: 41.33 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/2.372, allocations: 84 kB / 0.8649 GB, free: 41.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002468/2.372, allocations: 180.9 kB / 0.8651 GB, free: 41.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02381/2.396, allocations: 4.13 MB / 0.8691 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01245/2.408, allocations: 2.047 MB / 0.8711 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05271/2.461, allocations: 22.77 MB / 0.8934 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01037/2.471, allocations: 0.5029 MB / 0.8939 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001911/2.473, allocations: 0.5273 MB / 0.8944 GB, free: 10.83 MB / 0.5105 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.007865/2.481, allocations: 3.127 MB / 0.8974 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/2.483, allocations: 0.5746 MB / 0.898 GB, free: 7.105 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03913/2.522, allocations: 9.796 MB / 0.9076 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.358e-05/2.522, allocations: 36 kB / 0.9076 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.576e-05/2.522, allocations: 20 kB / 0.9076 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.171e-05/2.522, allocations: 15.94 kB / 0.9076 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4185/2.941, allocations: 19.51 MB / 0.9267 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.801e-05/2.941, allocations: 5.656 kB / 0.9267 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006033/2.947, allocations: 0.5194 MB / 0.9272 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02534/2.972, allocations: 3.725 MB / 0.9308 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001028/2.973, allocations: 61.23 kB / 0.9309 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05386/3.027, allocations: 20.68 MB / 0.9511 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/3.027, allocations: 3.047 kB / 0.9511 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04871/3.076, allocations: 14.49 MB / 0.9652 GB, free: 165.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00444/3.081, allocations: 1.162 MB / 0.9664 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002265/3.083, allocations: 56.92 kB / 0.9664 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006206/3.089, allocations: 211.8 kB / 0.9666 GB, free: 164.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001642/3.091, allocations: 225.3 kB / 0.9668 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007221/3.092, allocations: 95.95 kB / 0.9669 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009875/3.102, allocations: 4.184 MB / 0.971 GB, free: 160.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.91e-07/3.102, allocations: 0 / 0.971 GB, free: 160.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01178/3.113, allocations: 1.864 MB / 0.9728 GB, free: 158.6 MB / 0.5261 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.04767/3.161, allocations: 15.39 MB / 0.9879 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02724/3.188, allocations: 9.813 MB / 0.9975 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/3.189, allocations: 3.938 kB / 0.9975 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01389/3.202, allocations: 3.885 MB / 1.001 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008577/3.211, allocations: 0.7229 MB / 1.002 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6544/3.866, allocations: 193.6 MB / 1.191 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009545/3.875, allocations: 5.002 MB / 1.196 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007068/3.882, allocations: 3.323 MB / 1.199 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of SimCode: time 1.794e-06/3.882, allocations: 3.906 kB / 1.199 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.911/9.794, allocations: 187 MB / 1.382 GB, free: 137.9 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat