Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.00107, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009132/0.0009132, allocations: 96.45 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.4015/0.4015, allocations: 45.24 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.0002759, allocations: 8 kB / 468.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3924, allocations: 63.25 MB / 0.5193 GB, free: 43.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.5528, allocations: 120.5 MB / 0.637 GB, free: 1.035 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.5531, allocations: 95.84 kB / 0.6371 GB, free: 0.9453 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7725/1.326, allocations: 179.2 MB / 0.812 GB, free: 63.12 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.475e-06/1.326, allocations: 0 / 0.812 GB, free: 63.12 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006105/1.326, allocations: 144 kB / 0.8122 GB, free: 62.98 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02866/1.355, allocations: 8.218 MB / 0.8202 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/1.355, allocations: 12.03 kB / 0.8202 GB, free: 54.67 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009132/1.364, allocations: 1.622 MB / 0.8218 GB, free: 53.04 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03026/1.395, allocations: 6.935 MB / 0.8285 GB, free: 46.08 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02238/1.417, allocations: 8.417 MB / 0.8368 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007397/1.418, allocations: 0.5696 MB / 0.8373 GB, free: 37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004422/1.422, allocations: 0.7612 MB / 0.8381 GB, free: 36.24 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0445/1.467, allocations: 20.79 MB / 0.8584 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004087/1.467, allocations: 91.12 kB / 0.8585 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00344/1.471, allocations: 363.8 kB / 0.8588 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002678/1.473, allocations: 1.962 MB / 0.8607 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.514, allocations: 18.31 MB / 0.8786 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4134/1.927, allocations: 82.19 MB / 0.9589 GB, free: 42.79 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/1.944, allocations: 7.351 MB / 0.966 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03257/1.977, allocations: 18.19 MB / 0.9838 GB, free: 36.87 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/1.977, allocations: 64.69 kB / 0.9839 GB, free: 36.83 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=332): time 7.073e-06/1.977, allocations: 0 / 0.9839 GB, free: 36.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=413): time 0.1287/2.106, allocations: 36.01 MB / 1.019 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/2.106, allocations: 199.6 kB / 1.019 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/2.117, allocations: 5.784 MB / 1.025 GB, free: 27.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001023/2.118, allocations: 83.2 kB / 1.025 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003997/2.122, allocations: 5.439 MB / 1.03 GB, free: 23.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002169/2.124, allocations: 1.516 MB / 1.032 GB, free: 22.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008706/2.125, allocations: 207.8 kB / 1.032 GB, free: 22.23 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005554/2.125, allocations: 0.7539 MB / 1.033 GB, free: 21.74 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006662/2.132, allocations: 4.188 MB / 1.037 GB, free: 20.34 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/2.142, allocations: 10.02 MB / 1.047 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/2.152, allocations: 6.349 MB / 1.053 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002179/2.153, allocations: 59.59 kB / 1.053 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.04007/2.193, allocations: 15.97 MB / 1.068 GB, free: 1.484 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001526/2.193, allocations: 95.44 kB / 1.069 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003211/2.193, allocations: 204 kB / 1.069 GB, free: 1.195 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009228/2.203, allocations: 2.448 MB / 1.071 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/2.213, allocations: 2.441 MB / 1.073 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02176/2.234, allocations: 12.01 MB / 1.085 GB, free: 3.234 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/2.245, allocations: 0.6898 MB / 1.086 GB, free: 2.668 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/2.247, allocations: 0.5888 MB / 1.086 GB, free: 2.086 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1272): * Single equations (assignments): 1265 * Array equations: 6 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01251/2.26, allocations: 3.889 MB / 1.09 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00198/2.262, allocations: 0.5971 MB / 1.091 GB, free: 14.53 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01917/2.281, allocations: 8.163 MB / 1.099 GB, free: 7.914 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001109/2.281, allocations: 61.8 kB / 1.099 GB, free: 7.859 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.708e-05/2.281, allocations: 16 kB / 1.099 GB, free: 7.844 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-05/2.281, allocations: 19.12 kB / 1.099 GB, free: 7.844 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3767/2.658, allocations: 18.83 MB / 1.117 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.163e-05/2.658, allocations: 17.06 kB / 1.117 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003344/2.661, allocations: 0.6396 MB / 1.118 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007213/2.668, allocations: 1.903 MB / 1.12 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008227/2.669, allocations: 79.03 kB / 1.12 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/2.685, allocations: 10.34 MB / 1.13 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-05/2.685, allocations: 18.22 kB / 1.13 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/2.71, allocations: 14.28 MB / 1.144 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002535/2.713, allocations: 0.6276 MB / 1.145 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001821/2.714, allocations: 79.89 kB / 1.145 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003794/2.718, allocations: 262.3 kB / 1.145 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008684/2.719, allocations: 261.7 kB / 1.145 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003292/2.719, allocations: 112.7 kB / 1.145 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.009445/2.729, allocations: 4.048 MB / 1.149 GB, free: 113.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.71e-07/2.729, allocations: 0 / 1.149 GB, free: 113.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01385/2.743, allocations: 1.948 MB / 1.151 GB, free: 113.1 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * 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 (324): * Single equations (assignments): 317 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02751/2.77, allocations: 17.24 MB / 1.168 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01712/2.788, allocations: 9.847 MB / 1.178 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-05/2.788, allocations: 0 / 1.178 GB, free: 102.4 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006059/2.794, allocations: 3.329 MB / 1.181 GB, free: 101.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005102/2.799, allocations: 0.7269 MB / 1.181 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4472/3.246, allocations: 176.6 MB / 1.354 GB, free: 140 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01455/3.261, allocations: 5.743 MB / 1.36 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01085/3.272, allocations: 3.339 MB / 1.363 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007487/3.279, allocations: 3.673 MB / 1.366 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of SimCode: time 1.242e-06/3.279, allocations: 0 / 1.366 GB, free: 139.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2303/3.509, allocations: 140.3 MB / 1.503 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/3.51, allocations: 199.2 kB / 1.504 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/11.07, allocations: 0 / 1.504 GB, free: 60.57 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat