Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.2 MB / 245 MB, free: 5.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008868/0.0008868, allocations: 95.03 kB / 297.3 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.38/0.38, allocations: 45.24 MB / 394.6 MB, free: 31.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003428, allocations: 8.219 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3815, allocations: 63.25 MB / 0.5193 GB, free: 37.54 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.5332, allocations: 109.5 MB / 0.6262 GB, free: 9.895 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5336, allocations: 83.92 kB / 0.6263 GB, free: 9.816 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5153/1.049, allocations: 78.57 MB / 0.703 GB, free: 103.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.049, allocations: 1 kB / 0.703 GB, free: 103.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002022/1.049, allocations: 68.72 kB / 0.7031 GB, free: 103.6 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01422/1.063, allocations: 3.875 MB / 0.7069 GB, free: 101.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/1.063, allocations: 9.656 kB / 0.7069 GB, free: 101.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003287/1.067, allocations: 0.6691 MB / 0.7075 GB, free: 101.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0187/1.086, allocations: 4.324 MB / 0.7118 GB, free: 101.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01282/1.098, allocations: 3.828 MB / 0.7155 GB, free: 100.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/1.099, allocations: 271.3 kB / 0.7157 GB, free: 100.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002036/1.101, allocations: 376.1 kB / 0.7161 GB, free: 100.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01962/1.121, allocations: 9.151 MB / 0.725 GB, free: 96.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002037/1.121, allocations: 61.58 kB / 0.7251 GB, free: 96.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009041/1.122, allocations: 181.2 kB / 0.7253 GB, free: 96.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001064/1.123, allocations: 0.8887 MB / 0.7261 GB, free: 96.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/1.136, allocations: 7.33 MB / 0.7333 GB, free: 93.78 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04505/1.181, allocations: 44.13 MB / 0.7764 GB, free: 58.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008633/1.19, allocations: 3.496 MB / 0.7798 GB, free: 57.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/1.2, allocations: 7.188 MB / 0.7868 GB, free: 51.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/1.2, allocations: 51.56 kB / 0.7869 GB, free: 51.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 4.849e-06/1.2, allocations: 0 / 0.7869 GB, free: 51.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.05698/1.257, allocations: 19.34 MB / 0.8058 GB, free: 31.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/1.257, allocations: 201.2 kB / 0.806 GB, free: 31.71 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004997/1.262, allocations: 3.305 MB / 0.8092 GB, free: 28.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004562/1.263, allocations: 53.7 kB / 0.8092 GB, free: 28.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/1.265, allocations: 2.827 MB / 0.812 GB, free: 25.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008476/1.265, allocations: 0.7131 MB / 0.8127 GB, free: 24.83 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/1.266, allocations: 120 kB / 0.8128 GB, free: 24.71 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002757/1.266, allocations: 0.5539 MB / 0.8134 GB, free: 24.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/1.269, allocations: 1.975 MB / 0.8153 GB, free: 22.17 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003922/1.272, allocations: 5.529 MB / 0.8207 GB, free: 14.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003702/1.276, allocations: 3.249 MB / 0.8239 GB, free: 11.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-05/1.276, allocations: 36 kB / 0.8239 GB, free: 11.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01593/1.292, allocations: 8.568 MB / 0.8323 GB, free: 2.996 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.627e-05/1.292, allocations: 64.03 kB / 0.8323 GB, free: 2.934 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/1.292, allocations: 124 kB / 0.8324 GB, free: 2.812 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005277/1.298, allocations: 1.5 MB / 0.8339 GB, free: 1.312 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004218/1.302, allocations: 1.29 MB / 0.8352 GB, free: 20 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/1.315, allocations: 8.406 MB / 0.8434 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00495/1.32, allocations: 307.5 kB / 0.8437 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.322, allocations: 352 kB / 0.844 GB, free: 6.848 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (697): * Single equations (assignments): 693 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004269/1.326, allocations: 1.9 MB / 0.8459 GB, free: 4.941 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009015/1.327, allocations: 331.7 kB / 0.8462 GB, free: 4.613 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009762/1.337, allocations: 3.668 MB / 0.8498 GB, free: 0.9297 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.247e-05/1.337, allocations: 23.98 kB / 0.8498 GB, free: 0.9062 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.6e-05/1.337, allocations: 8 kB / 0.8498 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.022e-05/1.337, allocations: 11.91 kB / 0.8498 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/1.357, allocations: 7.947 MB / 0.8576 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/1.357, allocations: 480 / 0.8576 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/1.358, allocations: 239.7 kB / 0.8578 GB, free: 8.684 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005417/1.364, allocations: 1.277 MB / 0.859 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003226/1.364, allocations: 35.94 kB / 0.8591 GB, free: 7.371 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01269/1.377, allocations: 7.666 MB / 0.8665 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.377, allocations: 7.969 kB / 0.8666 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.39, allocations: 6.116 MB / 0.8725 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001371/1.391, allocations: 380.7 kB / 0.8729 GB, free: 9.016 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005535/1.392, allocations: 31.67 kB / 0.8729 GB, free: 8.988 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/1.393, allocations: 79.91 kB / 0.873 GB, free: 8.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/1.394, allocations: 121.1 kB / 0.8731 GB, free: 8.793 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.394, allocations: 44 kB / 0.8732 GB, free: 8.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004696/1.398, allocations: 2.305 MB / 0.8754 GB, free: 6.461 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.21e-07/1.398, allocations: 0 / 0.8754 GB, free: 6.461 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006679/1.405, allocations: 0.9726 MB / 0.8764 GB, free: 5.488 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.367/1.772, allocations: 6.934 MB / 0.8831 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01082/1.783, allocations: 4.965 MB / 0.888 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/1.783, allocations: 0 / 0.888 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002445/1.786, allocations: 1.61 MB / 0.8896 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/1.788, allocations: 369 kB / 0.8899 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1019/1.89, allocations: 118.2 MB / 1.005 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003194/1.893, allocations: 3.052 MB / 1.008 GB, free: 32.09 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004675/1.898, allocations: 1.818 MB / 1.01 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001863/1.9, allocations: 1.65 MB / 1.012 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of SimCode: time 1.954e-06/1.9, allocations: 0 / 1.012 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/2.018, allocations: 73.91 MB / 1.084 GB, free: 372 kB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/2.018, allocations: 198.9 kB / 1.084 GB, free: 128 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.7/6.719, allocations: 0 / 1.084 GB, free: 128 kB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat