Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 97.92 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2168/0.2168, allocations: 45.15 MB / 383.8 MB, free: 260 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.473e-05/3.482e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1254, allocations: 63.25 MB / 0.5044 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4817/0.6072, allocations: 114.7 MB / 0.6165 GB, free: 3.875 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.6075, allocations: 75.03 kB / 0.6165 GB, free: 3.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6751/1.283, allocations: 140.6 MB / 0.7539 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.775e-06/1.283, allocations: 2.25 kB / 0.7539 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000749/1.283, allocations: 129.5 kB / 0.754 GB, free: 109.3 MB / 0.5261 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.02741/1.311, allocations: 7.072 MB / 0.7609 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/1.311, allocations: 9.328 kB / 0.7609 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03289/1.344, allocations: 7.563 MB / 0.7683 GB, free: 108 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02342/1.367, allocations: 8.301 MB / 0.7764 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004031/1.368, allocations: 213.2 kB / 0.7766 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003435/1.371, allocations: 399.6 kB / 0.777 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01942/1.391, allocations: 9.658 MB / 0.7864 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03861/1.429, allocations: 14.22 MB / 0.8003 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007665/1.43, allocations: 101.6 kB / 0.8004 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003815/1.434, allocations: 41.31 kB / 0.8004 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002718/1.437, allocations: 1.581 MB / 0.802 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08724/1.524, allocations: 73.62 MB / 0.8739 GB, free: 52.97 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006312/1.53, allocations: 5.129 MB / 0.8789 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00406/1.534, allocations: 3.716 MB / 0.8825 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002063/1.537, allocations: 2.259 MB / 0.8847 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/1.537, allocations: 66.22 kB / 0.8848 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=296): time 6.502e-06/1.537, allocations: 0 / 0.8848 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=379): time 0.09158/1.628, allocations: 40.63 MB / 0.9244 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/1.628, allocations: 277.6 kB / 0.9247 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008101/1.636, allocations: 4.612 MB / 0.9292 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00101/1.637, allocations: 29.7 kB / 0.9292 GB, free: 9.387 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003271/1.641, allocations: 4.768 MB / 0.9339 GB, free: 5.051 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002058/1.643, allocations: 1.354 MB / 0.9352 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008871/1.644, allocations: 0 / 0.9352 GB, free: 3.828 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004463/1.644, allocations: 0.7066 MB / 0.9359 GB, free: 3.227 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004663/1.649, allocations: 3.609 MB / 0.9394 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0096/1.659, allocations: 8.909 MB / 0.9481 GB, free: 4.984 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008935/1.668, allocations: 5.536 MB / 0.9535 GB, free: 256 kB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000193/1.668, allocations: 59.94 kB / 0.9536 GB, free: 196 kB / 0.5417 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.3767/2.044, allocations: 14.99 MB / 0.9682 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001905/2.045, allocations: 88.95 kB / 0.9683 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005092/2.045, allocations: 187.6 kB / 0.9685 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/2.059, allocations: 4.061 MB / 0.9725 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008095/2.067, allocations: 2.102 MB / 0.9745 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02677/2.094, allocations: 20.1 MB / 0.9942 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009015/2.103, allocations: 375.2 kB / 0.9945 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002322/2.105, allocations: 0.5381 MB / 0.995 GB, free: 110.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1121): * Single equations (assignments): 1116 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002233/2.107, allocations: 0.5922 MB / 0.9956 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01959/2.127, allocations: 9.301 MB / 1.005 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001819/2.129, allocations: 0.5401 MB / 1.005 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0214/2.15, allocations: 9.355 MB / 1.014 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-05/2.151, allocations: 40.42 kB / 1.014 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.745e-05/2.151, allocations: 21.19 kB / 1.014 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-05/2.151, allocations: 17.25 kB / 1.014 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03804/2.189, allocations: 17.96 MB / 1.032 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.244e-05/2.189, allocations: 3.781 kB / 1.032 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002719/2.192, allocations: 0.5274 MB / 1.032 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01152/2.203, allocations: 3.572 MB / 1.036 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006748/2.204, allocations: 11.75 kB / 1.036 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02324/2.227, allocations: 17.68 MB / 1.053 GB, free: 92.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.438e-06/2.227, allocations: 7.938 kB / 1.053 GB, free: 92.41 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02398/2.251, allocations: 14.1 MB / 1.067 GB, free: 80.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001785/2.253, allocations: 0.5445 MB / 1.068 GB, free: 80.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001367/2.254, allocations: 7.953 kB / 1.068 GB, free: 80.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002964/2.257, allocations: 175.2 kB / 1.068 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007346/2.258, allocations: 236.3 kB / 1.068 GB, free: 79.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/2.258, allocations: 95.23 kB / 1.068 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005236/2.264, allocations: 3.099 MB / 1.071 GB, free: 77.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.082e-06/2.264, allocations: 0 / 1.071 GB, free: 77.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009755/2.273, allocations: 1.614 MB / 1.073 GB, free: 75.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 274 * 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.02339/2.297, allocations: 15.33 MB / 1.088 GB, free: 62.44 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01333/2.31, allocations: 9.139 MB / 1.097 GB, free: 54.15 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.31, allocations: 3.125 kB / 1.097 GB, free: 54.15 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00508/2.315, allocations: 3.636 MB / 1.1 GB, free: 50.85 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/2.319, allocations: 0.592 MB / 1.101 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/2.355, allocations: 14.95 MB / 1.115 GB, free: 36 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005732/2.36, allocations: 4.993 MB / 1.12 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007713/2.368, allocations: 2.876 MB / 1.123 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005018/2.373, allocations: 3.237 MB / 1.126 GB, free: 24.94 MB / 0.5417 GB Notification: Performance of SimCode: time 1.152e-06/2.373, allocations: 0 / 1.126 GB, free: 24.94 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5422/2.915, allocations: 132.9 MB / 1.256 GB, free: 94.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/2.916, allocations: 141 kB / 1.256 GB, free: 93.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.345/9.26, allocations: 0 / 1.256 GB, free: 93.99 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat