Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001597/0.001597, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.705/1.705, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009943/0.0009943, allocations: 96.06 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3777/0.3777, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4016, allocations: 63.25 MB / 0.5193 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1769/0.5785, allocations: 118.3 MB / 0.6348 GB, free: 3.238 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/0.5789, allocations: 83.94 kB / 0.6349 GB, free: 3.16 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.62/1.199, allocations: 148.6 MB / 0.78 GB, free: 88.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.813e-06/1.199, allocations: 0 / 0.78 GB, free: 88.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003655/1.199, allocations: 139.2 kB / 0.7801 GB, free: 88.59 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02155/1.221, allocations: 7.292 MB / 0.7872 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/1.221, allocations: 9.219 kB / 0.7873 GB, free: 83.89 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004544/1.226, allocations: 1.278 MB / 0.7885 GB, free: 83.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03369/1.259, allocations: 9.324 MB / 0.7976 GB, free: 78.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01955/1.279, allocations: 7.943 MB / 0.8054 GB, free: 70.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000447/1.279, allocations: 484.7 kB / 0.8058 GB, free: 69.58 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/1.282, allocations: 0.6325 MB / 0.8064 GB, free: 68.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02975/1.312, allocations: 15.67 MB / 0.8218 GB, free: 52.07 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002945/1.312, allocations: 83.23 kB / 0.8218 GB, free: 51.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001366/1.314, allocations: 299.9 kB / 0.8221 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001621/1.315, allocations: 1.381 MB / 0.8235 GB, free: 50.31 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02494/1.34, allocations: 12.91 MB / 0.8361 GB, free: 37.38 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07709/1.417, allocations: 64.42 MB / 0.899 GB, free: 3.027 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3116/1.729, allocations: 6.255 MB / 0.9051 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0178/1.747, allocations: 11.13 MB / 0.916 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.126e-05/1.747, allocations: 65.67 kB / 0.916 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 7.234e-06/1.747, allocations: 7.828 kB / 0.916 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=337): time 0.1268/1.874, allocations: 37.21 MB / 0.9524 GB, free: 106 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/1.874, allocations: 247.8 kB / 0.9526 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008519/1.883, allocations: 4.952 MB / 0.9574 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009504/1.884, allocations: 73.8 kB / 0.9575 GB, free: 105.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002667/1.886, allocations: 4.479 MB / 0.9619 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001757/1.888, allocations: 1.23 MB / 0.9631 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004627/1.888, allocations: 161.5 kB / 0.9632 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000345/1.889, allocations: 0.6526 MB / 0.9639 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004446/1.893, allocations: 3.609 MB / 0.9674 GB, free: 98.99 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006449/1.9, allocations: 8.139 MB / 0.9753 GB, free: 91.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006525/1.906, allocations: 5.315 MB / 0.9805 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.512e-05/1.906, allocations: 45.38 kB / 0.9806 GB, free: 89.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.03126/1.938, allocations: 14.75 MB / 0.995 GB, free: 84.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/1.938, allocations: 73.34 kB / 0.995 GB, free: 84.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002831/1.938, allocations: 156.4 kB / 0.9952 GB, free: 84.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01178/1.95, allocations: 3.582 MB / 0.9987 GB, free: 83.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00644/1.956, allocations: 1.804 MB / 1 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02342/1.98, allocations: 18.64 MB / 1.019 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006865/1.987, allocations: 484 kB / 1.019 GB, free: 66.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.988, allocations: 470.4 kB / 1.02 GB, free: 65.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (972): * Single equations (assignments): 968 * 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%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00643/1.995, allocations: 3.114 MB / 1.023 GB, free: 63.22 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001252/1.996, allocations: 0.5245 MB / 1.023 GB, free: 62.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0178/2.014, allocations: 8.89 MB / 1.032 GB, free: 55.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.415e-05/2.014, allocations: 39.28 kB / 1.032 GB, free: 55.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.919e-05/2.014, allocations: 16.5 kB / 1.032 GB, free: 55.67 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.214e-05/2.014, allocations: 19.7 kB / 1.032 GB, free: 55.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04618/2.06, allocations: 18.66 MB / 1.05 GB, free: 39.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.418e-05/2.061, allocations: 4 kB / 1.05 GB, free: 39.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003669/2.064, allocations: 495.2 kB / 1.051 GB, free: 38.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01642/2.081, allocations: 3.119 MB / 1.054 GB, free: 35.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001078/2.082, allocations: 56 kB / 1.054 GB, free: 35.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03126/2.113, allocations: 16.32 MB / 1.07 GB, free: 18.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/2.113, allocations: 14.84 kB / 1.07 GB, free: 18.96 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03375/2.147, allocations: 14.15 MB / 1.083 GB, free: 4.449 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00247/2.149, allocations: 0.5527 MB / 1.084 GB, free: 3.871 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002463/2.152, allocations: 60 kB / 1.084 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005809/2.158, allocations: 206 kB / 1.084 GB, free: 3.613 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/2.159, allocations: 226.2 kB / 1.084 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004688/2.16, allocations: 84 kB / 1.085 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.009335/2.169, allocations: 3.518 MB / 1.088 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.71e-07/2.169, allocations: 0 / 1.088 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0158/2.185, allocations: 1.684 MB / 1.09 GB, free: 14.15 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (253): * Single equations (assignments): 249 * 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%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3759/2.561, allocations: 16.08 MB / 1.105 GB, free: 132 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0169/2.578, allocations: 8.918 MB / 1.114 GB, free: 131.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/2.578, allocations: 2.688 kB / 1.114 GB, free: 131.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005824/2.584, allocations: 3.491 MB / 1.117 GB, free: 131.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004629/2.588, allocations: 0.6902 MB / 1.118 GB, free: 131.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08564/2.674, allocations: 138.1 MB / 1.253 GB, free: 36.65 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01211/2.686, allocations: 4.952 MB / 1.258 GB, free: 35.77 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01005/2.696, allocations: 2.6 MB / 1.26 GB, free: 35.57 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007152/2.704, allocations: 3.053 MB / 1.263 GB, free: 34.04 MB / 0.5886 GB Notification: Performance of SimCode: time 3.026e-06/2.704, allocations: 1.312 kB / 1.263 GB, free: 34.04 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4935/3.197, allocations: 130.4 MB / 1.391 GB, free: 154.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/3.197, allocations: 198.9 kB / 1.391 GB, free: 154.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.722/9.92, allocations: 0 / 1.391 GB, free: 154.3 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat