Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.001611/0.001611, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.411/1.411, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 99.19 kB / 292.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3665/0.3665, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 8 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.4034, allocations: 61.9 MB / 0.5096 GB, free: 38.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.5652, allocations: 114.5 MB / 0.6215 GB, free: 12.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5655, allocations: 91.91 kB / 0.6216 GB, free: 12.42 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6185/1.184, allocations: 137.9 MB / 0.7562 GB, free: 86.85 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.184, allocations: 0 / 0.7562 GB, free: 86.85 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005225/1.185, allocations: 128.9 kB / 0.7563 GB, free: 86.85 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02549/1.21, allocations: 7.617 MB / 0.7638 GB, free: 81.96 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/1.21, allocations: 9.594 kB / 0.7638 GB, free: 81.96 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006811/1.217, allocations: 1.146 MB / 0.7649 GB, free: 81.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03093/1.248, allocations: 7.557 MB / 0.7723 GB, free: 74.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0251/1.273, allocations: 9.231 MB / 0.7813 GB, free: 65.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/1.274, allocations: 492.9 kB / 0.7817 GB, free: 64.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003645/1.277, allocations: 0.6674 MB / 0.7824 GB, free: 63.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03974/1.317, allocations: 16.72 MB / 0.7987 GB, free: 45.74 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006363/1.318, allocations: 107 kB / 0.7988 GB, free: 45.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003617/1.321, allocations: 315.8 kB / 0.7991 GB, free: 45.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00261/1.324, allocations: 1.572 MB / 0.8007 GB, free: 43.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02944/1.354, allocations: 13.75 MB / 0.8141 GB, free: 29.97 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4486/1.802, allocations: 74.24 MB / 0.8866 GB, free: 63.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02163/1.824, allocations: 7.705 MB / 0.8941 GB, free: 62.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03087/1.855, allocations: 18.57 MB / 0.9123 GB, free: 58.24 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.593e-05/1.855, allocations: 72.14 kB / 0.9123 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.142e-06/1.855, allocations: 0 / 0.9123 GB, free: 58.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1653/2.02, allocations: 48.19 MB / 0.9594 GB, free: 49 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/2.021, allocations: 273.5 kB / 0.9596 GB, free: 48.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/2.031, allocations: 5.348 MB / 0.9649 GB, free: 46.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001122/2.032, allocations: 82.36 kB / 0.9649 GB, free: 46.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003449/2.036, allocations: 4.764 MB / 0.9696 GB, free: 43.14 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002054/2.038, allocations: 1.337 MB / 0.9709 GB, free: 42.15 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005337/2.038, allocations: 185.5 kB / 0.9711 GB, free: 42.01 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004324/2.039, allocations: 0.6894 MB / 0.9717 GB, free: 41.54 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005249/2.044, allocations: 3.751 MB / 0.9754 GB, free: 39.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007554/2.052, allocations: 8.953 MB / 0.9842 GB, free: 28.49 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007427/2.059, allocations: 5.612 MB / 0.9896 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/2.059, allocations: 52 kB / 0.9897 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03392/2.093, allocations: 16.11 MB / 1.005 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/2.093, allocations: 87.95 kB / 1.005 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002542/2.094, allocations: 184 kB / 1.006 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/2.107, allocations: 4.076 MB / 1.01 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007185/2.114, allocations: 2.025 MB / 1.012 GB, free: 6.125 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03367/2.148, allocations: 21.77 MB / 1.033 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009599/2.158, allocations: 0.5384 MB / 1.033 GB, free: 184 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002578/2.16, allocations: 0.5273 MB / 1.034 GB, free: 15.65 MB / 0.5417 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 (1081): * Single equations (assignments): 1076 * 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,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009257/2.17, allocations: 3.111 MB / 1.037 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001671/2.171, allocations: 0.5747 MB / 1.038 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02398/2.195, allocations: 9.545 MB / 1.047 GB, free: 2.344 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-05/2.195, allocations: 40 kB / 1.047 GB, free: 2.305 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-05/2.195, allocations: 16 kB / 1.047 GB, free: 2.289 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.982e-05/2.196, allocations: 15.94 kB / 1.047 GB, free: 2.273 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05026/2.246, allocations: 18.97 MB / 1.065 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-05/2.246, allocations: 4 kB / 1.065 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0032/2.249, allocations: 0.5031 MB / 1.066 GB, free: 14.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.014/2.263, allocations: 3.667 MB / 1.07 GB, free: 11 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00101/2.264, allocations: 63.98 kB / 1.07 GB, free: 10.94 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03307/2.297, allocations: 19.64 MB / 1.089 GB, free: 7.043 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/2.297, allocations: 0 / 1.089 GB, free: 7.043 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3674/2.665, allocations: 14.04 MB / 1.102 GB, free: 173.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/2.668, allocations: 0.5866 MB / 1.103 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00276/2.671, allocations: 56.94 kB / 1.103 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006813/2.677, allocations: 233.9 kB / 1.103 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001515/2.679, allocations: 226.3 kB / 1.104 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004772/2.68, allocations: 91.97 kB / 1.104 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01262/2.692, allocations: 3.76 MB / 1.107 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.11e-07/2.692, allocations: 0 / 1.107 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01312/2.705, allocations: 1.845 MB / 1.109 GB, free: 173.3 MB / 0.5886 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 (263): * Single equations (assignments): 258 * 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.03416/2.74, allocations: 14.9 MB / 1.124 GB, free: 171.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01986/2.759, allocations: 9.564 MB / 1.133 GB, free: 171.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/2.76, allocations: 3.938 kB / 1.133 GB, free: 171.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006585/2.766, allocations: 3.751 MB / 1.137 GB, free: 169.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005436/2.772, allocations: 0.7205 MB / 1.137 GB, free: 169.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1801/2.952, allocations: 190.7 MB / 1.324 GB, free: 2.176 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3058/3.258, allocations: 4.987 MB / 1.328 GB, free: 178.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.009474/3.267, allocations: 2.786 MB / 1.331 GB, free: 178.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006066/3.273, allocations: 3.246 MB / 1.334 GB, free: 178.5 MB / 0.5886 GB Notification: Performance of SimCode: time 1.643e-06/3.273, allocations: 6.062 kB / 1.334 GB, free: 178.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2236/3.497, allocations: 140.7 MB / 1.472 GB, free: 95.04 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/3.497, allocations: 204.3 kB / 1.472 GB, free: 94.8 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.64/11.14, allocations: 0 / 1.472 GB, free: 94.8 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat