Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_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.001651/0.001651, allocations: 180 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009667/0.0009666, allocations: 86.86 kB / 270.2 MB, free: 13.37 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.2329/0.2329, allocations: 43.56 MB / 362.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.000342, allocations: 11.98 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1375, allocations: 58.85 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.6002, allocations: 112.7 MB / 0.5889 GB, free: 3.266 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.6005, allocations: 84.58 kB / 0.589 GB, free: 3.223 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6754/1.276, allocations: 136.4 MB / 0.7222 GB, free: 99.76 MB / 0.4948 GB Notification: Performance of FrontEnd: time 6.282e-06/1.276, allocations: 3.594 kB / 0.7222 GB, free: 99.76 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001984/1.278, allocations: 136.6 kB / 0.7223 GB, free: 99.75 MB / 0.4948 GB 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.03603/1.314, allocations: 7.664 MB / 0.7298 GB, free: 96.94 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/1.314, allocations: 9.344 kB / 0.7298 GB, free: 96.94 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00764/1.322, allocations: 1.146 MB / 0.7309 GB, free: 96.85 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03245/1.354, allocations: 7.555 MB / 0.7383 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0278/1.382, allocations: 9.861 MB / 0.7479 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007568/1.383, allocations: 492.4 kB / 0.7484 GB, free: 95.48 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004699/1.388, allocations: 0.6511 MB / 0.749 GB, free: 95.47 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04395/1.432, allocations: 16.72 MB / 0.7653 GB, free: 91.58 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005483/1.432, allocations: 103.8 kB / 0.7654 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003602/1.436, allocations: 312.8 kB / 0.7657 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002672/1.439, allocations: 1.579 MB / 0.7673 GB, free: 91.54 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0291/1.468, allocations: 13.75 MB / 0.7807 GB, free: 89.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09049/1.558, allocations: 74.36 MB / 0.8533 GB, free: 30.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02114/1.58, allocations: 7.693 MB / 0.8608 GB, free: 23.83 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02843/1.608, allocations: 18.61 MB / 0.879 GB, free: 7.332 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/1.608, allocations: 72.3 kB / 0.8791 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 4.769e-06/1.608, allocations: 0 / 0.8791 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.4686/2.077, allocations: 48.38 MB / 0.9263 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/2.077, allocations: 279.4 kB / 0.9266 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/2.088, allocations: 5.408 MB / 0.9319 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00112/2.089, allocations: 87.7 kB / 0.932 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003903/2.093, allocations: 4.762 MB / 0.9366 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00223/2.095, allocations: 1.34 MB / 0.9379 GB, free: 102 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009915/2.096, allocations: 185.2 kB / 0.9381 GB, free: 102 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004747/2.097, allocations: 0.7011 MB / 0.9388 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005671/2.102, allocations: 3.746 MB / 0.9424 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009211/2.112, allocations: 8.947 MB / 0.9512 GB, free: 94.95 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009417/2.121, allocations: 5.616 MB / 0.9567 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002558/2.121, allocations: 53.34 kB / 0.9567 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.0373/2.159, allocations: 16.11 MB / 0.9724 GB, free: 89.74 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001629/2.159, allocations: 81.62 kB / 0.9725 GB, free: 89.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002863/2.159, allocations: 182.9 kB / 0.9727 GB, free: 89.74 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01357/2.173, allocations: 4.082 MB / 0.9767 GB, free: 89.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007498/2.18, allocations: 2.032 MB / 0.9787 GB, free: 88.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02978/2.21, allocations: 21.76 MB / 0.9999 GB, free: 79.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009281/2.219, allocations: 0.5409 MB / 1 GB, free: 79.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002182/2.222, allocations: 0.5242 MB / 1.001 GB, free: 79.02 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 (1081): * Single equations (assignments): 1076 * 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.008342/2.23, allocations: 3.122 MB / 1.004 GB, free: 77.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001651/2.232, allocations: 0.573 MB / 1.005 GB, free: 77.27 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/2.253, allocations: 9.547 MB / 1.014 GB, free: 70.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.007e-05/2.253, allocations: 38.12 kB / 1.014 GB, free: 70.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-05/2.253, allocations: 16 kB / 1.014 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-05/2.253, allocations: 23.94 kB / 1.014 GB, free: 70.67 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04348/2.296, allocations: 19 MB / 1.033 GB, free: 55.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.062e-05/2.297, allocations: 0 / 1.033 GB, free: 55.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002933/2.3, allocations: 0.4948 MB / 1.033 GB, free: 55.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01263/2.312, allocations: 3.676 MB / 1.037 GB, free: 52.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001038/2.313, allocations: 64.56 kB / 1.037 GB, free: 52.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02559/2.339, allocations: 19.64 MB / 1.056 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/2.339, allocations: 1.094 kB / 1.056 GB, free: 35.25 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02668/2.366, allocations: 14.07 MB / 1.07 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004554/2.37, allocations: 1.11 MB / 1.071 GB, free: 19.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002463/2.373, allocations: 60 kB / 1.071 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004611/2.377, allocations: 236.9 kB / 1.071 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009431/2.378, allocations: 222.1 kB / 1.071 GB, free: 19.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002811/2.379, allocations: 84 kB / 1.071 GB, free: 19.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007315/2.386, allocations: 3.81 MB / 1.075 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.81e-07/2.386, allocations: 0 / 1.075 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01183/2.398, allocations: 1.843 MB / 1.077 GB, free: 13.72 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 (263): * Single equations (assignments): 258 * 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.026/2.424, allocations: 14.91 MB / 1.091 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.2987/2.723, allocations: 9.567 MB / 1.101 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/2.723, allocations: 1.375 kB / 1.101 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007224/2.73, allocations: 3.74 MB / 1.104 GB, free: 116 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005717/2.736, allocations: 0.7159 MB / 1.105 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1635/2.899, allocations: 191.1 MB / 1.292 GB, free: 7.047 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007683/2.907, allocations: 5.001 MB / 1.296 GB, free: 5.457 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008471/2.915, allocations: 2.793 MB / 1.299 GB, free: 5.23 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005596/2.921, allocations: 3.26 MB / 1.302 GB, free: 2.559 MB / 0.573 GB Notification: Performance of SimCode: time 2.164e-06/2.921, allocations: 0 / 1.302 GB, free: 2.559 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.532/3.453, allocations: 141.3 MB / 1.44 GB, free: 115.4 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/3.453, allocations: 207.8 kB / 1.441 GB, free: 115.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.464/10.92, allocations: 3.938 kB / 1.441 GB, free: 115.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat