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.002399/0.002399, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.00116/0.001159, allocations: 92.36 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5431/0.5431, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006515/0.0006518, allocations: 16 kB / 431.5 MB, free: 6.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1347, allocations: 58.85 MB / 490.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5368/0.6716, allocations: 115.4 MB / 0.5915 GB, free: 3.121 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/0.6719, allocations: 79.97 kB / 0.5916 GB, free: 3.043 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9626/1.635, allocations: 143 MB / 0.7313 GB, free: 86.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.635, allocations: 0 / 0.7313 GB, free: 86.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005088/1.635, allocations: 134.8 kB / 0.7314 GB, free: 86.8 MB / 490.7 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.03132/1.666, allocations: 7.309 MB / 0.7386 GB, free: 83.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/1.667, allocations: 7.344 kB / 0.7386 GB, free: 83.88 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00624/1.673, allocations: 1.287 MB / 0.7398 GB, free: 83.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0672/1.74, allocations: 9.319 MB / 0.7489 GB, free: 81.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03409/1.774, allocations: 9.177 MB / 0.7579 GB, free: 78.63 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006097/1.775, allocations: 484.2 kB / 0.7583 GB, free: 78.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003851/1.779, allocations: 0.6332 MB / 0.759 GB, free: 78.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05332/1.832, allocations: 15.66 MB / 0.7743 GB, free: 69.67 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004817/1.833, allocations: 85.22 kB / 0.7743 GB, free: 69.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002625/1.835, allocations: 298.3 kB / 0.7746 GB, free: 69.44 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003169/1.838, allocations: 1.397 MB / 0.776 GB, free: 68.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04288/1.881, allocations: 12.91 MB / 0.7886 GB, free: 58.51 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1078/1.989, allocations: 64.48 MB / 0.8516 GB, free: 8.457 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0325/2.022, allocations: 6.272 MB / 0.8577 GB, free: 2.027 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4166/2.438, allocations: 11.17 MB / 0.8686 GB, free: 94.29 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.766e-05/2.439, allocations: 65.34 kB / 0.8686 GB, free: 94.25 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=245): time 5.941e-06/2.439, allocations: 3.812 kB / 0.8686 GB, free: 94.25 MB / 0.4949 GB Notification: Performance of matching and sorting (n=337): time 0.2393/2.678, allocations: 37.37 MB / 0.9051 GB, free: 89.96 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/2.678, allocations: 241.9 kB / 0.9054 GB, free: 89.7 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01217/2.69, allocations: 5.003 MB / 0.9103 GB, free: 88.95 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001031/2.691, allocations: 81.2 kB / 0.9103 GB, free: 88.88 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003889/2.695, allocations: 4.285 MB / 0.9145 GB, free: 85.52 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002174/2.697, allocations: 1.229 MB / 0.9157 GB, free: 84.61 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/2.699, allocations: 161.3 kB / 0.9159 GB, free: 84.49 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004884/2.699, allocations: 0.6542 MB / 0.9165 GB, free: 84.03 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008676/2.708, allocations: 3.607 MB / 0.92 GB, free: 82.69 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0122/2.72, allocations: 8.146 MB / 0.928 GB, free: 75.3 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/2.733, allocations: 5.315 MB / 0.9332 GB, free: 73.16 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001558/2.733, allocations: 50.59 kB / 0.9332 GB, free: 73.16 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.05139/2.784, allocations: 14.52 MB / 0.9474 GB, free: 68.15 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/2.785, allocations: 72.31 kB / 0.9475 GB, free: 68.15 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003306/2.785, allocations: 159.3 kB / 0.9476 GB, free: 68.15 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02228/2.807, allocations: 3.582 MB / 0.9511 GB, free: 67.48 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.819, allocations: 1.795 MB / 0.9529 GB, free: 67.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05956/2.879, allocations: 18.64 MB / 0.9711 GB, free: 58.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0158/2.894, allocations: 485.1 kB / 0.9715 GB, free: 57.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002247/2.897, allocations: 481.8 kB / 0.972 GB, free: 57.24 MB / 0.4949 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 () * Number of clocked 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.01011/2.907, allocations: 3.122 MB / 0.9751 GB, free: 54.49 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001819/2.909, allocations: 0.5303 MB / 0.9756 GB, free: 53.96 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03585/2.945, allocations: 8.896 MB / 0.9843 GB, free: 46.98 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.631e-05/2.945, allocations: 38.89 kB / 0.9843 GB, free: 46.95 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.912e-05/2.945, allocations: 12.56 kB / 0.9843 GB, free: 46.94 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-05/2.945, allocations: 18.58 kB / 0.9843 GB, free: 46.93 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06624/3.011, allocations: 18.66 MB / 1.003 GB, free: 31.88 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.466e-05/3.011, allocations: 4.094 kB / 1.003 GB, free: 31.88 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004625/3.016, allocations: 496.1 kB / 1.003 GB, free: 31.48 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02093/3.037, allocations: 3.116 MB / 1.006 GB, free: 29.34 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/3.038, allocations: 66.81 kB / 1.006 GB, free: 29.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04182/3.08, allocations: 16.32 MB / 1.022 GB, free: 12.82 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/3.08, allocations: 15.89 kB / 1.022 GB, free: 12.81 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04962/3.129, allocations: 14.15 MB / 1.036 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006959/3.137, allocations: 1.099 MB / 1.037 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003935/3.141, allocations: 69.5 kB / 1.037 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009109/3.15, allocations: 203.7 kB / 1.037 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002133/3.152, allocations: 222.2 kB / 1.037 GB, free: 12.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00116/3.153, allocations: 91.47 kB / 1.038 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01569/3.169, allocations: 3.546 MB / 1.041 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.01e-07/3.169, allocations: 0 / 1.041 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01739/3.186, allocations: 1.677 MB / 1.043 GB, free: 7.43 MB / 0.5105 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 () * Number of clocked 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.4446/3.631, allocations: 16.08 MB / 1.058 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02186/3.653, allocations: 8.916 MB / 1.067 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.359e-05/3.653, allocations: 8.375 kB / 1.067 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008754/3.662, allocations: 3.483 MB / 1.07 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/3.668, allocations: 0.6849 MB / 1.071 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1031/3.771, allocations: 139 MB / 1.207 GB, free: 32.51 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01518/3.786, allocations: 4.973 MB / 1.212 GB, free: 30.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008921/3.795, allocations: 3.122 MB / 1.215 GB, free: 28.3 MB / 0.573 GB Notification: Performance of SimCode: time 9.72e-07/3.795, allocations: 0 / 1.215 GB, free: 28.3 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.712/9.507, allocations: 155.3 MB / 1.366 GB, free: 139.3 MB / 0.573 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