Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.00163/0.00163, allocations: 180.5 kB / 14.15 MB, free: 1.176 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.449/1.449, allocations: 221.3 MB / 236 MB, free: 2.988 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 83.81 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.235e-05/4.238e-05, allocations: 8.203 kB / 451.9 MB, free: 9.336 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1371, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.6462, allocations: 119.5 MB / 0.6185 GB, free: 1.652 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.6465, allocations: 75.97 kB / 0.6186 GB, free: 1.578 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7854/1.432, allocations: 174.1 MB / 0.7887 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.086e-06/1.432, allocations: 0 / 0.7887 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005899/1.433, allocations: 151.1 kB / 0.7888 GB, free: 113.3 MB / 0.5105 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.02968/1.462, allocations: 7.684 MB / 0.7963 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/1.462, allocations: 9.281 kB / 0.7963 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008133/1.471, allocations: 1.627 MB / 0.7979 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03077/1.501, allocations: 6.946 MB / 0.8047 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02343/1.525, allocations: 9.26 MB / 0.8138 GB, free: 94.01 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006775/1.526, allocations: 0.5715 MB / 0.8143 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005314/1.531, allocations: 0.7696 MB / 0.8151 GB, free: 92.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05299/1.584, allocations: 20.54 MB / 0.8351 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006573/1.585, allocations: 99.12 kB / 0.8352 GB, free: 70.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004699/1.589, allocations: 359.2 kB / 0.8356 GB, free: 70.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003205/1.593, allocations: 1.972 MB / 0.8375 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03657/1.629, allocations: 17.91 MB / 0.855 GB, free: 50.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5102/2.139, allocations: 82.17 MB / 0.9352 GB, free: 68.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02033/2.16, allocations: 7.309 MB / 0.9424 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00724/2.167, allocations: 3.936 MB / 0.9462 GB, free: 66.9 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03724/2.204, allocations: 18.19 MB / 0.964 GB, free: 62.48 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.063e-05/2.205, allocations: 68 kB / 0.964 GB, free: 62.44 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=332): time 1.074e-05/2.205, allocations: 0 / 0.964 GB, free: 62.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=413): time 0.0855/2.29, allocations: 25.88 MB / 0.9893 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.557e-05/2.29, allocations: 198.7 kB / 0.9895 GB, free: 57.75 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01203/2.302, allocations: 5.655 MB / 0.995 GB, free: 55.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009081/2.303, allocations: 85.52 kB / 0.9951 GB, free: 55.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004582/2.308, allocations: 5.431 MB / 1 GB, free: 51.74 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002195/2.31, allocations: 1.518 MB / 1.002 GB, free: 50.62 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001697/2.312, allocations: 211.4 kB / 1.002 GB, free: 50.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001223/2.313, allocations: 0.7477 MB / 1.003 GB, free: 49.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007023/2.32, allocations: 4.02 MB / 1.007 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009891/2.33, allocations: 9.871 MB / 1.016 GB, free: 39.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009793/2.34, allocations: 6.243 MB / 1.022 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003285/2.34, allocations: 58.53 kB / 1.023 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.03406/2.374, allocations: 15.64 MB / 1.038 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003295/2.375, allocations: 93.56 kB / 1.038 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003947/2.375, allocations: 204 kB / 1.038 GB, free: 30.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008108/2.383, allocations: 2.34 MB / 1.04 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009547/2.393, allocations: 2.442 MB / 1.043 GB, free: 26.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01871/2.411, allocations: 11.52 MB / 1.054 GB, free: 16.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009476/2.421, allocations: 0.6861 MB / 1.055 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002339/2.423, allocations: 0.5855 MB / 1.055 GB, free: 15.62 MB / 0.5261 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.003628/2.427, allocations: 0.8726 MB / 1.056 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001764/2.429, allocations: 0.5977 MB / 1.057 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01816/2.447, allocations: 8.08 MB / 1.065 GB, free: 7.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.97e-05/2.447, allocations: 64.5 kB / 1.065 GB, free: 7.531 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.608e-05/2.447, allocations: 11.84 kB / 1.065 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.052e-05/2.447, allocations: 20.3 kB / 1.065 GB, free: 7.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04825/2.496, allocations: 18.89 MB / 1.083 GB, free: 8.301 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.455e-05/2.496, allocations: 8 kB / 1.083 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003351/2.499, allocations: 0.6428 MB / 1.084 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006685/2.506, allocations: 1.87 MB / 1.086 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007606/2.506, allocations: 83.8 kB / 1.086 GB, free: 6.418 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/2.523, allocations: 9.862 MB / 1.095 GB, free: 13.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/2.523, allocations: 19.89 kB / 1.095 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02395/2.547, allocations: 14.17 MB / 1.109 GB, free: 15.21 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003024/2.55, allocations: 0.6299 MB / 1.11 GB, free: 14.56 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001941/2.552, allocations: 76.05 kB / 1.11 GB, free: 14.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003378/2.556, allocations: 263.7 kB / 1.11 GB, free: 14.23 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008699/2.557, allocations: 257.6 kB / 1.11 GB, free: 13.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003214/2.557, allocations: 114.8 kB / 1.11 GB, free: 13.87 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.008669/2.566, allocations: 3.908 MB / 1.114 GB, free: 9.965 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.71e-07/2.566, allocations: 0 / 1.114 GB, free: 9.965 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01172/2.577, allocations: 1.938 MB / 1.116 GB, free: 8.043 MB / 0.573 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.02695/2.604, allocations: 17.11 MB / 1.133 GB, free: 6.477 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.3451/2.949, allocations: 9.629 MB / 1.142 GB, free: 175.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/2.95, allocations: 2.031 kB / 1.142 GB, free: 175.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006206/2.956, allocations: 3.275 MB / 1.145 GB, free: 175.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004847/2.961, allocations: 0.7191 MB / 1.146 GB, free: 175.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04912/3.01, allocations: 17.17 MB / 1.163 GB, free: 172 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009102/3.019, allocations: 5.751 MB / 1.169 GB, free: 171.2 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.009498/3.028, allocations: 3.34 MB / 1.172 GB, free: 171.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006445/3.035, allocations: 3.671 MB / 1.175 GB, free: 171.1 MB / 0.5886 GB Notification: Performance of SimCode: time 2.034e-06/3.035, allocations: 3.406 kB / 1.175 GB, free: 171.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2208/3.256, allocations: 142.5 MB / 1.315 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/3.256, allocations: 172.7 kB / 1.315 GB, free: 72.02 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/11.32, allocations: 0 / 1.315 GB, free: 72.02 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat