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.001096/0.001096, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001084, allocations: 96.95 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1925/0.1925, allocations: 45.15 MB / 383.7 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.645e-05, allocations: 8 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.5412, allocations: 114.9 MB / 0.6167 GB, free: 3.684 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.5415, allocations: 81.27 kB / 0.6167 GB, free: 3.645 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.671/1.212, allocations: 140.6 MB / 0.754 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.394e-06/1.213, allocations: 0 / 0.754 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004868/1.213, allocations: 129.5 kB / 0.7542 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02668/1.24, allocations: 7.078 MB / 0.7611 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/1.24, allocations: 10.08 kB / 0.7611 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03253/1.272, allocations: 7.561 MB / 0.7685 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02356/1.296, allocations: 8.301 MB / 0.7766 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003883/1.296, allocations: 217.5 kB / 0.7768 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003418/1.3, allocations: 397.7 kB / 0.7772 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01646/1.316, allocations: 9.688 MB / 0.7866 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02667/1.343, allocations: 14.25 MB / 0.8005 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005487/1.344, allocations: 96.81 kB / 0.8006 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003205/1.347, allocations: 43.94 kB / 0.8007 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002392/1.349, allocations: 1.589 MB / 0.8022 GB, free: 103.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07465/1.424, allocations: 73.69 MB / 0.8742 GB, free: 52.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005696/1.43, allocations: 5.236 MB / 0.8793 GB, free: 50.21 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004014/1.434, allocations: 3.765 MB / 0.883 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002004/1.436, allocations: 2.27 MB / 0.8852 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/1.436, allocations: 63.31 kB / 0.8852 GB, free: 46.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=302): time 6.472e-06/1.436, allocations: 0 / 0.8852 GB, free: 46.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=385): time 0.08856/1.524, allocations: 40.67 MB / 0.925 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.525, allocations: 273.8 kB / 0.9252 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007366/1.532, allocations: 4.606 MB / 0.9297 GB, free: 8.801 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001029/1.533, allocations: 29.7 kB / 0.9298 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00253/1.535, allocations: 4.775 MB / 0.9344 GB, free: 4.426 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001601/1.537, allocations: 1.37 MB / 0.9358 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/1.538, allocations: 4 kB / 0.9358 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004016/1.538, allocations: 0.7063 MB / 0.9364 GB, free: 2.582 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007705/1.546, allocations: 3.91 MB / 0.9403 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009719/1.555, allocations: 8.943 MB / 0.949 GB, free: 4.957 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00985/1.565, allocations: 5.56 MB / 0.9544 GB, free: 208 kB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002288/1.566, allocations: 56 kB / 0.9545 GB, free: 152 kB / 0.5417 GB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.3626/1.928, allocations: 15.01 MB / 0.9691 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002895/1.929, allocations: 88.64 kB / 0.9692 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005578/1.929, allocations: 189.6 kB / 0.9694 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/1.941, allocations: 4.004 MB / 0.9733 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007924/1.949, allocations: 2.109 MB / 0.9754 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02691/1.976, allocations: 20.12 MB / 0.995 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008871/1.985, allocations: 384.2 kB / 0.9954 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002482/1.988, allocations: 0.5385 MB / 0.9959 GB, free: 110.7 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 (1127): * Single equations (assignments): 1122 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002729/1.991, allocations: 0.5845 MB / 0.9965 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01978/2.01, allocations: 9.308 MB / 1.006 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002083/2.013, allocations: 0.5467 MB / 1.006 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0208/2.033, allocations: 9.362 MB / 1.015 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.679e-05/2.033, allocations: 42.59 kB / 1.015 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.012e-05/2.034, allocations: 16.44 kB / 1.015 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-05/2.034, allocations: 17.44 kB / 1.015 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03782/2.071, allocations: 18.02 MB / 1.033 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.604e-05/2.072, allocations: 2.5 kB / 1.033 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/2.074, allocations: 0.5321 MB / 1.033 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01078/2.085, allocations: 3.52 MB / 1.037 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007858/2.086, allocations: 11.11 kB / 1.037 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02311/2.109, allocations: 17.68 MB / 1.054 GB, free: 92.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/2.109, allocations: 3.938 kB / 1.054 GB, free: 92.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0258/2.135, allocations: 14.15 MB / 1.068 GB, free: 80.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/2.137, allocations: 0.5385 MB / 1.069 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001835/2.139, allocations: 10.52 kB / 1.069 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003919/2.143, allocations: 171.7 kB / 1.069 GB, free: 79.56 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/2.144, allocations: 236.3 kB / 1.069 GB, free: 79.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003069/2.144, allocations: 101.5 kB / 1.069 GB, free: 79.32 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005245/2.149, allocations: 3.092 MB / 1.072 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.8e-07/2.149, allocations: 0 / 1.072 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01033/2.16, allocations: 1.623 MB / 1.074 GB, free: 75.07 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 (285): * Single equations (assignments): 280 * 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.02439/2.184, allocations: 15.39 MB / 1.089 GB, free: 61.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0145/2.199, allocations: 9.22 MB / 1.098 GB, free: 53.64 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/2.199, allocations: 11.88 kB / 1.098 GB, free: 53.63 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005657/2.205, allocations: 3.677 MB / 1.101 GB, free: 50.29 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004434/2.209, allocations: 0.5844 MB / 1.102 GB, free: 49.81 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04128/2.25, allocations: 14.99 MB / 1.116 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007332/2.258, allocations: 5.005 MB / 1.121 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008312/2.266, allocations: 2.896 MB / 1.124 GB, free: 27.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005716/2.272, allocations: 3.249 MB / 1.127 GB, free: 24.54 MB / 0.5417 GB Notification: Performance of SimCode: time 1.122e-06/2.272, allocations: 0 / 1.127 GB, free: 24.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5515/2.823, allocations: 133.1 MB / 1.257 GB, free: 93.67 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001367/2.824, allocations: 145.7 kB / 1.257 GB, free: 93.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.132/8.956, allocations: 0 / 1.257 GB, free: 93.48 MB / 0.5573 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