Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.001456/0.001457, allocations: 170.6 kB / 8.739 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 221.5 MB / 230.7 MB, free: 7.531 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.0009436/0.0009438, allocations: 89.97 kB / 281.6 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2097/0.2097, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.929e-05, allocations: 224 / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.138, allocations: 61.92 MB / 0.4948 GB, free: 1.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5961, allocations: 118.9 MB / 0.6109 GB, free: 9.453 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.5964, allocations: 79.95 kB / 0.6109 GB, free: 9.375 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8016/1.398, allocations: 170.9 MB / 0.7778 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.444e-06/1.398, allocations: 0 / 0.7778 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004096/1.399, allocations: 156.8 kB / 0.778 GB, free: 101.4 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02569/1.424, allocations: 7.683 MB / 0.7855 GB, free: 94.95 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.424, allocations: 11.98 kB / 0.7855 GB, free: 94.94 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03127/1.456, allocations: 6.947 MB / 0.7923 GB, free: 87.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02538/1.481, allocations: 9.235 MB / 0.8013 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005806/1.482, allocations: 251.9 kB / 0.8015 GB, free: 78.48 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00445/1.486, allocations: 463.7 kB / 0.802 GB, free: 78.03 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02372/1.51, allocations: 13.15 MB / 0.8148 GB, free: 64.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03651/1.546, allocations: 17.63 MB / 0.832 GB, free: 45.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002997/1.547, allocations: 95.12 kB / 0.8321 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001451/1.548, allocations: 44 kB / 0.8322 GB, free: 45.69 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002274/1.551, allocations: 1.965 MB / 0.8341 GB, free: 43.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5087/2.059, allocations: 78.9 MB / 0.9111 GB, free: 65.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/2.072, allocations: 5.992 MB / 0.917 GB, free: 64.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007493/2.079, allocations: 3.876 MB / 0.9208 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03717/2.117, allocations: 17.93 MB / 0.9383 GB, free: 59.96 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.651e-05/2.117, allocations: 64.86 kB / 0.9383 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=334): time 7.595e-06/2.117, allocations: 3.875 kB / 0.9384 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=426): time 0.07437/2.191, allocations: 26.23 MB / 0.964 GB, free: 52.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/2.191, allocations: 202.1 kB / 0.9642 GB, free: 52.27 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01378/2.205, allocations: 5.026 MB / 0.9691 GB, free: 50.44 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001615/2.207, allocations: 25.7 kB / 0.9691 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005142/2.212, allocations: 5.509 MB / 0.9745 GB, free: 46.11 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002272/2.214, allocations: 1.518 MB / 0.976 GB, free: 44.97 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001666/2.216, allocations: 7.062 kB / 0.976 GB, free: 44.97 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001289/2.217, allocations: 0.7759 MB / 0.9767 GB, free: 44.47 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006543/2.224, allocations: 3.972 MB / 0.9806 GB, free: 43.01 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009323/2.233, allocations: 10.04 MB / 0.9904 GB, free: 33.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/2.243, allocations: 6.396 MB / 0.9966 GB, free: 31.46 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003537/2.244, allocations: 64.25 kB / 0.9967 GB, free: 31.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.03544/2.279, allocations: 14.83 MB / 1.011 GB, free: 21.61 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004614/2.28, allocations: 96 kB / 1.011 GB, free: 21.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005189/2.28, allocations: 216 kB / 1.011 GB, free: 21.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007651/2.288, allocations: 2.295 MB / 1.014 GB, free: 19.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009766/2.298, allocations: 2.555 MB / 1.016 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01672/2.314, allocations: 11.12 MB / 1.027 GB, free: 7.754 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01051/2.325, allocations: 0.4911 MB / 1.028 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003099/2.328, allocations: 0.617 MB / 1.028 GB, free: 6.773 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1333): * Single equations (assignments): 1326 * Array equations: 6 * 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 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004552/2.333, allocations: 0.6367 MB / 1.029 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01795/2.351, allocations: 7.867 MB / 1.036 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002392/2.353, allocations: 0.5708 MB / 1.037 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/2.375, allocations: 7.932 MB / 1.045 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001273/2.375, allocations: 67.44 kB / 1.045 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.324e-05/2.375, allocations: 12 kB / 1.045 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001111/2.375, allocations: 19.12 kB / 1.045 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05043/2.425, allocations: 17.21 MB / 1.062 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/2.426, allocations: 16.06 kB / 1.062 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003603/2.429, allocations: 0.6447 MB / 1.062 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007256/2.436, allocations: 1.808 MB / 1.064 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001378/2.438, allocations: 27.42 kB / 1.064 GB, free: 8.586 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01715/2.455, allocations: 9.393 MB / 1.073 GB, free: 432 kB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.688e-05/2.455, allocations: 19.89 kB / 1.073 GB, free: 412 kB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/2.482, allocations: 13.98 MB / 1.087 GB, free: 2.234 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/2.484, allocations: 0.5868 MB / 1.088 GB, free: 1.625 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001625/2.486, allocations: 19.98 kB / 1.088 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004214/2.49, allocations: 195.7 kB / 1.088 GB, free: 1.414 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.491, allocations: 265.8 kB / 1.088 GB, free: 1.152 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006288/2.492, allocations: 116.7 kB / 1.088 GB, free: 1.039 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008301/2.5, allocations: 3.344 MB / 1.091 GB, free: 13.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.42e-07/2.5, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01473/2.515, allocations: 1.681 MB / 1.093 GB, free: 12.03 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 330 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4161/2.931, allocations: 16.97 MB / 1.11 GB, free: 155.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02188/2.953, allocations: 9.391 MB / 1.119 GB, free: 155.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.852e-05/2.953, allocations: 2 kB / 1.119 GB, free: 155.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.008012/2.961, allocations: 3.259 MB / 1.122 GB, free: 155 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0056/2.966, allocations: 0.5708 MB / 1.123 GB, free: 155 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05954/3.026, allocations: 16.95 MB / 1.139 GB, free: 151.9 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01309/3.039, allocations: 5.754 MB / 1.145 GB, free: 151 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01115/3.05, allocations: 3.487 MB / 1.148 GB, free: 150.9 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007475/3.058, allocations: 3.661 MB / 1.152 GB, free: 149.1 MB / 0.573 GB Notification: Performance of SimCode: time 1.954e-06/3.058, allocations: 0 / 1.152 GB, free: 149.1 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2136/3.271, allocations: 135.4 MB / 1.284 GB, free: 53.5 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/3.272, allocations: 138.7 kB / 1.284 GB, free: 53.31 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.532/9.803, allocations: 0 / 1.284 GB, free: 53.31 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat