Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001889/0.001889, allocations: 180.7 kB / 14.15 MB, free: 1.176 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.461/1.461, allocations: 221.4 MB / 236 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009919/0.0009916, allocations: 88.05 kB / 287 MB, free: 188 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2263/0.2263, allocations: 44.15 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.72e-05/3.722e-05, allocations: 224 / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1316, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5312/0.6629, allocations: 117.4 MB / 0.6164 GB, free: 3.855 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.6632, allocations: 79.95 kB / 0.6165 GB, free: 3.777 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6977/1.361, allocations: 144.9 MB / 0.758 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.385e-06/1.361, allocations: 0 / 0.758 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003723/1.361, allocations: 137.2 kB / 0.7581 GB, free: 113.7 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02185/1.383, allocations: 6.632 MB / 0.7646 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/1.383, allocations: 11.69 kB / 0.7646 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006138/1.389, allocations: 1.28 MB / 0.7658 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03664/1.426, allocations: 9.333 MB / 0.775 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02613/1.452, allocations: 8.662 MB / 0.7834 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007038/1.453, allocations: 485 kB / 0.7839 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00439/1.457, allocations: 0.6344 MB / 0.7845 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04345/1.501, allocations: 15.55 MB / 0.7997 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000644/1.502, allocations: 82.97 kB / 0.7998 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003635/1.505, allocations: 297.5 kB / 0.8 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002425/1.508, allocations: 1.39 MB / 0.8014 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03005/1.538, allocations: 12.72 MB / 0.8138 GB, free: 90.4 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08487/1.623, allocations: 64.4 MB / 0.8767 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/1.639, allocations: 6.237 MB / 0.8828 GB, free: 18.49 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003973/1.643, allocations: 3.12 MB / 0.8859 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01756/1.66, allocations: 11.14 MB / 0.8967 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.797e-05/1.661, allocations: 64.44 kB / 0.8968 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 5.991e-06/1.661, allocations: 4 kB / 0.8968 GB, free: 3.793 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.4497/2.11, allocations: 29.48 MB / 0.9256 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/2.11, allocations: 247.2 kB / 0.9258 GB, free: 121 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/2.12, allocations: 4.904 MB / 0.9306 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008672/2.121, allocations: 79.38 kB / 0.9307 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003798/2.125, allocations: 4.47 MB / 0.935 GB, free: 118.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001966/2.127, allocations: 1.229 MB / 0.9362 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006447/2.128, allocations: 165.9 kB / 0.9364 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004981/2.128, allocations: 0.6523 MB / 0.937 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006511/2.135, allocations: 3.531 MB / 0.9405 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009089/2.144, allocations: 8.071 MB / 0.9484 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008584/2.153, allocations: 5.296 MB / 0.9535 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002175/2.153, allocations: 50.94 kB / 0.9536 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.03288/2.186, allocations: 14.59 MB / 0.9678 GB, free: 106 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/2.186, allocations: 79.78 kB / 0.9679 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000266/2.186, allocations: 157.5 kB / 0.9681 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/2.198, allocations: 3.557 MB / 0.9715 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006806/2.205, allocations: 1.796 MB / 0.9733 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02781/2.233, allocations: 17.92 MB / 0.9908 GB, free: 97.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008654/2.242, allocations: 479.9 kB / 0.9913 GB, free: 96.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002237/2.244, allocations: 478.5 kB / 0.9917 GB, free: 96.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (972): * Single equations (assignments): 968 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003498/2.248, allocations: 0.7179 MB / 0.9924 GB, free: 96.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/2.25, allocations: 0.5263 MB / 0.9929 GB, free: 96.03 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0215/2.271, allocations: 8.814 MB / 1.002 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.878e-05/2.271, allocations: 34.72 kB / 1.002 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.985e-05/2.271, allocations: 14.59 kB / 1.002 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.332e-05/2.271, allocations: 14.34 kB / 1.002 GB, free: 92.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0493/2.321, allocations: 18.6 MB / 1.02 GB, free: 84.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.841e-05/2.321, allocations: 8 kB / 1.02 GB, free: 84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002565/2.323, allocations: 489 kB / 1.02 GB, free: 83.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01037/2.334, allocations: 3.103 MB / 1.023 GB, free: 81.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000804/2.335, allocations: 63.92 kB / 1.023 GB, free: 81.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02202/2.357, allocations: 15.58 MB / 1.039 GB, free: 68.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/2.357, allocations: 16 kB / 1.039 GB, free: 68.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02578/2.383, allocations: 14.03 MB / 1.052 GB, free: 55.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002835/2.386, allocations: 0.5549 MB / 1.053 GB, free: 55.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002408/2.388, allocations: 69.27 kB / 1.053 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/2.392, allocations: 202.4 kB / 1.053 GB, free: 55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/2.394, allocations: 215 kB / 1.053 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005948/2.394, allocations: 95.8 kB / 1.053 GB, free: 54.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008183/2.402, allocations: 3.462 MB / 1.057 GB, free: 51.74 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.01e-07/2.402, allocations: 0 / 1.057 GB, free: 51.74 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01158/2.414, allocations: 1.681 MB / 1.058 GB, free: 50.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02619/2.44, allocations: 15.97 MB / 1.074 GB, free: 35.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0151/2.455, allocations: 8.787 MB / 1.083 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.571e-05/2.455, allocations: 0 / 1.083 GB, free: 26.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005815/2.461, allocations: 3.446 MB / 1.086 GB, free: 23.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005818/2.467, allocations: 0.6831 MB / 1.087 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04772/2.515, allocations: 15.03 MB / 1.101 GB, free: 7.238 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.526, allocations: 4.955 MB / 1.106 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009365/2.535, allocations: 2.602 MB / 1.109 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007567/2.543, allocations: 3.057 MB / 1.112 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of SimCode: time 1.883e-06/2.543, allocations: 0 / 1.112 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5299/3.072, allocations: 132.2 MB / 1.241 GB, free: 62.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/3.073, allocations: 176.5 kB / 1.241 GB, free: 62.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/10.12, allocations: 3.516 kB / 1.241 GB, free: 62.25 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat