Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001579/0.001586, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001078/0.001078, allocations: 78.72 kB / 267.5 MB, free: 14.05 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.2846/0.2846, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.42e-05/4.436e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.563/0.6989, allocations: 115.3 MB / 0.5855 GB, free: 4.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.6993, allocations: 80.14 kB / 0.5856 GB, free: 4.512 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9567/1.656, allocations: 143.1 MB / 0.7253 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.493e-06/1.656, allocations: 0 / 0.7253 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005636/1.657, allocations: 130.2 kB / 0.7255 GB, free: 103.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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02921/1.686, allocations: 6.654 MB / 0.732 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.686, allocations: 7.625 kB / 0.732 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005879/1.692, allocations: 1.281 MB / 0.7332 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0668/1.759, allocations: 9.334 MB / 0.7423 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03362/1.792, allocations: 9.135 MB / 0.7513 GB, free: 99.29 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000671/1.793, allocations: 483 kB / 0.7517 GB, free: 99.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003709/1.797, allocations: 0.6359 MB / 0.7523 GB, free: 99.26 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04994/1.847, allocations: 15.55 MB / 0.7675 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004338/1.847, allocations: 81.8 kB / 0.7676 GB, free: 96.04 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/1.85, allocations: 304.5 kB / 0.7679 GB, free: 96.03 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003088/1.853, allocations: 1.385 MB / 0.7692 GB, free: 96.01 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04144/1.894, allocations: 12.73 MB / 0.7817 GB, free: 93.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.106/2, allocations: 64.47 MB / 0.8446 GB, free: 40.26 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02898/2.029, allocations: 6.233 MB / 0.8507 GB, free: 35.06 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00611/2.036, allocations: 3.112 MB / 0.8538 GB, free: 32.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02638/2.062, allocations: 11.18 MB / 0.8647 GB, free: 22.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/2.062, allocations: 56.56 kB / 0.8647 GB, free: 22.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 6.602e-06/2.062, allocations: 0 / 0.8647 GB, free: 22.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=337): time 0.1743/2.236, allocations: 29.66 MB / 0.8937 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001942/2.237, allocations: 247.8 kB / 0.8939 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01461/2.251, allocations: 4.951 MB / 0.8988 GB, free: 4.047 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009747/2.252, allocations: 81.61 kB / 0.8989 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.3727/2.625, allocations: 4.276 MB / 0.903 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00241/2.627, allocations: 1.232 MB / 0.9042 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/2.629, allocations: 165.1 kB / 0.9044 GB, free: 109.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0008714/2.63, allocations: 0.6575 MB / 0.905 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01067/2.641, allocations: 3.532 MB / 0.9085 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01481/2.656, allocations: 8.071 MB / 0.9164 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01471/2.67, allocations: 5.291 MB / 0.9215 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004237/2.671, allocations: 46.16 kB / 0.9216 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.05068/2.721, allocations: 14.38 MB / 0.9356 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/2.722, allocations: 76.86 kB / 0.9357 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002536/2.722, allocations: 159.2 kB / 0.9358 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.021/2.743, allocations: 3.554 MB / 0.9393 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01147/2.754, allocations: 1.802 MB / 0.9411 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04317/2.798, allocations: 17.92 MB / 0.9586 GB, free: 97.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/2.808, allocations: 480.7 kB / 0.959 GB, free: 96.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/2.811, allocations: 475.3 kB / 0.9595 GB, free: 96.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (972): * Single equations (assignments): 968 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003378/2.814, allocations: 0.7125 MB / 0.9602 GB, free: 96.41 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/2.815, allocations: 0.5318 MB / 0.9607 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03342/2.849, allocations: 8.809 MB / 0.9693 GB, free: 93.05 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.738e-05/2.849, allocations: 34.78 kB / 0.9693 GB, free: 93.05 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-05/2.849, allocations: 14.88 kB / 0.9694 GB, free: 93.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.811e-05/2.849, allocations: 20.88 kB / 0.9694 GB, free: 93.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06215/2.911, allocations: 18.6 MB / 0.9875 GB, free: 86.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.726e-05/2.911, allocations: 6.469 kB / 0.9875 GB, free: 86.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004441/2.916, allocations: 493.6 kB / 0.988 GB, free: 86.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01971/2.936, allocations: 3.108 MB / 0.991 GB, free: 85.46 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008129/2.937, allocations: 63.77 kB / 0.9911 GB, free: 85.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03728/2.974, allocations: 15.58 MB / 1.006 GB, free: 77 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/2.974, allocations: 15.72 kB / 1.006 GB, free: 76.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03915/3.013, allocations: 14.04 MB / 1.02 GB, free: 64.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00415/3.017, allocations: 1.089 MB / 1.021 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001336/3.019, allocations: 56 kB / 1.021 GB, free: 63.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00483/3.023, allocations: 210.4 kB / 1.021 GB, free: 63.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009029/3.024, allocations: 215.6 kB / 1.022 GB, free: 63.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003755/3.025, allocations: 88.97 kB / 1.022 GB, free: 63.26 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008156/3.033, allocations: 3.494 MB / 1.025 GB, free: 60.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.52e-07/3.033, allocations: 6.406 kB / 1.025 GB, free: 60.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01026/3.043, allocations: 1.685 MB / 1.027 GB, free: 58.54 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0395/3.083, allocations: 15.95 MB / 1.042 GB, free: 44.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01912/3.102, allocations: 8.795 MB / 1.051 GB, free: 36.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/3.102, allocations: 4 kB / 1.051 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009501/3.112, allocations: 3.428 MB / 1.054 GB, free: 33.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008084/3.12, allocations: 0.7047 MB / 1.055 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06189/3.182, allocations: 15.85 MB / 1.07 GB, free: 18.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01187/3.194, allocations: 4.971 MB / 1.075 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007905/3.202, allocations: 3.12 MB / 1.078 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of SimCode: time 1.492e-06/3.202, allocations: 0 / 1.078 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.848/9.05, allocations: 157.2 MB / 1.232 GB, free: 41.38 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat