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.001348/0.001348, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 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.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009078/0.0009077, allocations: 84 kB / 261.7 MB, free: 1.684 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.1994/0.1994, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.353e-05/1.355e-05, allocations: 4 kB / 418.3 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1244, allocations: 58.85 MB / 477.2 MB, free: 1.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4598/0.5843, allocations: 116.8 MB / 0.5801 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5846, allocations: 80.38 kB / 0.5802 GB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6944/1.279, allocations: 169.1 MB / 0.7453 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.503e-06/1.279, allocations: 3.5 kB / 0.7453 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004151/1.279, allocations: 149.7 kB / 0.7454 GB, free: 104.2 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.02741/1.307, allocations: 7.694 MB / 0.7529 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/1.307, allocations: 14.16 kB / 0.7529 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02997/1.337, allocations: 6.948 MB / 0.7597 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02268/1.36, allocations: 9.838 MB / 0.7693 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005492/1.36, allocations: 247.1 kB / 0.7696 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004838/1.365, allocations: 457.2 kB / 0.77 GB, free: 99.78 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02274/1.388, allocations: 13.16 MB / 0.7828 GB, free: 99.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03965/1.428, allocations: 17.63 MB / 0.8001 GB, free: 90.27 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000468/1.428, allocations: 102.8 kB / 0.8002 GB, free: 90.17 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003326/1.431, allocations: 44 kB / 0.8002 GB, free: 90.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002737/1.434, allocations: 1.961 MB / 0.8021 GB, free: 88.52 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09061/1.525, allocations: 79 MB / 0.8793 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006942/1.532, allocations: 5.992 MB / 0.8851 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004635/1.537, allocations: 3.857 MB / 0.8889 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3542/1.891, allocations: 17.96 MB / 0.9064 GB, free: 93.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.322e-05/1.891, allocations: 64.84 kB / 0.9065 GB, free: 93.85 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=334): time 8.185e-06/1.891, allocations: 0 / 0.9065 GB, free: 93.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=426): time 0.06258/1.954, allocations: 26.46 MB / 0.9323 GB, free: 89.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/1.954, allocations: 194.4 kB / 0.9325 GB, free: 89.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.965, allocations: 5.08 MB / 0.9375 GB, free: 88.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008794/1.966, allocations: 29.31 kB / 0.9375 GB, free: 88.92 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00312/1.969, allocations: 5.531 MB / 0.9429 GB, free: 85.85 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.971, allocations: 1.524 MB / 0.9444 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005634/1.971, allocations: 3 kB / 0.9444 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004408/1.972, allocations: 0.7721 MB / 0.9451 GB, free: 84.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004915/1.976, allocations: 3.972 MB / 0.949 GB, free: 83.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/1.987, allocations: 10.03 MB / 0.9588 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.998, allocations: 6.388 MB / 0.9651 GB, free: 72.22 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002432/1.998, allocations: 58.62 kB / 0.9651 GB, free: 72.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.03355/2.032, allocations: 14.85 MB / 0.9796 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/2.032, allocations: 99.69 kB / 0.9797 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003154/2.032, allocations: 215.6 kB / 0.9799 GB, free: 67.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007204/2.04, allocations: 2.302 MB / 0.9822 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00952/2.049, allocations: 2.552 MB / 0.9847 GB, free: 67.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01517/2.064, allocations: 11.11 MB / 0.9955 GB, free: 61.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01007/2.074, allocations: 0.4929 MB / 0.996 GB, free: 61.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002393/2.077, allocations: 0.6166 MB / 0.9966 GB, free: 60.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * 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 (1333): * Single equations (assignments): 1326 * 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.002137/2.079, allocations: 0.6376 MB / 0.9972 GB, free: 60.09 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01443/2.094, allocations: 7.868 MB / 1.005 GB, free: 53.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/2.095, allocations: 0.5705 MB / 1.005 GB, free: 52.94 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01584/2.111, allocations: 7.944 MB / 1.013 GB, free: 46.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/2.111, allocations: 64.83 kB / 1.013 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.449e-05/2.111, allocations: 8 kB / 1.013 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.983e-05/2.111, allocations: 17.48 kB / 1.013 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03505/2.146, allocations: 17.15 MB / 1.03 GB, free: 32.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-05/2.146, allocations: 8 kB / 1.03 GB, free: 32.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002967/2.149, allocations: 0.6532 MB / 1.031 GB, free: 31.71 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005989/2.155, allocations: 1.815 MB / 1.032 GB, free: 30.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006538/2.156, allocations: 24 kB / 1.032 GB, free: 30.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/2.169, allocations: 9.4 MB / 1.042 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/2.169, allocations: 19.88 kB / 1.042 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01882/2.188, allocations: 13.99 MB / 1.055 GB, free: 9.184 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003187/2.191, allocations: 1.135 MB / 1.056 GB, free: 8.117 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001029/2.192, allocations: 27.06 kB / 1.056 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/2.195, allocations: 190.9 kB / 1.057 GB, free: 7.988 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005297/2.195, allocations: 266 kB / 1.057 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/2.196, allocations: 115.8 kB / 1.057 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00508/2.201, allocations: 3.38 MB / 1.06 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-07/2.201, allocations: 0 / 1.06 GB, free: 4.773 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009741/2.21, allocations: 1.693 MB / 1.062 GB, free: 3.098 MB / 0.4948 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 (337): * Single equations (assignments): 330 * 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.02228/2.233, allocations: 16.98 MB / 1.079 GB, free: 2.863 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.317/2.55, allocations: 9.382 MB / 1.088 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-05/2.55, allocations: 1.375 kB / 1.088 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006286/2.556, allocations: 3.255 MB / 1.091 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004466/2.561, allocations: 0.5716 MB / 1.091 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04388/2.605, allocations: 16.99 MB / 1.108 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007906/2.613, allocations: 5.775 MB / 1.114 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009161/2.622, allocations: 3.487 MB / 1.117 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006012/2.628, allocations: 3.677 MB / 1.121 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.092e-06/2.628, allocations: 0 / 1.121 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1954/2.823, allocations: 135.8 MB / 1.253 GB, free: 9.676 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/2.823, allocations: 138.5 kB / 1.253 GB, free: 9.484 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.501/9.324, allocations: 0 / 1.253 GB, free: 9.484 MB / 0.5105 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