Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.001165/0.001165, allocations: 183.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001133, allocations: 90.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1987/0.1987, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003735, allocations: 11.98 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1403, allocations: 58.86 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.5549, allocations: 117.6 MB / 0.5936 GB, free: 14.53 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.5552, allocations: 84.97 kB / 0.5937 GB, free: 14.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7562/1.311, allocations: 172.2 MB / 0.7619 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.286e-06/1.311, allocations: 0 / 0.7619 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006048/1.312, allocations: 152.5 kB / 0.762 GB, free: 103.3 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.03145/1.343, allocations: 8.239 MB / 0.77 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/1.344, allocations: 7.5 kB / 0.7701 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008002/1.352, allocations: 1.623 MB / 0.7716 GB, free: 99.93 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03013/1.382, allocations: 6.946 MB / 0.7784 GB, free: 99.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02772/1.409, allocations: 9.894 MB / 0.7881 GB, free: 98.31 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008189/1.41, allocations: 0.568 MB / 0.7886 GB, free: 98.29 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005131/1.416, allocations: 0.7612 MB / 0.7894 GB, free: 98.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05485/1.47, allocations: 20.79 MB / 0.8097 GB, free: 85.98 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005925/1.471, allocations: 87.22 kB / 0.8098 GB, free: 85.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003989/1.475, allocations: 366.9 kB / 0.8101 GB, free: 85.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003002/1.478, allocations: 1.971 MB / 0.812 GB, free: 83.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03817/1.516, allocations: 18.31 MB / 0.8299 GB, free: 65.31 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4162/1.933, allocations: 82.29 MB / 0.9103 GB, free: 98.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01826/1.951, allocations: 7.342 MB / 0.9175 GB, free: 97.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03139/1.982, allocations: 18.23 MB / 0.9353 GB, free: 92.86 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.982, allocations: 67.72 kB / 0.9353 GB, free: 92.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 6.091e-06/1.982, allocations: 0 / 0.9353 GB, free: 92.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.1153/2.098, allocations: 36.22 MB / 0.9707 GB, free: 87.47 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/2.098, allocations: 203.2 kB / 0.9709 GB, free: 87.28 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/2.108, allocations: 5.835 MB / 0.9766 GB, free: 86.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009344/2.109, allocations: 83.27 kB / 0.9767 GB, free: 86.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00343/2.112, allocations: 5.444 MB / 0.982 GB, free: 82.39 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001984/2.114, allocations: 1.52 MB / 0.9835 GB, free: 81.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007875/2.115, allocations: 207.3 kB / 0.9837 GB, free: 81.11 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004904/2.116, allocations: 0.751 MB / 0.9844 GB, free: 80.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006112/2.122, allocations: 4.188 MB / 0.9885 GB, free: 79.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009568/2.131, allocations: 10.03 MB / 0.9983 GB, free: 70.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0098/2.141, allocations: 6.343 MB / 1.004 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001668/2.142, allocations: 60.19 kB / 1.005 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.03267/2.174, allocations: 15.97 MB / 1.02 GB, free: 61.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002907/2.175, allocations: 93.56 kB / 1.02 GB, free: 61.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004327/2.175, allocations: 205.3 kB / 1.02 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007727/2.183, allocations: 2.362 MB / 1.023 GB, free: 60 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009261/2.192, allocations: 2.444 MB / 1.025 GB, free: 57.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01784/2.21, allocations: 12.01 MB / 1.037 GB, free: 47.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008965/2.219, allocations: 0.6847 MB / 1.038 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002303/2.221, allocations: 0.5898 MB / 1.038 GB, free: 46.37 MB / 0.5105 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.008314/2.23, allocations: 3.763 MB / 1.042 GB, free: 43.08 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001556/2.231, allocations: 0.5972 MB / 1.042 GB, free: 42.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01753/2.249, allocations: 8.176 MB / 1.05 GB, free: 35.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.996e-05/2.249, allocations: 60.48 kB / 1.05 GB, free: 35.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.928e-05/2.249, allocations: 8 kB / 1.05 GB, free: 35.79 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.547e-05/2.249, allocations: 16.55 kB / 1.05 GB, free: 35.79 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04022/2.289, allocations: 18.85 MB / 1.069 GB, free: 19.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-05/2.289, allocations: 12 kB / 1.069 GB, free: 19.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003356/2.293, allocations: 0.6396 MB / 1.069 GB, free: 19.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006973/2.3, allocations: 1.895 MB / 1.071 GB, free: 17.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009476/2.301, allocations: 79.98 kB / 1.071 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01523/2.316, allocations: 10.35 MB / 1.081 GB, free: 6.891 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/2.316, allocations: 26.36 kB / 1.082 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02346/2.339, allocations: 14.29 MB / 1.095 GB, free: 7.945 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004293/2.344, allocations: 1.161 MB / 1.097 GB, free: 6.758 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001932/2.346, allocations: 75.98 kB / 1.097 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004414/2.35, allocations: 265.9 kB / 1.097 GB, free: 6.426 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001076/2.351, allocations: 261.6 kB / 1.097 GB, free: 6.168 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006428/2.352, allocations: 112.4 kB / 1.097 GB, free: 6.062 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01006/2.362, allocations: 4.086 MB / 1.101 GB, free: 1.988 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.002e-06/2.362, allocations: 4 kB / 1.101 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.3089/2.671, allocations: 1.937 MB / 1.103 GB, free: 114.8 MB / 0.5261 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.02853/2.699, allocations: 17.23 MB / 1.12 GB, free: 109 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02085/2.72, allocations: 9.846 MB / 1.13 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/2.72, allocations: 7.281 kB / 1.13 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005381/2.726, allocations: 3.326 MB / 1.133 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005224/2.731, allocations: 0.7123 MB / 1.134 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1064/2.837, allocations: 176.6 MB / 1.306 GB, free: 22.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/2.848, allocations: 5.766 MB / 1.312 GB, free: 20.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.009511/2.858, allocations: 3.338 MB / 1.315 GB, free: 20.21 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006401/2.864, allocations: 3.689 MB / 1.319 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of SimCode: time 2.013e-06/2.864, allocations: 0 / 1.319 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4986/3.363, allocations: 140.7 MB / 1.456 GB, free: 171 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/3.363, allocations: 209.5 kB / 1.456 GB, free: 170.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/10.92, allocations: 3.938 kB / 1.456 GB, free: 170.7 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat