Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009943/0.0009943, allocations: 180.4 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.3 MB / 236 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009022/0.0009022, allocations: 95.78 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2163/0.2163, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.667e-05/3.669e-05, allocations: 8.156 kB / 451.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1472, allocations: 61.91 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.6181, allocations: 108.5 MB / 0.6078 GB, free: 12.71 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.6185, allocations: 75.95 kB / 0.6078 GB, free: 12.63 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2088/0.8273, allocations: 77.85 MB / 0.6839 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.364e-06/0.8273, allocations: 0 / 0.6839 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002142/0.8276, allocations: 68 kB / 0.6839 GB, free: 14.21 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.0124/0.84, allocations: 3.596 MB / 0.6875 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.84, allocations: 8.031 kB / 0.6875 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002694/0.8427, allocations: 0.6677 MB / 0.6881 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01782/0.8606, allocations: 4.332 MB / 0.6923 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01362/0.8743, allocations: 4.32 MB / 0.6966 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003298/0.8747, allocations: 267.1 kB / 0.6968 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/0.8765, allocations: 375.7 kB / 0.6972 GB, free: 0.5117 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01804/0.8945, allocations: 9.089 MB / 0.706 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001544/0.8948, allocations: 59.47 kB / 0.7061 GB, free: 6.352 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005281/0.8953, allocations: 175.9 kB / 0.7063 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001241/0.8965, allocations: 0.8922 MB / 0.7071 GB, free: 5.289 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3882/1.285, allocations: 7.206 MB / 0.7142 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05681/1.342, allocations: 44.12 MB / 0.7573 GB, free: 97.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/1.352, allocations: 3.48 MB / 0.7607 GB, free: 97.28 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002874/1.355, allocations: 1.592 MB / 0.7622 GB, free: 97.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/1.368, allocations: 7.179 MB / 0.7692 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/1.369, allocations: 55.94 kB / 0.7693 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=151): time 1.026e-05/1.369, allocations: 3 kB / 0.7693 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=188): time 0.05414/1.423, allocations: 16.18 MB / 0.7851 GB, free: 88.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.423, allocations: 202.7 kB / 0.7853 GB, free: 88.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007324/1.43, allocations: 3.269 MB / 0.7885 GB, free: 87.15 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004126/1.431, allocations: 51.98 kB / 0.7885 GB, free: 87.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002187/1.433, allocations: 2.842 MB / 0.7913 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009644/1.434, allocations: 0.7161 MB / 0.792 GB, free: 84.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000671/1.434, allocations: 113.7 kB / 0.7921 GB, free: 84.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005423/1.435, allocations: 0.5558 MB / 0.7927 GB, free: 83.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003501/1.439, allocations: 1.932 MB / 0.7945 GB, free: 83.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005228/1.444, allocations: 5.469 MB / 0.7999 GB, free: 77.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005065/1.449, allocations: 3.244 MB / 0.803 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/1.449, allocations: 35.28 kB / 0.8031 GB, free: 76.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01785/1.467, allocations: 8.439 MB / 0.8113 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002969/1.467, allocations: 55.69 kB / 0.8114 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00028/1.468, allocations: 131.5 kB / 0.8115 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005181/1.473, allocations: 1.467 MB / 0.8129 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0044/1.477, allocations: 1.282 MB / 0.8142 GB, free: 73.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.489, allocations: 8.011 MB / 0.822 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00544/1.494, allocations: 311 kB / 0.8223 GB, free: 68.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.495, allocations: 362.3 kB / 0.8227 GB, free: 68.05 MB / 0.5105 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 () * 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.00183/1.497, allocations: 0.5506 MB / 0.8232 GB, free: 67.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009715/1.498, allocations: 335.6 kB / 0.8235 GB, free: 67.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008681/1.507, allocations: 3.595 MB / 0.827 GB, free: 64.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-05/1.507, allocations: 20 kB / 0.827 GB, free: 64.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.582e-05/1.507, allocations: 8 kB / 0.827 GB, free: 64.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/1.507, allocations: 10.73 kB / 0.8271 GB, free: 64.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/1.527, allocations: 7.866 MB / 0.8347 GB, free: 58.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.852e-05/1.528, allocations: 3.281 kB / 0.8347 GB, free: 58.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/1.529, allocations: 246.7 kB / 0.835 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004424/1.533, allocations: 1.238 MB / 0.8362 GB, free: 57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003922/1.534, allocations: 29.64 kB / 0.8362 GB, free: 56.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/1.544, allocations: 7.28 MB / 0.8433 GB, free: 50.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.544, allocations: 0 / 0.8433 GB, free: 50.59 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.557, allocations: 6.01 MB / 0.8492 GB, free: 45.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001706/1.559, allocations: 388.7 kB / 0.8496 GB, free: 45.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001343/1.56, allocations: 28 kB / 0.8496 GB, free: 45.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/1.562, allocations: 85.75 kB / 0.8497 GB, free: 44.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000486/1.563, allocations: 112.2 kB / 0.8498 GB, free: 44.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/1.563, allocations: 44.78 kB / 0.8498 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005344/1.569, allocations: 2.27 MB / 0.852 GB, free: 42.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.824e-06/1.569, allocations: 0 / 0.852 GB, free: 42.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007566/1.576, allocations: 0.981 MB / 0.853 GB, free: 41.89 MB / 0.5105 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 () * 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.01313/1.589, allocations: 6.835 MB / 0.8597 GB, free: 35.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009505/1.599, allocations: 4.883 MB / 0.8644 GB, free: 31.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.599, allocations: 1 kB / 0.8644 GB, free: 31.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002591/1.602, allocations: 1.593 MB / 0.866 GB, free: 29.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002876/1.605, allocations: 369.2 kB / 0.8663 GB, free: 29.23 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02276/1.627, allocations: 8.035 MB / 0.8742 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004786/1.632, allocations: 3.041 MB / 0.8772 GB, free: 18.11 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005604/1.638, allocations: 1.82 MB / 0.8789 GB, free: 16.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003009/1.641, allocations: 1.647 MB / 0.8806 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of SimCode: time 2.695e-06/1.641, allocations: 3.938 kB / 0.8806 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4892/2.13, allocations: 73.95 MB / 0.9528 GB, free: 131 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/2.13, allocations: 172 kB / 0.9529 GB, free: 130.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.609/6.739, allocations: 3.938 kB / 0.9529 GB, free: 130.7 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat