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.001014/0.001014, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.683/1.683, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0009484/0.0009489, allocations: 91.09 kB / 267 MB, free: 9.281 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.4527/0.4527, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.929e-05/3.932e-05, allocations: 4 kB / 425.4 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1588, allocations: 58.85 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5766/0.7354, allocations: 117.5 MB / 0.5876 GB, free: 4.469 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.7358, allocations: 75.66 kB / 0.5877 GB, free: 4.434 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8056/1.541, allocations: 172.3 MB / 0.756 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.017e-06/1.541, allocations: 0 / 0.756 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000442/1.542, allocations: 150.2 kB / 0.7561 GB, free: 86.32 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.03137/1.573, allocations: 7.708 MB / 0.7636 GB, free: 83.37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/1.573, allocations: 11.91 kB / 0.7637 GB, free: 83.36 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009594/1.583, allocations: 1.618 MB / 0.7652 GB, free: 83.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03128/1.614, allocations: 6.959 MB / 0.772 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02605/1.64, allocations: 9.856 MB / 0.7817 GB, free: 81.44 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006882/1.641, allocations: 0.5676 MB / 0.7822 GB, free: 81.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004476/1.646, allocations: 0.76 MB / 0.783 GB, free: 81.01 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04749/1.693, allocations: 20.56 MB / 0.803 GB, free: 71.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004665/1.694, allocations: 92.95 kB / 0.8031 GB, free: 71.36 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003314/1.697, allocations: 370.3 kB / 0.8035 GB, free: 71.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002687/1.7, allocations: 1.953 MB / 0.8054 GB, free: 70.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03856/1.738, allocations: 17.92 MB / 0.8229 GB, free: 58.88 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5363/2.275, allocations: 82.28 MB / 0.9032 GB, free: 51.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/2.293, allocations: 7.303 MB / 0.9104 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005382/2.298, allocations: 3.921 MB / 0.9142 GB, free: 49.83 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03031/2.328, allocations: 18.24 MB / 0.932 GB, free: 45.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.28e-05/2.328, allocations: 65.52 kB / 0.9321 GB, free: 45.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 8.236e-06/2.328, allocations: 2.625 kB / 0.9321 GB, free: 45.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.09467/2.423, allocations: 26.1 MB / 0.9575 GB, free: 40.78 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.369e-05/2.423, allocations: 195 kB / 0.9577 GB, free: 40.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/2.436, allocations: 5.69 MB / 0.9633 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001223/2.437, allocations: 91.08 kB / 0.9634 GB, free: 38.79 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005005/2.442, allocations: 5.448 MB / 0.9687 GB, free: 34.59 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002739/2.445, allocations: 1.521 MB / 0.9702 GB, free: 33.47 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/2.447, allocations: 206.4 kB / 0.9704 GB, free: 33.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008652/2.447, allocations: 0.7601 MB / 0.9711 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007162/2.455, allocations: 4.027 MB / 0.975 GB, free: 31.41 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01216/2.467, allocations: 9.857 MB / 0.9847 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01125/2.478, allocations: 6.242 MB / 0.9908 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002674/2.478, allocations: 60.22 kB / 0.9908 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.03782/2.516, allocations: 15.64 MB / 1.006 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/2.516, allocations: 95.31 kB / 1.006 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004138/2.517, allocations: 205.1 kB / 1.006 GB, free: 15.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008145/2.525, allocations: 2.342 MB / 1.009 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009407/2.534, allocations: 2.443 MB / 1.011 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/2.552, allocations: 11.52 MB / 1.022 GB, free: 8.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01243/2.564, allocations: 0.6915 MB / 1.023 GB, free: 7.453 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003371/2.568, allocations: 0.5856 MB / 1.024 GB, free: 6.871 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 () * 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.00418/2.572, allocations: 0.8744 MB / 1.024 GB, free: 6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002724/2.575, allocations: 0.6016 MB / 1.025 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02164/2.597, allocations: 8.085 MB / 1.033 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001405/2.597, allocations: 59.61 kB / 1.033 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-05/2.597, allocations: 12 kB / 1.033 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.775e-05/2.597, allocations: 20.36 kB / 1.033 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04955/2.646, allocations: 18.83 MB / 1.051 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.692e-05/2.646, allocations: 12 kB / 1.051 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003517/2.65, allocations: 0.6516 MB / 1.052 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006871/2.657, allocations: 1.88 MB / 1.054 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000914/2.658, allocations: 79.45 kB / 1.054 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01627/2.674, allocations: 9.861 MB / 1.064 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.692e-05/2.674, allocations: 17.36 kB / 1.064 GB, free: 4.836 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02823/2.702, allocations: 14.41 MB / 1.078 GB, free: 8.242 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004744/2.707, allocations: 1.16 MB / 1.079 GB, free: 7.156 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.709, allocations: 81.28 kB / 1.079 GB, free: 7.082 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004022/2.713, allocations: 264.7 kB / 1.079 GB, free: 6.914 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000742/2.714, allocations: 256.3 kB / 1.079 GB, free: 6.742 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003065/2.714, allocations: 113.3 kB / 1.079 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0101/2.724, allocations: 3.954 MB / 1.083 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.51e-07/2.724, allocations: 0 / 1.083 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01313/2.738, allocations: 1.941 MB / 1.085 GB, free: 1.051 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 () * 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.4068/3.144, allocations: 17.1 MB / 1.102 GB, free: 149.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02309/3.167, allocations: 9.637 MB / 1.111 GB, free: 149.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/3.168, allocations: 1.219 kB / 1.111 GB, free: 149.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006004/3.174, allocations: 3.28 MB / 1.115 GB, free: 149.2 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005551/3.179, allocations: 0.7244 MB / 1.115 GB, free: 149.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05228/3.231, allocations: 17.23 MB / 1.132 GB, free: 146 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01344/3.245, allocations: 5.765 MB / 1.138 GB, free: 145.1 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01272/3.258, allocations: 3.334 MB / 1.141 GB, free: 145.1 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008001/3.266, allocations: 3.689 MB / 1.145 GB, free: 145.1 MB / 0.573 GB Notification: Performance of SimCode: time 1.363e-06/3.266, allocations: 0 / 1.145 GB, free: 145.1 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2073/3.473, allocations: 143 MB / 1.284 GB, free: 59.79 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/3.473, allocations: 180.2 kB / 1.284 GB, free: 59.56 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/11.35, allocations: 0 / 1.284 GB, free: 59.56 MB / 0.573 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