Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.001047/0.001047, allocations: 177 kB / 17.06 MB, free: 5.098 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.307/1.307, allocations: 223.2 MB / 241 MB, free: 10.16 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.001264/0.001264, allocations: 97.75 kB / 292.1 MB, free: 10.71 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.3882/0.3882, allocations: 44.21 MB / 387.4 MB, free: 38.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003512, allocations: 8 kB / 460 MB, free: 1.461 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3582, allocations: 61.91 MB / 0.5096 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4938, allocations: 108.5 MB / 0.6156 GB, free: 2.582 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.4942, allocations: 83.91 kB / 0.6157 GB, free: 2.504 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5392/1.033, allocations: 96.42 MB / 0.7098 GB, free: 96.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.033, allocations: 0 / 0.7098 GB, free: 96.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003278/1.034, allocations: 87.97 kB / 0.7099 GB, free: 96.43 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01951/1.053, allocations: 5.014 MB / 0.7148 GB, free: 94.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.053, allocations: 10.31 kB / 0.7148 GB, free: 94.35 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004561/1.058, allocations: 0.9071 MB / 0.7157 GB, free: 94.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02858/1.086, allocations: 6.729 MB / 0.7223 GB, free: 93.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/1.105, allocations: 6.035 MB / 0.7282 GB, free: 92.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003516/1.105, allocations: 329.8 kB / 0.7285 GB, free: 92.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002183/1.107, allocations: 441.9 kB / 0.7289 GB, free: 92.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/1.13, allocations: 11.07 MB / 0.7397 GB, free: 86.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003076/1.13, allocations: 76.03 kB / 0.7398 GB, free: 86.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001521/1.132, allocations: 208 kB / 0.74 GB, free: 86.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001214/1.133, allocations: 1.019 MB / 0.741 GB, free: 86.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/1.15, allocations: 9.305 MB / 0.7501 GB, free: 83.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04886/1.199, allocations: 47.62 MB / 0.7966 GB, free: 44.92 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009711/1.209, allocations: 4.145 MB / 0.8006 GB, free: 40.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.012/1.221, allocations: 7.489 MB / 0.8079 GB, free: 32.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.515e-05/1.221, allocations: 47.56 kB / 0.808 GB, free: 32.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 5.05e-06/1.221, allocations: 0 / 0.808 GB, free: 32.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1515/1.373, allocations: 40.94 MB / 0.848 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/1.373, allocations: 206.2 kB / 0.8482 GB, free: 7.488 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006484/1.379, allocations: 3.793 MB / 0.8519 GB, free: 3.68 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006084/1.38, allocations: 61.7 kB / 0.8519 GB, free: 3.613 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002547/1.383, allocations: 3.233 MB / 0.8551 GB, free: 388 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001299/1.384, allocations: 0.8749 MB / 0.8559 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/1.384, allocations: 124 kB / 0.8561 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004084/1.385, allocations: 0.5742 MB / 0.8566 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005152/1.39, allocations: 3.436 MB / 0.86 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008218/1.398, allocations: 7.041 MB / 0.8669 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007595/1.406, allocations: 4.771 MB / 0.8715 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.559e-05/1.406, allocations: 36 kB / 0.8715 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.3206/1.726, allocations: 15.46 MB / 0.8866 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.429e-05/1.727, allocations: 59.88 kB / 0.8867 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.727, allocations: 130.9 kB / 0.8868 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02164/1.748, allocations: 5.929 MB / 0.8926 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005573/1.754, allocations: 1.434 MB / 0.894 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03609/1.79, allocations: 25.7 MB / 0.9191 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006616/1.797, allocations: 402.5 kB / 0.9195 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/1.798, allocations: 382 kB / 0.9199 GB, free: 120.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (746): * Single equations (assignments): 741 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005373/1.804, allocations: 2.217 MB / 0.922 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.805, allocations: 397.2 kB / 0.9224 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02674/1.832, allocations: 10.82 MB / 0.933 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.895e-05/1.832, allocations: 25.78 kB / 0.933 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/1.832, allocations: 13.06 kB / 0.933 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.407e-05/1.832, allocations: 10.45 kB / 0.933 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04147/1.873, allocations: 20.2 MB / 0.9527 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.571e-05/1.873, allocations: 3.656 kB / 0.9527 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/1.876, allocations: 386.4 kB / 0.9531 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01832/1.894, allocations: 4.996 MB / 0.958 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006362/1.895, allocations: 41.39 kB / 0.958 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02449/1.919, allocations: 20.88 MB / 0.9784 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/1.919, allocations: 4.297 kB / 0.9784 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02903/1.948, allocations: 14.58 MB / 0.9927 GB, free: 86.59 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.95, allocations: 450.7 kB / 0.9931 GB, free: 86.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.951, allocations: 51.7 kB / 0.9931 GB, free: 86.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00259/1.954, allocations: 163.8 kB / 0.9933 GB, free: 85.95 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006209/1.954, allocations: 160.1 kB / 0.9935 GB, free: 85.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/1.955, allocations: 64.92 kB / 0.9935 GB, free: 85.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00464/1.959, allocations: 2.668 MB / 0.9961 GB, free: 83.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.894e-06/1.959, allocations: 0 / 0.9961 GB, free: 83.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007948/1.967, allocations: 1.332 MB / 0.9974 GB, free: 81.75 MB / 0.5261 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02918/1.997, allocations: 16.4 MB / 1.013 GB, free: 65.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01317/2.01, allocations: 7.958 MB / 1.021 GB, free: 57.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/2.01, allocations: 2.906 kB / 1.021 GB, free: 57.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004294/2.014, allocations: 3.112 MB / 1.024 GB, free: 54.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00324/2.017, allocations: 484 kB / 1.025 GB, free: 53.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3634/2.381, allocations: 109 MB / 1.131 GB, free: 99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004434/2.385, allocations: 3.61 MB / 1.135 GB, free: 98.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005531/2.391, allocations: 1.969 MB / 1.137 GB, free: 98.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003265/2.394, allocations: 2.073 MB / 1.139 GB, free: 98.16 MB / 0.5417 GB Notification: Performance of SimCode: time 3.006e-06/2.394, allocations: 0 / 1.139 GB, free: 98.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1516/2.546, allocations: 108.5 MB / 1.245 GB, free: 46 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/2.546, allocations: 209.4 kB / 1.245 GB, free: 45.76 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.702/7.248, allocations: 64 / 1.245 GB, free: 45.76 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat