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.001531/0.001531, allocations: 177.4 kB / 17.06 MB, free: 5.094 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.495/1.495, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009104/0.0009104, allocations: 95.56 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3142/0.3142, allocations: 44.21 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002989, allocations: 15.98 kB / 460 MB, free: 1.418 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3352, allocations: 61.89 MB / 0.5096 GB, free: 38.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4831, allocations: 119.6 MB / 0.6265 GB, free: 7.434 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.4834, allocations: 83.94 kB / 0.6265 GB, free: 7.355 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7223/1.206, allocations: 174 MB / 0.7965 GB, free: 49.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.427e-06/1.206, allocations: 0 / 0.7965 GB, free: 49.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003655/1.206, allocations: 151.9 kB / 0.7966 GB, free: 49.53 MB / 490.7 MB 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.02964/1.236, allocations: 8.182 MB / 0.8046 GB, free: 41.26 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/1.236, allocations: 12.02 kB / 0.8046 GB, free: 41.25 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009913/1.246, allocations: 1.618 MB / 0.8062 GB, free: 39.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0283/1.274, allocations: 6.947 MB / 0.813 GB, free: 32.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02151/1.296, allocations: 9.301 MB / 0.8221 GB, free: 23.27 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00056/1.296, allocations: 0.5657 MB / 0.8226 GB, free: 22.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004667/1.301, allocations: 0.7613 MB / 0.8234 GB, free: 21.94 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04938/1.35, allocations: 20.78 MB / 0.8437 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004984/1.351, allocations: 99.09 kB / 0.8438 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003261/1.354, allocations: 367.8 kB / 0.8441 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003256/1.358, allocations: 1.962 MB / 0.846 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04164/1.399, allocations: 18.32 MB / 0.8639 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6821/2.081, allocations: 82.19 MB / 0.9442 GB, free: 36 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01906/2.1, allocations: 7.343 MB / 0.9513 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04113/2.142, allocations: 18.19 MB / 0.9691 GB, free: 28.72 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.542e-05/2.142, allocations: 61.75 kB / 0.9692 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=332): time 8.666e-06/2.142, allocations: 0 / 0.9692 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=413): time 0.1327/2.275, allocations: 36.02 MB / 1.004 GB, free: 18.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/2.275, allocations: 195.4 kB / 1.005 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01328/2.288, allocations: 5.778 MB / 1.01 GB, free: 16.08 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001163/2.289, allocations: 80.83 kB / 1.01 GB, free: 16.01 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004532/2.294, allocations: 5.436 MB / 1.016 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002056/2.296, allocations: 1.52 MB / 1.017 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009681/2.297, allocations: 211.1 kB / 1.017 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000514/2.297, allocations: 0.7524 MB / 1.018 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006704/2.304, allocations: 4.189 MB / 1.022 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01164/2.316, allocations: 10.02 MB / 1.032 GB, free: 14.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.327, allocations: 6.354 MB / 1.038 GB, free: 8.75 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001471/2.327, allocations: 56 kB / 1.038 GB, free: 8.695 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.04053/2.368, allocations: 16.32 MB / 1.054 GB, free: 12.19 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/2.368, allocations: 95.94 kB / 1.054 GB, free: 12.09 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002914/2.368, allocations: 204 kB / 1.054 GB, free: 11.89 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008112/2.376, allocations: 2.361 MB / 1.057 GB, free: 10.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00931/2.386, allocations: 2.443 MB / 1.059 GB, free: 8.082 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0225/2.408, allocations: 12.16 MB / 1.071 GB, free: 14.09 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009999/2.418, allocations: 0.6846 MB / 1.072 GB, free: 13.52 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002762/2.421, allocations: 0.5928 MB / 1.072 GB, free: 12.94 MB / 0.5574 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.01055/2.432, allocations: 3.754 MB / 1.076 GB, free: 9.656 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001754/2.433, allocations: 0.6015 MB / 1.076 GB, free: 9.055 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0184/2.452, allocations: 8.158 MB / 1.084 GB, free: 2.438 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/2.452, allocations: 64.17 kB / 1.084 GB, free: 2.379 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-05/2.452, allocations: 12 kB / 1.084 GB, free: 2.367 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.132e-05/2.452, allocations: 17.86 kB / 1.084 GB, free: 2.367 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3505/2.803, allocations: 18.8 MB / 1.103 GB, free: 125.5 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-05/2.803, allocations: 11.69 kB / 1.103 GB, free: 125.5 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003494/2.806, allocations: 0.6473 MB / 1.103 GB, free: 125.5 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007343/2.814, allocations: 1.887 MB / 1.105 GB, free: 125.5 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009887/2.815, allocations: 82.75 kB / 1.105 GB, free: 125.5 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/2.832, allocations: 10.34 MB / 1.115 GB, free: 124.1 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.448e-05/2.832, allocations: 25.09 kB / 1.116 GB, free: 124.1 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02598/2.858, allocations: 14.29 MB / 1.129 GB, free: 120.8 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002066/2.861, allocations: 0.63 MB / 1.13 GB, free: 120.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001936/2.863, allocations: 79.98 kB / 1.13 GB, free: 120.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00436/2.867, allocations: 260.9 kB / 1.13 GB, free: 120.7 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/2.868, allocations: 253.6 kB / 1.131 GB, free: 120.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007223/2.869, allocations: 121.4 kB / 1.131 GB, free: 120.7 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01053/2.879, allocations: 4.049 MB / 1.135 GB, free: 119.8 MB / 0.5574 GB Notification: Performance of sort global known variables: time 7.81e-07/2.879, allocations: 3.5 kB / 1.135 GB, free: 119.8 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01317/2.893, allocations: 1.935 MB / 1.137 GB, free: 119.6 MB / 0.5574 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.02643/2.919, allocations: 17.23 MB / 1.153 GB, free: 109.9 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02075/2.94, allocations: 9.845 MB / 1.163 GB, free: 106.9 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.227e-05/2.94, allocations: 3.094 kB / 1.163 GB, free: 106.9 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.007661/2.948, allocations: 3.333 MB / 1.166 GB, free: 105.6 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005982/2.954, allocations: 0.7295 MB / 1.167 GB, free: 105.3 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3856/3.339, allocations: 176.5 MB / 1.339 GB, free: 91.66 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01243/3.352, allocations: 5.744 MB / 1.345 GB, free: 90.78 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009966/3.362, allocations: 3.331 MB / 1.348 GB, free: 90.71 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007487/3.369, allocations: 3.68 MB / 1.352 GB, free: 90.71 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/3.369, allocations: 0 / 1.352 GB, free: 90.71 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2103/3.58, allocations: 140.2 MB / 1.489 GB, free: 10.9 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/3.58, allocations: 206 kB / 1.489 GB, free: 10.66 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/11.33, allocations: 0 / 1.489 GB, free: 10.66 MB / 0.573 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