Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",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.001643/0.001643, allocations: 183.8 kB / 16.4 MB, free: 5.75 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.065/2.065, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001142/0.001142, allocations: 97.28 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5519/0.5519, allocations: 43.55 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007593/0.0007597, allocations: 12 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1863, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.5485/0.7348, allocations: 62.69 MB / 0.54 GB, free: 5.836 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0561/0.791, allocations: 14.66 MB / 0.5543 GB, free: 11.87 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01932/0.8104, allocations: 323.6 kB / 0.5547 GB, free: 11.82 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01586/0.8263, allocations: 3.085 MB / 0.5577 GB, free: 10.8 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05306/0.8794, allocations: 8.938 MB / 0.5664 GB, free: 6.504 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.8901, allocations: 1.265 MB / 0.5676 GB, free: 6.027 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1042/0.9944, allocations: 28.11 MB / 0.5951 GB, free: 15.01 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02054/1.015, allocations: 6.346 MB / 0.6013 GB, free: 8.633 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00626/1.021, allocations: 1.857 MB / 0.6031 GB, free: 6.77 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006304/1.028, allocations: 2.668 MB / 0.6057 GB, free: 4.094 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001888/1.03, allocations: 248 kB / 0.6059 GB, free: 3.852 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004871/1.035, allocations: 1.159 MB / 0.6071 GB, free: 2.691 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005647/1.04, allocations: 2.786 MB / 0.6098 GB, free: 15.9 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003454/1.044, allocations: 1.314 MB / 0.6111 GB, free: 14.57 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01605/1.06, allocations: 8.888 MB / 0.6197 GB, free: 5.664 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/1.06, allocations: 3.938 kB / 0.6198 GB, free: 5.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.06, allocations: 0 / 0.6198 GB, free: 5.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004152/1.06, allocations: 0 / 0.6198 GB, free: 5.66 MB / 442.7 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.03116/1.092, allocations: 7.384 MB / 0.627 GB, free: 14.19 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/1.092, allocations: 12.03 kB / 0.627 GB, free: 14.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004217/1.096, allocations: 1.071 MB / 0.628 GB, free: 13.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3461/1.442, allocations: 15.1 MB / 0.6428 GB, free: 13.96 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02283/1.465, allocations: 6.192 MB / 0.6488 GB, free: 7.695 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005545/1.465, allocations: 373.5 kB / 0.6492 GB, free: 7.328 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00286/1.468, allocations: 0.519 MB / 0.6497 GB, free: 6.809 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05236/1.521, allocations: 16.34 MB / 0.6656 GB, free: 5.395 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004231/1.521, allocations: 87.2 kB / 0.6657 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002354/1.524, allocations: 235.8 kB / 0.6659 GB, free: 5.078 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009015/1.533, allocations: 2.919 MB / 0.6688 GB, free: 2.156 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3987/1.931, allocations: 13.69 MB / 0.6822 GB, free: 131.3 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.117/2.048, allocations: 64.52 MB / 0.7452 GB, free: 87.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03883/2.087, allocations: 7.859 MB / 0.7529 GB, free: 84.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04611/2.133, allocations: 18.93 MB / 0.7713 GB, free: 68.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.746e-05/2.134, allocations: 64.56 kB / 0.7714 GB, free: 68.34 MB / 490.7 MB Notification: Performance of pre-optimization done (n=287): time 7.505e-06/2.134, allocations: 3.75 kB / 0.7714 GB, free: 68.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=370): time 0.3166/2.45, allocations: 51.87 MB / 0.8221 GB, free: 16.28 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/2.45, allocations: 269.8 kB / 0.8223 GB, free: 15.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01411/2.464, allocations: 6.567 MB / 0.8287 GB, free: 9.391 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009893/2.466, allocations: 85.69 kB / 0.8288 GB, free: 9.301 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003839/2.469, allocations: 4.544 MB / 0.8332 GB, free: 4.762 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002236/2.472, allocations: 1.358 MB / 0.8346 GB, free: 3.414 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/2.473, allocations: 184 kB / 0.8347 GB, free: 3.234 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006812/2.474, allocations: 0.7072 MB / 0.8354 GB, free: 2.516 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01088/2.485, allocations: 3.887 MB / 0.8392 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01767/2.502, allocations: 9.087 MB / 0.8481 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/2.518, allocations: 5.756 MB / 0.8537 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001955/2.519, allocations: 56 kB / 0.8538 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.4172/2.936, allocations: 16.1 MB / 0.8695 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001847/2.936, allocations: 83.03 kB / 0.8696 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004242/2.937, allocations: 185.1 kB / 0.8698 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02474/2.961, allocations: 4.114 MB / 0.8738 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01348/2.975, allocations: 2.057 MB / 0.8758 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05737/3.032, allocations: 22.74 MB / 0.898 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/3.043, allocations: 0.5052 MB / 0.8985 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002101/3.045, allocations: 0.5331 MB / 0.899 GB, free: 139.1 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 (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.009418/3.055, allocations: 3.127 MB / 0.9021 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00198/3.057, allocations: 0.5787 MB / 0.9026 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04288/3.1, allocations: 9.845 MB / 0.9122 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/3.1, allocations: 39.92 kB / 0.9123 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.339e-05/3.1, allocations: 17.09 kB / 0.9123 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000106/3.1, allocations: 19.86 kB / 0.9123 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06842/3.169, allocations: 19.63 MB / 0.9315 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.989e-05/3.169, allocations: 3.938 kB / 0.9315 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005386/3.174, allocations: 0.5319 MB / 0.932 GB, free: 127.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02251/3.197, allocations: 3.656 MB / 0.9356 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00107/3.198, allocations: 68.58 kB / 0.9356 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04959/3.247, allocations: 20.66 MB / 0.9558 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/3.247, allocations: 0 / 0.9558 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0463/3.294, allocations: 14.59 MB / 0.9701 GB, free: 90.54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004647/3.298, allocations: 1.169 MB / 0.9712 GB, free: 89.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002226/3.301, allocations: 64.42 kB / 0.9713 GB, free: 89.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00631/3.307, allocations: 203.7 kB / 0.9715 GB, free: 89.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001699/3.309, allocations: 227.1 kB / 0.9717 GB, free: 88.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007175/3.31, allocations: 91.98 kB / 0.9718 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009826/3.319, allocations: 4.185 MB / 0.9758 GB, free: 84.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.12e-07/3.32, allocations: 0 / 0.9758 GB, free: 84.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01196/3.332, allocations: 1.869 MB / 0.9777 GB, free: 82.73 MB / 0.5105 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.05424/3.386, allocations: 15.52 MB / 0.9928 GB, free: 67.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02335/3.409, allocations: 9.936 MB / 1.003 GB, free: 57.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/3.409, allocations: 0 / 1.003 GB, free: 57.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009638/3.419, allocations: 3.933 MB / 1.006 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006192/3.425, allocations: 0.7308 MB / 1.007 GB, free: 52.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6534/4.079, allocations: 193.9 MB / 1.196 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/4.089, allocations: 5.024 MB / 1.201 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007371/4.097, allocations: 3.338 MB / 1.205 GB, free: 20.71 MB / 0.5105 GB Notification: Performance of SimCode: time 1.263e-06/4.097, allocations: 1.344 kB / 1.205 GB, free: 20.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.067/10.16, allocations: 187.6 MB / 1.388 GB, free: 63.55 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat