Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009606/0.0009607, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008141/0.0008141, allocations: 90.2 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1832/0.1832, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.918e-05, allocations: 0 / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 58.85 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4594, allocations: 112 MB / 0.5754 GB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.4597, allocations: 76.25 kB / 0.5754 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3786/0.8382, allocations: 133.8 MB / 0.7061 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.194e-06/0.8383, allocations: 0 / 0.7061 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004465/0.8388, allocations: 132 kB / 0.7062 GB, free: 1.43 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.3071/1.146, allocations: 7.039 MB / 0.7131 GB, free: 98.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/1.146, allocations: 10.69 kB / 0.7131 GB, free: 98.78 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03502/1.181, allocations: 7.564 MB / 0.7205 GB, free: 98.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02502/1.206, allocations: 9.795 MB / 0.73 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004632/1.207, allocations: 207.3 kB / 0.7302 GB, free: 97.82 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003301/1.21, allocations: 396 kB / 0.7306 GB, free: 97.81 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01785/1.228, allocations: 9.665 MB / 0.74 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03034/1.258, allocations: 14.22 MB / 0.7539 GB, free: 93.92 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007829/1.259, allocations: 102.3 kB / 0.754 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0036/1.263, allocations: 43 kB / 0.7541 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002539/1.265, allocations: 1.579 MB / 0.7556 GB, free: 93.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08355/1.349, allocations: 73.7 MB / 0.8276 GB, free: 43.46 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006634/1.355, allocations: 5.137 MB / 0.8326 GB, free: 40.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004472/1.36, allocations: 3.71 MB / 0.8362 GB, free: 39.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002137/1.362, allocations: 2.261 MB / 0.8384 GB, free: 37.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/1.362, allocations: 68.31 kB / 0.8385 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=296): time 7.695e-06/1.362, allocations: 0 / 0.8385 GB, free: 37.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=379): time 0.09009/1.452, allocations: 40.84 MB / 0.8784 GB, free: 3.406 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.839e-05/1.452, allocations: 269.8 kB / 0.8786 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00763/1.46, allocations: 4.734 MB / 0.8833 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009279/1.461, allocations: 25.7 kB / 0.8833 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003919/1.465, allocations: 4.79 MB / 0.888 GB, free: 10.79 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002017/1.467, allocations: 1.349 MB / 0.8893 GB, free: 9.562 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005392/1.468, allocations: 0 / 0.8893 GB, free: 9.562 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005586/1.468, allocations: 0.7101 MB / 0.89 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005055/1.473, allocations: 3.62 MB / 0.8935 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3082/1.781, allocations: 8.895 MB / 0.9022 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/1.792, allocations: 5.534 MB / 0.9076 GB, free: 102 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000401/1.793, allocations: 55 kB / 0.9076 GB, free: 102 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03931/1.832, allocations: 15.01 MB / 0.9223 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002081/1.832, allocations: 85.31 kB / 0.9224 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000253/1.832, allocations: 187.4 kB / 0.9226 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01283/1.845, allocations: 4.064 MB / 0.9265 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007821/1.853, allocations: 2.105 MB / 0.9286 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02664/1.88, allocations: 20.09 MB / 0.9482 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008231/1.888, allocations: 381.5 kB / 0.9486 GB, free: 98.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0021/1.89, allocations: 0.5351 MB / 0.9491 GB, free: 98.77 MB / 0.5105 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.001854/1.892, allocations: 0.5787 MB / 0.9497 GB, free: 98.47 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01864/1.911, allocations: 9.318 MB / 0.9588 GB, free: 97.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/1.913, allocations: 0.5433 MB / 0.9593 GB, free: 97.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02124/1.934, allocations: 9.353 MB / 0.9684 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.905e-05/1.934, allocations: 41.19 kB / 0.9685 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.046e-05/1.934, allocations: 13.62 kB / 0.9685 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.623e-05/1.934, allocations: 22.77 kB / 0.9685 GB, free: 94.79 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03581/1.97, allocations: 18 MB / 0.9861 GB, free: 88.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.114e-05/1.97, allocations: 0 / 0.9861 GB, free: 88.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/1.973, allocations: 0.5314 MB / 0.9866 GB, free: 88.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0114/1.985, allocations: 3.579 MB / 0.9901 GB, free: 87.95 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008854/1.985, allocations: 7.688 kB / 0.9901 GB, free: 87.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02316/2.009, allocations: 17.68 MB / 1.007 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.646e-06/2.009, allocations: 0 / 1.007 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02465/2.033, allocations: 14.11 MB / 1.021 GB, free: 64.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003346/2.037, allocations: 1.088 MB / 1.022 GB, free: 63.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00132/2.038, allocations: 4 kB / 1.022 GB, free: 63.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00355/2.042, allocations: 189.9 kB / 1.022 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007365/2.042, allocations: 229.9 kB / 1.023 GB, free: 63.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002689/2.043, allocations: 101 kB / 1.023 GB, free: 63.09 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006481/2.049, allocations: 3.138 MB / 1.026 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.61e-07/2.049, allocations: 3.281 kB / 1.026 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01077/2.06, allocations: 1.611 MB / 1.027 GB, free: 58.8 MB / 0.5105 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.02422/2.084, allocations: 15.32 MB / 1.042 GB, free: 45.69 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01734/2.102, allocations: 9.139 MB / 1.051 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/2.102, allocations: 8 kB / 1.051 GB, free: 36.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005247/2.107, allocations: 3.635 MB / 1.055 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004202/2.111, allocations: 0.583 MB / 1.055 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03925/2.151, allocations: 15 MB / 1.07 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007513/2.158, allocations: 5.014 MB / 1.075 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007883/2.166, allocations: 2.879 MB / 1.078 GB, free: 9.391 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005126/2.171, allocations: 3.252 MB / 1.081 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of SimCode: time 1.323e-06/2.171, allocations: 0 / 1.081 GB, free: 6.137 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5472/2.718, allocations: 133.4 MB / 1.211 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/2.719, allocations: 141.1 kB / 1.211 GB, free: 60.29 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.528/9.247, allocations: 3.938 kB / 1.211 GB, free: 60.29 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat