Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001833/0.001833, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001001, allocations: 96.64 kB / 297.2 MB, free: 6.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3724/0.3724, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002932, allocations: 8 kB / 468.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4168, allocations: 63.24 MB / 0.5193 GB, free: 43.74 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.5653, allocations: 115.6 MB / 0.6322 GB, free: 5.914 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.5656, allocations: 83.92 kB / 0.6323 GB, free: 5.836 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6856/1.251, allocations: 143.1 MB / 0.772 GB, free: 92.67 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.954e-06/1.251, allocations: 0 / 0.772 GB, free: 92.67 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004019/1.252, allocations: 131.6 kB / 0.7721 GB, free: 92.67 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02515/1.277, allocations: 7.672 MB / 0.7796 GB, free: 87.97 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/1.277, allocations: 11.38 kB / 0.7796 GB, free: 87.97 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005186/1.282, allocations: 1.144 MB / 0.7807 GB, free: 87.21 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0303/1.312, allocations: 7.554 MB / 0.7881 GB, free: 83.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02455/1.337, allocations: 8.356 MB / 0.7963 GB, free: 78.77 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006312/1.338, allocations: 492.4 kB / 0.7967 GB, free: 78.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004008/1.342, allocations: 0.6524 MB / 0.7974 GB, free: 77.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04685/1.389, allocations: 16.74 MB / 0.8137 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007619/1.389, allocations: 95.12 kB / 0.8138 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004701/1.394, allocations: 318.3 kB / 0.8141 GB, free: 59.26 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002756/1.397, allocations: 1.58 MB / 0.8157 GB, free: 57.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/1.43, allocations: 13.77 MB / 0.8291 GB, free: 43.88 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4716/1.901, allocations: 74.33 MB / 0.9017 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02359/1.925, allocations: 7.732 MB / 0.9092 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03289/1.958, allocations: 18.66 MB / 0.9275 GB, free: 98.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.914e-05/1.958, allocations: 66.48 kB / 0.9275 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 5.43e-06/1.958, allocations: 0 / 0.9275 GB, free: 98.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370): time 0.1701/2.128, allocations: 49.28 MB / 0.9757 GB, free: 89.15 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/2.128, allocations: 278.1 kB / 0.9759 GB, free: 88.86 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/2.139, allocations: 5.348 MB / 0.9811 GB, free: 86.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001026/2.14, allocations: 84.3 kB / 0.9812 GB, free: 86.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003582/2.144, allocations: 4.749 MB / 0.9859 GB, free: 83.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002068/2.146, allocations: 1.366 MB / 0.9872 GB, free: 82.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007259/2.147, allocations: 188.7 kB / 0.9874 GB, free: 82.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004462/2.147, allocations: 0.6911 MB / 0.9881 GB, free: 81.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005178/2.152, allocations: 3.777 MB / 0.9917 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007896/2.16, allocations: 8.983 MB / 1.001 GB, free: 72.11 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00934/2.17, allocations: 5.64 MB / 1.006 GB, free: 69.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002097/2.17, allocations: 54.28 kB / 1.006 GB, free: 69.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.04162/2.212, allocations: 16.12 MB / 1.022 GB, free: 57.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003989/2.212, allocations: 84 kB / 1.022 GB, free: 57.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004434/2.213, allocations: 180.9 kB / 1.022 GB, free: 57.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01397/2.227, allocations: 4.075 MB / 1.026 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008302/2.235, allocations: 2.044 MB / 1.028 GB, free: 52.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03218/2.267, allocations: 21.74 MB / 1.049 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/2.278, allocations: 0.5446 MB / 1.05 GB, free: 32.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002777/2.281, allocations: 0.5273 MB / 1.05 GB, free: 32.21 MB / 0.5261 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.009422/2.29, allocations: 3.12 MB / 1.053 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002167/2.293, allocations: 0.5707 MB / 1.054 GB, free: 28.51 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02341/2.316, allocations: 9.563 MB / 1.063 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.147e-05/2.316, allocations: 43.44 kB / 1.063 GB, free: 18.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-05/2.316, allocations: 16 kB / 1.063 GB, free: 18.84 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-05/2.316, allocations: 15.94 kB / 1.063 GB, free: 18.82 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04964/2.366, allocations: 19.04 MB / 1.082 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.918e-05/2.366, allocations: 4 kB / 1.082 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003423/2.369, allocations: 0.5032 MB / 1.082 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01392/2.383, allocations: 3.621 MB / 1.086 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001136/2.385, allocations: 61.25 kB / 1.086 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4208/2.805, allocations: 19.64 MB / 1.105 GB, free: 131.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/2.805, allocations: 1.5 kB / 1.105 GB, free: 131.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03064/2.836, allocations: 14.1 MB / 1.119 GB, free: 130.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002213/2.838, allocations: 0.5805 MB / 1.12 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001992/2.84, allocations: 60.03 kB / 1.12 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004911/2.845, allocations: 231.2 kB / 1.12 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001559/2.847, allocations: 232.1 kB / 1.12 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004775/2.847, allocations: 90 kB / 1.12 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009635/2.857, allocations: 3.762 MB / 1.124 GB, free: 130.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.61e-07/2.857, allocations: 3.469 kB / 1.124 GB, free: 130.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01332/2.87, allocations: 1.852 MB / 1.126 GB, free: 130.6 MB / 0.5573 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.03415/2.905, allocations: 14.96 MB / 1.14 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02137/2.926, allocations: 9.678 MB / 1.15 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/2.926, allocations: 0 / 1.15 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.008519/2.935, allocations: 3.795 MB / 1.153 GB, free: 125 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006409/2.941, allocations: 0.7164 MB / 1.154 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1912/3.132, allocations: 190.9 MB / 1.341 GB, free: 4.27 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/3.146, allocations: 5.006 MB / 1.345 GB, free: 0.6094 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01848/3.164, allocations: 3.387 MB / 1.349 GB, free: 0 / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3654/3.53, allocations: 3.765 MB / 1.352 GB, free: 181.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.573e-06/3.53, allocations: 0 / 1.352 GB, free: 181.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2425/3.772, allocations: 140.9 MB / 1.49 GB, free: 106.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/3.773, allocations: 210.6 kB / 1.49 GB, free: 106.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/11.36, allocations: 0 / 1.49 GB, free: 106.3 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat