Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.001682/0.001682, allocations: 177 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.581/1.581, allocations: 223.2 MB / 241 MB, free: 11.89 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.001017/0.001017, allocations: 94.3 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.4559/0.4559, allocations: 44.23 MB / 387.5 MB, free: 39.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 11.98 kB / 460 MB, free: 1.672 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3784, allocations: 61.9 MB / 0.5096 GB, free: 38.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1409/0.5194, allocations: 111.3 MB / 0.6184 GB, free: 15.77 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.5196, allocations: 83.92 kB / 0.6184 GB, free: 15.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5527/1.072, allocations: 128.5 MB / 0.744 GB, free: 91.23 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.072, allocations: 0 / 0.744 GB, free: 91.23 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003329/1.073, allocations: 124.9 kB / 0.7441 GB, free: 91.22 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02159/1.094, allocations: 6.76 MB / 0.7507 GB, free: 88.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/1.094, allocations: 7.5 kB / 0.7507 GB, free: 88.06 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005076/1.1, allocations: 1.317 MB / 0.752 GB, free: 87.52 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03272/1.132, allocations: 8.308 MB / 0.7601 GB, free: 83.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01838/1.151, allocations: 7.103 MB / 0.767 GB, free: 79.21 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004265/1.151, allocations: 451.8 kB / 0.7675 GB, free: 78.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003289/1.154, allocations: 0.5934 MB / 0.768 GB, free: 78.17 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03942/1.194, allocations: 15.74 MB / 0.7834 GB, free: 61.27 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004979/1.194, allocations: 79.23 kB / 0.7835 GB, free: 61.19 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003684/1.198, allocations: 283.8 kB / 0.7837 GB, free: 60.91 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002412/1.201, allocations: 1.62 MB / 0.7853 GB, free: 59.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.027/1.228, allocations: 14 MB / 0.799 GB, free: 45.26 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08274/1.31, allocations: 64.07 MB / 0.8616 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0154/1.326, allocations: 6.454 MB / 0.8679 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.389/1.715, allocations: 14.41 MB / 0.8819 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/1.715, allocations: 67.83 kB / 0.882 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 6.672e-06/1.715, allocations: 0 / 0.882 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.1435/1.859, allocations: 42.26 MB / 0.9233 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/1.859, allocations: 212.9 kB / 0.9235 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008062/1.867, allocations: 4.817 MB / 0.9282 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009658/1.868, allocations: 76.73 kB / 0.9282 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003048/1.871, allocations: 4.425 MB / 0.9326 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001706/1.873, allocations: 1.251 MB / 0.9338 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006853/1.873, allocations: 181 kB / 0.934 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004539/1.874, allocations: 0.6819 MB / 0.9346 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005755/1.879, allocations: 4.566 MB / 0.9391 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/1.89, allocations: 9.517 MB / 0.9484 GB, free: 92.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008229/1.898, allocations: 6.454 MB / 0.9547 GB, free: 89.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.846e-05/1.898, allocations: 48.81 kB / 0.9547 GB, free: 89.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.0399/1.938, allocations: 18.72 MB / 0.973 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002131/1.939, allocations: 84.03 kB / 0.9731 GB, free: 77.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002839/1.939, allocations: 178.8 kB / 0.9733 GB, free: 76.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01989/1.959, allocations: 5.635 MB / 0.9788 GB, free: 73.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007718/1.967, allocations: 2.063 MB / 0.9808 GB, free: 71.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02681/1.993, allocations: 24.3 MB / 1.005 GB, free: 48.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008247/2.002, allocations: 0.546 MB / 1.005 GB, free: 47.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001911/2.004, allocations: 0.5 MB / 1.006 GB, free: 47.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1053 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 prepare postOptimizeDAE: time 0.007478/2.011, allocations: 3.095 MB / 1.009 GB, free: 44 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/2.013, allocations: 0.4974 MB / 1.009 GB, free: 43.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02836/2.041, allocations: 12.43 MB / 1.021 GB, free: 31.01 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001163/2.041, allocations: 51.98 kB / 1.021 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-05/2.041, allocations: 11.94 kB / 1.021 GB, free: 30.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.11e-05/2.041, allocations: 15.94 kB / 1.021 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04988/2.091, allocations: 24.05 MB / 1.045 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.033e-05/2.091, allocations: 11.06 kB / 1.045 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003121/2.095, allocations: 0.5733 MB / 1.045 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01695/2.112, allocations: 4.654 MB / 1.05 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007284/2.112, allocations: 52 kB / 1.05 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.349/2.461, allocations: 19.56 MB / 1.069 GB, free: 132.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.339e-05/2.461, allocations: 8.781 kB / 1.069 GB, free: 132.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03371/2.495, allocations: 17.48 MB / 1.086 GB, free: 131.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002221/2.497, allocations: 0.5392 MB / 1.087 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001698/2.499, allocations: 52.09 kB / 1.087 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003633/2.503, allocations: 253.5 kB / 1.087 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008016/2.504, allocations: 197.1 kB / 1.087 GB, free: 131 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/2.504, allocations: 81.09 kB / 1.087 GB, free: 131 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006005/2.51, allocations: 3.351 MB / 1.09 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.5e-07/2.51, allocations: 0 / 1.09 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009985/2.52, allocations: 1.711 MB / 1.092 GB, free: 130.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03731/2.557, allocations: 19.2 MB / 1.111 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01468/2.572, allocations: 10.52 MB / 1.121 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.572, allocations: 2.781 kB / 1.121 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005039/2.577, allocations: 3.994 MB / 1.125 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003624/2.581, allocations: 0.5801 MB / 1.126 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08/2.661, allocations: 150 MB / 1.272 GB, free: 7.375 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007956/2.669, allocations: 4.757 MB / 1.277 GB, free: 5.781 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008128/2.677, allocations: 2.993 MB / 1.28 GB, free: 5.574 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005942/2.683, allocations: 2.917 MB / 1.283 GB, free: 3.18 MB / 0.573 GB Notification: Performance of SimCode: time 1.473e-06/2.683, allocations: 0 / 1.283 GB, free: 3.18 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5339/3.217, allocations: 133.3 MB / 1.413 GB, free: 102.2 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/3.217, allocations: 215.3 kB / 1.413 GB, free: 102 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.624/8.841, allocations: 4 kB / 1.413 GB, free: 102 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat