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.001629/0.001633, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.183/2.183, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001168/0.001168, allocations: 98.8 kB / 270.9 MB, free: 13.38 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.3579/0.3579, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006302/0.0006303, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1324, allocations: 58.87 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.4015/0.534, allocations: 45.74 MB / 0.5235 GB, free: 9.91 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.5657, allocations: 11.1 MB / 0.5343 GB, free: 9.441 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01278/0.5786, allocations: 227.9 kB / 0.5346 GB, free: 9.406 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009099/0.5877, allocations: 2.286 MB / 0.5368 GB, free: 8.977 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03159/0.6194, allocations: 6.684 MB / 0.5433 GB, free: 7.703 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006637/0.6261, allocations: 0.8414 MB / 0.5441 GB, free: 7.469 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.1011/0.7273, allocations: 27.89 MB / 0.5714 GB, free: 9.137 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01623/0.7436, allocations: 5.096 MB / 0.5764 GB, free: 4.184 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006252/0.7499, allocations: 1.564 MB / 0.5779 GB, free: 2.66 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00759/0.7576, allocations: 2.28 MB / 0.5801 GB, free: 384 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002486/0.7601, allocations: 240 kB / 0.5803 GB, free: 144 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006575/0.7668, allocations: 1.089 MB / 0.5814 GB, free: 15.05 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006925/0.7738, allocations: 2.408 MB / 0.5837 GB, free: 12.64 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004297/0.7781, allocations: 1.202 MB / 0.5849 GB, free: 11.43 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02052/0.7987, allocations: 8.116 MB / 0.5928 GB, free: 3.309 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.7988, allocations: 0 / 0.5928 GB, free: 3.309 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.7988, allocations: 0 / 0.5928 GB, free: 3.309 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004251/0.7992, allocations: 0 / 0.5928 GB, free: 3.309 MB / 394.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.02557/0.8248, allocations: 6.485 MB / 0.5992 GB, free: 12.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.8249, allocations: 8.031 kB / 0.5992 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004976/0.8299, allocations: 1.137 MB / 0.6003 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.102/0.9319, allocations: 9.723 MB / 0.6098 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01684/0.9488, allocations: 4.698 MB / 0.6144 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004796/0.9494, allocations: 316 kB / 0.6147 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002634/0.952, allocations: 427.7 kB / 0.6151 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04545/0.9975, allocations: 15.77 MB / 0.6305 GB, free: 11.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000283/0.9979, allocations: 59.42 kB / 0.6306 GB, free: 11.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001948/0.9998, allocations: 211.8 kB / 0.6308 GB, free: 11.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009471/1.009, allocations: 3.216 MB / 0.6339 GB, free: 8.172 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06164/1.071, allocations: 14.09 MB / 0.6477 GB, free: 10.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1349/1.206, allocations: 57.57 MB / 0.7039 GB, free: 14.92 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02515/1.231, allocations: 6.596 MB / 0.7103 GB, free: 8.074 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3732/1.605, allocations: 14.56 MB / 0.7245 GB, free: 180 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/1.605, allocations: 68.42 kB / 0.7246 GB, free: 179.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 7.494e-06/1.605, allocations: 0 / 0.7246 GB, free: 179.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.2752/1.88, allocations: 43 MB / 0.7666 GB, free: 158.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.071e-05/1.88, allocations: 213.9 kB / 0.7668 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/1.892, allocations: 5.739 MB / 0.7724 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/1.893, allocations: 78.72 kB / 0.7725 GB, free: 152 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003547/1.896, allocations: 4.274 MB / 0.7766 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002101/1.898, allocations: 1.253 MB / 0.7779 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001223/1.9, allocations: 168 kB / 0.778 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000633/1.9, allocations: 0.6867 MB / 0.7787 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01135/1.912, allocations: 4.616 MB / 0.7832 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01432/1.926, allocations: 9.537 MB / 0.7925 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01454/1.941, allocations: 6.488 MB / 0.7989 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/1.941, allocations: 48 kB / 0.7989 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.07154/2.012, allocations: 18.79 MB / 0.8173 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/2.013, allocations: 85.64 kB / 0.8173 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002273/2.013, allocations: 172 kB / 0.8175 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04069/2.053, allocations: 5.825 MB / 0.8232 GB, free: 97.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/2.067, allocations: 2.063 MB / 0.8252 GB, free: 95.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05354/2.12, allocations: 24.94 MB / 0.8496 GB, free: 70.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/2.132, allocations: 0.5539 MB / 0.8501 GB, free: 69.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/2.134, allocations: 0.5029 MB / 0.8506 GB, free: 69.26 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * 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 (1058): * Single equations (assignments): 1050 * 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.008347/2.142, allocations: 3.097 MB / 0.8536 GB, free: 66.15 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/2.144, allocations: 0.5013 MB / 0.8541 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05439/2.198, allocations: 12.68 MB / 0.8665 GB, free: 52.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001171/2.198, allocations: 59.03 kB / 0.8665 GB, free: 52.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.126e-05/2.198, allocations: 23.92 kB / 0.8666 GB, free: 52.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.938e-05/2.198, allocations: 11.95 kB / 0.8666 GB, free: 52.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08463/2.283, allocations: 24.45 MB / 0.8904 GB, free: 27.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.433e-05/2.283, allocations: 8 kB / 0.8905 GB, free: 27.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005989/2.289, allocations: 0.5778 MB / 0.891 GB, free: 27.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03572/2.325, allocations: 4.843 MB / 0.8957 GB, free: 22.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009625/2.326, allocations: 57.17 kB / 0.8958 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4185/2.744, allocations: 20.19 MB / 0.9155 GB, free: 160.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/2.745, allocations: 12.97 kB / 0.9155 GB, free: 160.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06648/2.811, allocations: 17.84 MB / 0.9329 GB, free: 153.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004884/2.816, allocations: 1.246 MB / 0.9342 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0021/2.818, allocations: 60 kB / 0.9342 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006581/2.825, allocations: 258 kB / 0.9345 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001868/2.827, allocations: 192.2 kB / 0.9346 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000693/2.827, allocations: 91.75 kB / 0.9347 GB, free: 153.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009273/2.837, allocations: 3.606 MB / 0.9383 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.81e-07/2.837, allocations: 0 / 0.9383 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01211/2.849, allocations: 1.736 MB / 0.94 GB, free: 152 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 () * 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.06407/2.913, allocations: 19.56 MB / 0.9591 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02507/2.938, allocations: 10.6 MB / 0.9694 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/2.938, allocations: 0 / 0.9694 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01024/2.948, allocations: 4.052 MB / 0.9734 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005727/2.954, allocations: 0.5814 MB / 0.9739 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4375/3.392, allocations: 150 MB / 1.12 GB, free: 163.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01257/3.404, allocations: 4.765 MB / 1.125 GB, free: 163 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008206/3.413, allocations: 2.966 MB / 1.128 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.893e-06/3.413, allocations: 0 / 1.128 GB, free: 162.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.674/9.087, allocations: 180.2 MB / 1.304 GB, free: 156.5 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