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.00155/0.00155, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.12/2.12, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001146/0.001146, allocations: 96.36 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.5194/0.5194, allocations: 43.56 MB / 362.7 MB, free: 51.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006785/0.0006785, allocations: 12 kB / 431.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1349, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5206/0.6556, allocations: 112.8 MB / 0.589 GB, free: 5.523 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.6559, allocations: 79.95 kB / 0.5891 GB, free: 5.445 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9195/1.575, allocations: 136.4 MB / 0.7222 GB, free: 86.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.258e-06/1.575, allocations: 1.531 kB / 0.7222 GB, free: 86.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005757/1.576, allocations: 137.6 kB / 0.7223 GB, free: 86.88 MB / 490.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.03572/1.612, allocations: 7.671 MB / 0.7298 GB, free: 83.94 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/1.612, allocations: 11.09 kB / 0.7298 GB, free: 83.94 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005879/1.618, allocations: 1.147 MB / 0.731 GB, free: 83.85 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05673/1.675, allocations: 7.559 MB / 0.7383 GB, free: 83.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03573/1.71, allocations: 9.857 MB / 0.748 GB, free: 81.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/1.711, allocations: 484.4 kB / 0.7484 GB, free: 80.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004076/1.715, allocations: 0.6534 MB / 0.7491 GB, free: 80.71 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05448/1.77, allocations: 16.74 MB / 0.7654 GB, free: 72.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005186/1.77, allocations: 103.1 kB / 0.7655 GB, free: 72.31 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003176/1.773, allocations: 319.4 kB / 0.7658 GB, free: 72.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/1.777, allocations: 1.59 MB / 0.7674 GB, free: 71.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0461/1.823, allocations: 13.76 MB / 0.7808 GB, free: 65.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1242/1.948, allocations: 74.43 MB / 0.8535 GB, free: 4.996 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4142/2.362, allocations: 7.729 MB / 0.861 GB, free: 94.15 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04896/2.411, allocations: 18.7 MB / 0.8793 GB, free: 89.82 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.342e-05/2.411, allocations: 70.23 kB / 0.8794 GB, free: 89.78 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=287): time 6.422e-06/2.411, allocations: 0 / 0.8794 GB, free: 89.78 MB / 0.4948 GB Notification: Performance of matching and sorting (n=370): time 0.3108/2.722, allocations: 49.49 MB / 0.9277 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/2.722, allocations: 271.9 kB / 0.9279 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01435/2.736, allocations: 5.41 MB / 0.9332 GB, free: 77.98 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001158/2.737, allocations: 86.67 kB / 0.9333 GB, free: 77.9 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004459/2.742, allocations: 4.562 MB / 0.9378 GB, free: 74.32 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002364/2.744, allocations: 1.355 MB / 0.9391 GB, free: 73.31 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001868/2.746, allocations: 193.7 kB / 0.9393 GB, free: 73.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001451/2.748, allocations: 0.7013 MB / 0.94 GB, free: 72.68 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01487/2.763, allocations: 3.772 MB / 0.9436 GB, free: 71.41 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/2.777, allocations: 8.983 MB / 0.9524 GB, free: 63.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01388/2.791, allocations: 5.646 MB / 0.9579 GB, free: 60.89 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001922/2.791, allocations: 52.25 kB / 0.958 GB, free: 60.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05714/2.848, allocations: 15.9 MB / 0.9735 GB, free: 53.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/2.849, allocations: 84 kB / 0.9736 GB, free: 53.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003703/2.849, allocations: 184 kB / 0.9738 GB, free: 52.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02367/2.873, allocations: 4.069 MB / 0.9777 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01318/2.886, allocations: 2.04 MB / 0.9797 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0529/2.939, allocations: 21.74 MB / 1.001 GB, free: 29.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.951, allocations: 0.5477 MB / 1.001 GB, free: 29.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002493/2.953, allocations: 0.5183 MB / 1.002 GB, free: 28.76 MB / 0.4948 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.01036/2.964, allocations: 3.14 MB / 1.005 GB, free: 26.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001884/2.966, allocations: 0.5784 MB / 1.006 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03735/3.003, allocations: 9.556 MB / 1.015 GB, free: 17.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-05/3.003, allocations: 40 kB / 1.015 GB, free: 17.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.036e-05/3.003, allocations: 16 kB / 1.015 GB, free: 17.46 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.684e-05/3.003, allocations: 23.92 kB / 1.015 GB, free: 17.44 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06623/3.07, allocations: 19.05 MB / 1.034 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.8e-05/3.07, allocations: 10.42 kB / 1.034 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005389/3.075, allocations: 0.507 MB / 1.034 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.024/3.099, allocations: 3.615 MB / 1.038 GB, free: 10.13 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/3.1, allocations: 63.05 kB / 1.038 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4468/3.547, allocations: 19.63 MB / 1.057 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/3.547, allocations: 0 / 1.057 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04795/3.595, allocations: 14.11 MB / 1.071 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004746/3.6, allocations: 1.128 MB / 1.072 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002513/3.602, allocations: 62.44 kB / 1.072 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006665/3.609, allocations: 221.8 kB / 1.072 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001733/3.611, allocations: 234.7 kB / 1.072 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000752/3.612, allocations: 90.7 kB / 1.072 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01108/3.623, allocations: 3.804 MB / 1.076 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.21e-07/3.623, allocations: 0 / 1.076 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01309/3.636, allocations: 1.849 MB / 1.078 GB, free: 110.5 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 (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.05275/3.689, allocations: 14.97 MB / 1.093 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02536/3.714, allocations: 9.67 MB / 1.102 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/3.714, allocations: 3.375 kB / 1.102 GB, free: 103.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009921/3.724, allocations: 3.783 MB / 1.106 GB, free: 102 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006853/3.731, allocations: 0.7224 MB / 1.106 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5997/4.331, allocations: 192.5 MB / 1.294 GB, free: 178.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01356/4.344, allocations: 5.019 MB / 1.299 GB, free: 177.8 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009344/4.354, allocations: 3.339 MB / 1.303 GB, free: 177.8 MB / 0.5886 GB Notification: Performance of SimCode: time 1.633e-06/4.354, allocations: 0 / 1.303 GB, free: 177.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.934/10.29, allocations: 187 MB / 1.485 GB, free: 57.51 MB / 0.5886 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