Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",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.0021/0.0021, 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.154/2.154, 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.001119/0.001119, allocations: 82.66 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.2866/0.2866, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.223e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5171/0.635, allocations: 109.3 MB / 0.5797 GB, free: 10.51 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.6354, allocations: 80.39 kB / 0.5797 GB, free: 10.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6769/1.312, allocations: 127 MB / 0.7038 GB, free: 2.926 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.198e-06/1.312, allocations: 0 / 0.7038 GB, free: 2.926 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004365/1.313, allocations: 127.9 kB / 0.7039 GB, free: 2.801 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.3727/1.686, allocations: 6.322 MB / 0.7101 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/1.686, allocations: 14.12 kB / 0.7101 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006993/1.693, allocations: 1.308 MB / 0.7113 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06361/1.756, allocations: 8.324 MB / 0.7195 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02994/1.786, allocations: 7.377 MB / 0.7267 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006677/1.787, allocations: 450.8 kB / 0.7271 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003894/1.791, allocations: 0.5852 MB / 0.7277 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0555/1.846, allocations: 15.64 MB / 0.7429 GB, free: 98.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005256/1.847, allocations: 74.8 kB / 0.743 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00351/1.851, allocations: 278.9 kB / 0.7433 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003572/1.854, allocations: 1.62 MB / 0.7449 GB, free: 98.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04076/1.895, allocations: 13.82 MB / 0.7584 GB, free: 98.51 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/2.003, allocations: 64.11 MB / 0.821 GB, free: 53.98 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02229/2.026, allocations: 6.42 MB / 0.8272 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007334/2.033, allocations: 3.531 MB / 0.8307 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0373/2.07, allocations: 14.44 MB / 0.8448 GB, free: 33.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.485e-05/2.07, allocations: 67.91 kB / 0.8448 GB, free: 33 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 7.624e-06/2.07, allocations: 0 / 0.8448 GB, free: 33 MB / 0.4948 GB Notification: Performance of matching and sorting (n=339): time 0.1555/2.226, allocations: 29.79 MB / 0.8739 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/2.226, allocations: 220.4 kB / 0.8741 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01225/2.238, allocations: 4.801 MB / 0.8788 GB, free: 3.855 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009491/2.239, allocations: 73.7 kB / 0.8789 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004105/2.244, allocations: 4.291 MB / 0.8831 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002641/2.246, allocations: 1.249 MB / 0.8843 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/2.248, allocations: 179.3 kB / 0.8845 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00108/2.249, allocations: 0.6828 MB / 0.8852 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/2.262, allocations: 4.492 MB / 0.8895 GB, free: 8.883 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3882/2.65, allocations: 9.439 MB / 0.8988 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01632/2.667, allocations: 6.428 MB / 0.905 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002711/2.667, allocations: 50.09 kB / 0.9051 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.07529/2.742, allocations: 18.4 MB / 0.923 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001633/2.742, allocations: 82.62 kB / 0.9231 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002876/2.743, allocations: 173.4 kB / 0.9233 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03955/2.782, allocations: 5.63 MB / 0.9288 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01388/2.796, allocations: 2.063 MB / 0.9308 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04903/2.845, allocations: 23.63 MB / 0.9539 GB, free: 98.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01157/2.857, allocations: 0.5386 MB / 0.9544 GB, free: 98.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00228/2.859, allocations: 0.5121 MB / 0.9549 GB, free: 98.45 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 () * 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.003345/2.863, allocations: 0.7503 MB / 0.9556 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/2.864, allocations: 0.4983 MB / 0.9561 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05384/2.918, allocations: 12.36 MB / 0.9682 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001228/2.918, allocations: 56.86 kB / 0.9682 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/2.918, allocations: 7.781 kB / 0.9683 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.056e-05/2.918, allocations: 18.62 kB / 0.9683 GB, free: 94.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08415/3.003, allocations: 23.97 MB / 0.9917 GB, free: 84.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.573e-05/3.003, allocations: 11.11 kB / 0.9917 GB, free: 84.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005874/3.009, allocations: 0.5715 MB / 0.9923 GB, free: 84.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03466/3.043, allocations: 4.642 MB / 0.9968 GB, free: 83.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008953/3.044, allocations: 65.31 kB / 0.9968 GB, free: 83.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03881/3.083, allocations: 18.92 MB / 1.015 GB, free: 66.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/3.083, allocations: 7.938 kB / 1.015 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05839/3.141, allocations: 17.39 MB / 1.032 GB, free: 50.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00465/3.146, allocations: 1.214 MB / 1.033 GB, free: 49.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001975/3.148, allocations: 61.7 kB / 1.034 GB, free: 49.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006227/3.154, allocations: 247.6 kB / 1.034 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/3.156, allocations: 194.7 kB / 1.034 GB, free: 48.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006275/3.157, allocations: 89.91 kB / 1.034 GB, free: 48.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008549/3.165, allocations: 3.33 MB / 1.037 GB, free: 45.48 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.505e-06/3.165, allocations: 0 / 1.037 GB, free: 45.48 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01122/3.177, allocations: 1.711 MB / 1.039 GB, free: 43.79 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 (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.06019/3.237, allocations: 19.09 MB / 1.058 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02345/3.26, allocations: 10.4 MB / 1.068 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/3.26, allocations: 4 kB / 1.068 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008996/3.269, allocations: 3.951 MB / 1.072 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/3.275, allocations: 0.5833 MB / 1.072 GB, free: 9.516 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05301/3.328, allocations: 16.32 MB / 1.088 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3772/3.705, allocations: 4.764 MB / 1.093 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008178/3.713, allocations: 2.975 MB / 1.096 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.903e-06/3.713, allocations: 0 / 1.096 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.314/9.027, allocations: 181 MB / 1.272 GB, free: 6.266 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat