Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 177.9 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 101.2 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3551/0.3551, allocations: 44.22 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003314, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3646, allocations: 61.9 MB / 0.5096 GB, free: 38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.5111, allocations: 114.7 MB / 0.6217 GB, free: 12.21 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5114, allocations: 83.94 kB / 0.6218 GB, free: 12.13 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6382/1.15, allocations: 137.8 MB / 0.7564 GB, free: 86.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.15, allocations: 0 / 0.7564 GB, free: 86.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004688/1.15, allocations: 130 kB / 0.7565 GB, free: 86.59 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.02586/1.176, allocations: 7.631 MB / 0.7639 GB, free: 81.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/1.176, allocations: 6.969 kB / 0.7639 GB, free: 81.7 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005724/1.182, allocations: 1.151 MB / 0.7651 GB, free: 80.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02993/1.212, allocations: 7.552 MB / 0.7724 GB, free: 74 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0256/1.237, allocations: 9.246 MB / 0.7815 GB, free: 64.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005775/1.238, allocations: 496.9 kB / 0.7819 GB, free: 64.18 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00404/1.242, allocations: 0.6558 MB / 0.7826 GB, free: 63.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04333/1.285, allocations: 16.73 MB / 0.7989 GB, free: 45.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006862/1.286, allocations: 99.11 kB / 0.799 GB, free: 45.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003939/1.29, allocations: 311.8 kB / 0.7993 GB, free: 44.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/1.293, allocations: 1.588 MB / 0.8009 GB, free: 43.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02925/1.322, allocations: 13.77 MB / 0.8143 GB, free: 29.54 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.455/1.777, allocations: 74.31 MB / 0.8869 GB, free: 63.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02048/1.798, allocations: 7.737 MB / 0.8945 GB, free: 62.39 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03053/1.828, allocations: 18.66 MB / 0.9127 GB, free: 58.01 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.905e-05/1.828, allocations: 71.22 kB / 0.9127 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=287): time 7.114e-06/1.829, allocations: 0 / 0.9127 GB, free: 57.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=370): time 0.1705/1.999, allocations: 49.27 MB / 0.9609 GB, free: 48.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/1.999, allocations: 270.9 kB / 0.9611 GB, free: 48.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/2.011, allocations: 5.35 MB / 0.9663 GB, free: 46.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001323/2.012, allocations: 85.73 kB / 0.9664 GB, free: 46.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004013/2.016, allocations: 4.757 MB / 0.9711 GB, free: 42.59 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002659/2.019, allocations: 1.359 MB / 0.9724 GB, free: 41.58 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009265/2.02, allocations: 187.7 kB / 0.9726 GB, free: 41.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004932/2.021, allocations: 0.6935 MB / 0.9733 GB, free: 40.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005671/2.026, allocations: 3.776 MB / 0.9769 GB, free: 37.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008767/2.035, allocations: 8.983 MB / 0.9857 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008764/2.044, allocations: 5.653 MB / 0.9912 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001845/2.044, allocations: 52 kB / 0.9913 GB, free: 22.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03926/2.083, allocations: 16.12 MB / 1.007 GB, free: 9.609 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002625/2.084, allocations: 80.19 kB / 1.007 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004102/2.084, allocations: 188 kB / 1.007 GB, free: 9.348 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01347/2.098, allocations: 4.064 MB / 1.011 GB, free: 6.555 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00757/2.105, allocations: 2.049 MB / 1.013 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03456/2.14, allocations: 21.72 MB / 1.034 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01025/2.15, allocations: 0.5462 MB / 1.035 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002456/2.153, allocations: 0.5273 MB / 1.036 GB, free: 14.09 MB / 0.5417 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.009561/2.162, allocations: 3.123 MB / 1.039 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002329/2.165, allocations: 0.5746 MB / 1.039 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02533/2.19, allocations: 9.562 MB / 1.048 GB, free: 0.7539 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.545e-05/2.19, allocations: 38.5 kB / 1.048 GB, free: 0.7188 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.024e-05/2.19, allocations: 16 kB / 1.049 GB, free: 0.7031 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.021e-05/2.19, allocations: 19.94 kB / 1.049 GB, free: 0.6836 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05414/2.244, allocations: 19.04 MB / 1.067 GB, free: 13.53 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.381e-05/2.244, allocations: 0 / 1.067 GB, free: 13.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003088/2.247, allocations: 0.507 MB / 1.068 GB, free: 13.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01343/2.261, allocations: 3.621 MB / 1.071 GB, free: 9.387 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001076/2.262, allocations: 58.89 kB / 1.071 GB, free: 9.332 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03354/2.296, allocations: 19.65 MB / 1.09 GB, free: 5.418 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/2.296, allocations: 4 kB / 1.09 GB, free: 5.414 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3802/2.676, allocations: 14.1 MB / 1.104 GB, free: 174.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00257/2.679, allocations: 0.5795 MB / 1.105 GB, free: 174 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0016/2.68, allocations: 66.06 kB / 1.105 GB, free: 174 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/2.684, allocations: 218.4 kB / 1.105 GB, free: 174 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009296/2.685, allocations: 227.1 kB / 1.105 GB, free: 174 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002705/2.685, allocations: 92.52 kB / 1.105 GB, free: 174 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.008081/2.693, allocations: 3.764 MB / 1.109 GB, free: 173.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.21e-07/2.693, allocations: 0 / 1.109 GB, free: 173.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01185/2.705, allocations: 1.849 MB / 1.111 GB, free: 173.8 MB / 0.5886 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.03266/2.738, allocations: 14.96 MB / 1.125 GB, free: 172.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02232/2.76, allocations: 9.668 MB / 1.135 GB, free: 171.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-05/2.76, allocations: 3.75 kB / 1.135 GB, free: 171.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008086/2.768, allocations: 3.793 MB / 1.139 GB, free: 169.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006392/2.774, allocations: 0.7091 MB / 1.139 GB, free: 169.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1701/2.945, allocations: 190.9 MB / 1.326 GB, free: 280 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3344/3.279, allocations: 5.149 MB / 1.331 GB, free: 178.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00938/3.289, allocations: 2.811 MB / 1.333 GB, free: 178.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006387/3.295, allocations: 3.255 MB / 1.337 GB, free: 178.4 MB / 0.5886 GB Notification: Performance of SimCode: time 2.134e-06/3.295, allocations: 0 / 1.337 GB, free: 178.4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2291/3.524, allocations: 141 MB / 1.474 GB, free: 93.14 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/3.524, allocations: 215.7 kB / 1.475 GB, free: 92.89 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.213/10.74, allocations: 4.828 kB / 1.475 GB, free: 92.89 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat