Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001439/0.001439, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001537/0.001536, allocations: 92.62 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4508/0.4508, allocations: 43.48 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.005e-05, allocations: 0 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4466/0.4467, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2185/0.6652, allocations: 114.7 MB / 0.578 GB, free: 484 kB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.6656, allocations: 79.45 kB / 0.5781 GB, free: 408 kB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.915/1.581, allocations: 140.2 MB / 0.715 GB, free: 93.81 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.334e-06/1.581, allocations: 0 / 0.715 GB, free: 93.81 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004893/1.581, allocations: 134.7 kB / 0.7151 GB, free: 93.68 MB / 475.1 MB 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.02755/1.609, allocations: 6.636 MB / 0.7216 GB, free: 86.98 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/1.609, allocations: 8.031 kB / 0.7216 GB, free: 86.98 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06696/1.676, allocations: 9.336 MB / 0.7307 GB, free: 77.62 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03435/1.71, allocations: 9.135 MB / 0.7396 GB, free: 68.48 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004178/1.711, allocations: 208 kB / 0.7398 GB, free: 68.28 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003537/1.714, allocations: 387.8 kB / 0.7402 GB, free: 67.9 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02398/1.738, allocations: 9.339 MB / 0.7493 GB, free: 58.56 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03582/1.774, allocations: 13.29 MB / 0.7623 GB, free: 44.09 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000535/1.775, allocations: 79.23 kB / 0.7624 GB, free: 44.02 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003139/1.778, allocations: 36 kB / 0.7624 GB, free: 43.98 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003434/1.781, allocations: 1.387 MB / 0.7638 GB, free: 42.6 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1103/1.892, allocations: 62.33 MB / 0.8246 GB, free: 10.72 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009721/1.901, allocations: 4.346 MB / 0.8289 GB, free: 6.234 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006844/1.908, allocations: 3.021 MB / 0.8318 GB, free: 3.207 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004177/1.913, allocations: 2.383 MB / 0.8341 GB, free: 484 kB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/1.913, allocations: 68.42 kB / 0.8342 GB, free: 404 kB / 0.4952 GB Notification: Performance of pre-optimization done (n=251): time 8.446e-06/1.913, allocations: 0 / 0.8342 GB, free: 404 kB / 0.4952 GB Notification: Performance of matching and sorting (n=343): time 0.5103/2.423, allocations: 27.56 MB / 0.8611 GB, free: 113.9 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/2.423, allocations: 243.5 kB / 0.8614 GB, free: 113.6 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01132/2.435, allocations: 4.397 MB / 0.8656 GB, free: 113.2 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.00102/2.436, allocations: 29.64 kB / 0.8657 GB, free: 113.2 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004027/2.44, allocations: 4.368 MB / 0.8699 GB, free: 110.8 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002226/2.442, allocations: 1.211 MB / 0.8711 GB, free: 110.1 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001491/2.443, allocations: 3.062 kB / 0.8711 GB, free: 110.1 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0008024/2.444, allocations: 0.6661 MB / 0.8718 GB, free: 109.7 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00832/2.453, allocations: 3.436 MB / 0.8751 GB, free: 109.7 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01151/2.464, allocations: 8.093 MB / 0.883 GB, free: 103 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/2.476, allocations: 5.197 MB / 0.8881 GB, free: 101.2 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001987/2.476, allocations: 49.25 kB / 0.8882 GB, free: 101.2 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.04717/2.523, allocations: 13.5 MB / 0.9013 GB, free: 97.22 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/2.523, allocations: 74.28 kB / 0.9014 GB, free: 97.22 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002546/2.524, allocations: 168.7 kB / 0.9016 GB, free: 97.21 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02114/2.545, allocations: 3.502 MB / 0.905 GB, free: 96.56 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01167/2.556, allocations: 1.856 MB / 0.9068 GB, free: 96.34 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04047/2.597, allocations: 16.83 MB / 0.9232 GB, free: 84.52 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.607, allocations: 328.7 kB / 0.9236 GB, free: 84.27 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002524/2.61, allocations: 488.3 kB / 0.924 GB, free: 83.8 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * 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 (1004): * Single equations (assignments): 1000 * 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.003755/2.614, allocations: 0.5192 MB / 0.9245 GB, free: 83.28 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03238/2.646, allocations: 8.532 MB / 0.9329 GB, free: 76.41 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/2.648, allocations: 0.4975 MB / 0.9334 GB, free: 75.91 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03235/2.681, allocations: 8.534 MB / 0.9417 GB, free: 69.27 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.46e-05/2.681, allocations: 35.38 kB / 0.9417 GB, free: 69.24 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.572e-05/2.681, allocations: 16 kB / 0.9417 GB, free: 69.22 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.878e-05/2.681, allocations: 17.17 kB / 0.9418 GB, free: 69.22 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05838/2.739, allocations: 17.3 MB / 0.9586 GB, free: 55.35 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.656e-05/2.739, allocations: 4 kB / 0.9586 GB, free: 55.34 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004518/2.744, allocations: 0.4883 MB / 0.9591 GB, free: 54.94 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01966/2.764, allocations: 3.056 MB / 0.9621 GB, free: 52.91 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009787/2.765, allocations: 15.84 kB / 0.9621 GB, free: 52.89 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03486/2.799, allocations: 14.49 MB / 0.9763 GB, free: 38.45 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.355e-05/2.8, allocations: 11.94 kB / 0.9763 GB, free: 38.44 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03856/2.838, allocations: 13.82 MB / 0.9898 GB, free: 24.32 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004409/2.843, allocations: 1.067 MB / 0.9908 GB, free: 23.23 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001662/2.844, allocations: 8 kB / 0.9908 GB, free: 23.22 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005585/2.85, allocations: 155.7 kB / 0.991 GB, free: 23.07 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001544/2.852, allocations: 225.6 kB / 0.9912 GB, free: 22.85 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007078/2.852, allocations: 93.08 kB / 0.9913 GB, free: 22.76 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007997/2.86, allocations: 2.987 MB / 0.9942 GB, free: 19.79 MB / 0.4952 GB Notification: Performance of sort global known variables: time 8.21e-07/2.86, allocations: 3.938 kB / 0.9942 GB, free: 19.79 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01198/2.872, allocations: 1.47 MB / 0.9956 GB, free: 18.33 MB / 0.4952 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 (259): * Single equations (assignments): 255 * 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.04072/2.913, allocations: 15.73 MB / 1.011 GB, free: 2.324 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0211/2.934, allocations: 8.453 MB / 1.019 GB, free: 9.875 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/2.934, allocations: 4.875 kB / 1.019 GB, free: 9.871 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.008906/2.943, allocations: 3.365 MB / 1.023 GB, free: 6.496 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00598/2.949, allocations: 0.5769 MB / 1.023 GB, free: 5.941 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4348/3.384, allocations: 15.51 MB / 1.038 GB, free: 127.1 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01424/3.398, allocations: 4.974 MB / 1.043 GB, free: 126.3 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008424/3.407, allocations: 3.107 MB / 1.046 GB, free: 126.3 MB / 0.5108 GB Notification: Performance of SimCode: time 1.613e-06/3.407, allocations: 2.844 kB / 1.046 GB, free: 126.3 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.231/8.638, allocations: 154.3 MB / 1.197 GB, free: 14.39 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat