Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.002149/0.002149, allocations: 182.1 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.19/2.19, 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.001065/0.001065, 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.2833/0.2833, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.132e-05/4.134e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1426, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5033/0.646, allocations: 106.6 MB / 0.577 GB, free: 13.22 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.6463, allocations: 78.72 kB / 0.577 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4245/1.071, allocations: 95.28 MB / 0.6701 GB, free: 5.711 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.165e-06/1.071, allocations: 0 / 0.6701 GB, free: 5.711 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003726/1.071, allocations: 84 kB / 0.6702 GB, free: 5.629 MB / 474.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.01998/1.091, allocations: 4.616 MB / 0.6747 GB, free: 0.9414 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.656e-05/1.091, allocations: 8.031 kB / 0.6747 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004295/1.096, allocations: 0.9161 MB / 0.6756 GB, free: 4 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05191/1.148, allocations: 6.741 MB / 0.6822 GB, free: 9.242 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02561/1.173, allocations: 6.317 MB / 0.6883 GB, free: 2.863 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005325/1.174, allocations: 332.6 kB / 0.6886 GB, free: 2.535 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002658/1.177, allocations: 439.8 kB / 0.6891 GB, free: 2.105 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03719/1.214, allocations: 10.99 MB / 0.6998 GB, free: 6.086 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002887/1.214, allocations: 75.3 kB / 0.6999 GB, free: 6.012 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001393/1.216, allocations: 211.9 kB / 0.7001 GB, free: 5.805 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002474/1.218, allocations: 1.022 MB / 0.7011 GB, free: 4.777 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3734/1.592, allocations: 9.158 MB / 0.71 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07547/1.667, allocations: 47.67 MB / 0.7566 GB, free: 87 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/1.69, allocations: 4.103 MB / 0.7606 GB, free: 86.32 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003866/1.693, allocations: 1.796 MB / 0.7623 GB, free: 86.29 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/1.711, allocations: 7.509 MB / 0.7697 GB, free: 82.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/1.711, allocations: 50.38 kB / 0.7697 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 5.531e-06/1.711, allocations: 0 / 0.7697 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.1964/1.907, allocations: 25.71 MB / 0.7948 GB, free: 75.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.907, allocations: 208.3 kB / 0.795 GB, free: 75.16 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01324/1.921, allocations: 3.781 MB / 0.7987 GB, free: 73.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001043/1.922, allocations: 60.83 kB / 0.7988 GB, free: 73.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00417/1.926, allocations: 3.121 MB / 0.8018 GB, free: 71.37 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00207/1.928, allocations: 0.873 MB / 0.8027 GB, free: 70.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/1.929, allocations: 133.2 kB / 0.8028 GB, free: 70.62 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007241/1.93, allocations: 0.5793 MB / 0.8034 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01149/1.942, allocations: 3.366 MB / 0.8066 GB, free: 68.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01463/1.956, allocations: 6.987 MB / 0.8135 GB, free: 62.73 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/1.971, allocations: 4.749 MB / 0.8181 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002112/1.972, allocations: 36.12 kB / 0.8181 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.08914/2.061, allocations: 15.19 MB / 0.833 GB, free: 49.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/2.061, allocations: 60.97 kB / 0.833 GB, free: 49.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003001/2.061, allocations: 124 kB / 0.8331 GB, free: 49.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05827/2.12, allocations: 5.936 MB / 0.8389 GB, free: 45.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01217/2.132, allocations: 1.432 MB / 0.8403 GB, free: 44.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05198/2.184, allocations: 24.97 MB / 0.8647 GB, free: 19.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0101/2.194, allocations: 395.4 kB / 0.8651 GB, free: 18.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/2.196, allocations: 380 kB / 0.8655 GB, free: 18.33 MB / 0.4948 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 () * 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.002099/2.198, allocations: 0.5835 MB / 0.866 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/2.199, allocations: 406.8 kB / 0.8664 GB, free: 17.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05/2.249, allocations: 10.76 MB / 0.8769 GB, free: 6.555 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.701e-05/2.249, allocations: 24 kB / 0.877 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.207e-05/2.249, allocations: 12 kB / 0.877 GB, free: 6.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.783e-05/2.249, allocations: 11.95 kB / 0.877 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08414/2.333, allocations: 20.15 MB / 0.8967 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.382e-05/2.334, allocations: 7.984 kB / 0.8967 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004044/2.338, allocations: 379.4 kB / 0.897 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.419/2.757, allocations: 4.989 MB / 0.9019 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006937/2.757, allocations: 42.38 kB / 0.9019 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04859/2.806, allocations: 20.14 MB / 0.9216 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/2.806, allocations: 11.22 kB / 0.9216 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05303/2.859, allocations: 14.5 MB / 0.9358 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00364/2.863, allocations: 0.9615 MB / 0.9367 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/2.864, allocations: 43.39 kB / 0.9368 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005105/2.87, allocations: 167.1 kB / 0.9369 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001156/2.871, allocations: 155.2 kB / 0.9371 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000347/2.871, allocations: 62.12 kB / 0.9371 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006991/2.878, allocations: 2.656 MB / 0.9397 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.583e-06/2.878, allocations: 4.219 kB / 0.9397 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008257/2.886, allocations: 1.329 MB / 0.941 GB, free: 116.2 MB / 0.5105 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 () * 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.05413/2.941, allocations: 16.3 MB / 0.9569 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01774/2.958, allocations: 7.863 MB / 0.9646 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/2.959, allocations: 5.062 kB / 0.9646 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007504/2.966, allocations: 3.086 MB / 0.9676 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004694/2.971, allocations: 494.2 kB / 0.9681 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03701/3.008, allocations: 11.95 MB / 0.9798 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008084/3.016, allocations: 3.615 MB / 0.9833 GB, free: 98.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006129/3.022, allocations: 2.119 MB / 0.9854 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of SimCode: time 1.754e-06/3.022, allocations: 0 / 0.9854 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.95/7.972, allocations: 132.5 MB / 1.115 GB, free: 116.9 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat