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.001051/0.001051, allocations: 177 kB / 17.06 MB, free: 5.094 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.354/1.354, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008808/0.0008807, allocations: 92.55 kB / 292.1 MB, free: 10.93 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.4281/0.4281, allocations: 44.22 MB / 387.5 MB, free: 38.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003172, allocations: 8 kB / 460 MB, free: 1.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3465, allocations: 61.9 MB / 0.5096 GB, free: 37.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1532/0.4998, allocations: 117.4 MB / 0.6243 GB, free: 9.656 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.5001, allocations: 87.92 kB / 0.6244 GB, free: 9.574 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6632/1.163, allocations: 144.8 MB / 0.7658 GB, free: 80.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.163, allocations: 0 / 0.7658 GB, free: 80.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006208/1.164, allocations: 133.9 kB / 0.7659 GB, free: 80.84 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.02737/1.191, allocations: 7.268 MB / 0.773 GB, free: 73.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/1.191, allocations: 12.03 kB / 0.7731 GB, free: 73.84 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007263/1.199, allocations: 1.28 MB / 0.7743 GB, free: 72.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03486/1.234, allocations: 9.324 MB / 0.7834 GB, free: 63.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02394/1.258, allocations: 8.696 MB / 0.7919 GB, free: 54.42 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000606/1.258, allocations: 488.7 kB / 0.7924 GB, free: 53.94 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003798/1.262, allocations: 0.6325 MB / 0.793 GB, free: 53.31 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03977/1.302, allocations: 15.66 MB / 0.8083 GB, free: 36.44 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005677/1.302, allocations: 79.25 kB / 0.8084 GB, free: 36.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003792/1.306, allocations: 303.9 kB / 0.8086 GB, free: 36.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002558/1.309, allocations: 1.389 MB / 0.81 GB, free: 34.67 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02879/1.338, allocations: 12.9 MB / 0.8226 GB, free: 21.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3918/1.73, allocations: 64.4 MB / 0.8855 GB, free: 65.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01617/1.746, allocations: 6.266 MB / 0.8916 GB, free: 64.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/1.761, allocations: 11.14 MB / 0.9025 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/1.762, allocations: 62.38 kB / 0.9026 GB, free: 62 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=245): time 4.779e-06/1.762, allocations: 0 / 0.9026 GB, free: 62 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.1262/1.888, allocations: 37.22 MB / 0.9389 GB, free: 57.44 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/1.888, allocations: 243.2 kB / 0.9391 GB, free: 57.18 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009181/1.897, allocations: 4.973 MB / 0.944 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009985/1.898, allocations: 73.86 kB / 0.9441 GB, free: 56.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003745/1.902, allocations: 4.467 MB / 0.9484 GB, free: 54.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002066/1.904, allocations: 1.237 MB / 0.9496 GB, free: 53.29 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005737/1.905, allocations: 164.1 kB / 0.9498 GB, free: 53.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004658/1.905, allocations: 0.6513 MB / 0.9504 GB, free: 52.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005151/1.91, allocations: 3.603 MB / 0.9539 GB, free: 51.37 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007621/1.918, allocations: 8.147 MB / 0.9619 GB, free: 43.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007818/1.926, allocations: 5.305 MB / 0.9671 GB, free: 41.96 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.456e-05/1.926, allocations: 43.69 kB / 0.9671 GB, free: 41.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.03048/1.956, allocations: 14.74 MB / 0.9815 GB, free: 36.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.956, allocations: 72 kB / 0.9816 GB, free: 36.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002596/1.957, allocations: 166.9 kB / 0.9817 GB, free: 36.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/1.969, allocations: 3.569 MB / 0.9852 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006548/1.975, allocations: 1.803 MB / 0.987 GB, free: 32.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02615/2.002, allocations: 18.64 MB / 1.005 GB, free: 16.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009174/2.011, allocations: 491.5 kB / 1.006 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002199/2.013, allocations: 467.4 kB / 1.006 GB, free: 15.24 MB / 0.5105 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.007478/2.021, allocations: 3.126 MB / 1.009 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/2.022, allocations: 0.5313 MB / 1.01 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01824/2.04, allocations: 8.876 MB / 1.018 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.888e-05/2.04, allocations: 39.95 kB / 1.018 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.401e-05/2.04, allocations: 16 kB / 1.018 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-05/2.04, allocations: 16.17 kB / 1.018 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04199/2.082, allocations: 18.66 MB / 1.037 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.755e-05/2.082, allocations: 8 kB / 1.037 GB, free: 3.508 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00255/2.085, allocations: 487.3 kB / 1.037 GB, free: 3.031 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01202/2.097, allocations: 3.123 MB / 1.04 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007538/2.098, allocations: 64.59 kB / 1.04 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02699/2.125, allocations: 16.32 MB / 1.056 GB, free: 15.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/2.125, allocations: 8 kB / 1.056 GB, free: 15.38 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02872/2.153, allocations: 14.15 MB / 1.07 GB, free: 0.8672 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/2.156, allocations: 0.5527 MB / 1.071 GB, free: 296 kB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.158, allocations: 60 kB / 1.071 GB, free: 236 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003792/2.161, allocations: 207.7 kB / 1.071 GB, free: 28 kB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001/2.162, allocations: 218.7 kB / 1.071 GB, free: 15.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000306/2.163, allocations: 92.69 kB / 1.071 GB, free: 15.72 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.009657/2.172, allocations: 3.517 MB / 1.075 GB, free: 12.24 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.853e-06/2.172, allocations: 0 / 1.075 GB, free: 12.24 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01245/2.185, allocations: 1.684 MB / 1.076 GB, free: 10.57 MB / 0.573 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.02952/2.214, allocations: 16.07 MB / 1.092 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01638/2.231, allocations: 8.916 MB / 1.101 GB, free: 1.297 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/2.231, allocations: 4 kB / 1.101 GB, free: 1.293 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.2723/2.503, allocations: 3.481 MB / 1.104 GB, free: 178.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00376/2.507, allocations: 0.6851 MB / 1.105 GB, free: 178.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0653/2.572, allocations: 138.1 MB / 1.24 GB, free: 51.94 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01163/2.584, allocations: 4.95 MB / 1.244 GB, free: 51.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01041/2.594, allocations: 2.599 MB / 1.247 GB, free: 50.86 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006644/2.601, allocations: 3.055 MB / 1.25 GB, free: 50.85 MB / 0.5886 GB Notification: Performance of SimCode: time 1.292e-06/2.601, allocations: 0 / 1.25 GB, free: 50.85 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4844/3.085, allocations: 130.4 MB / 1.377 GB, free: 169.4 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/3.086, allocations: 205.4 kB / 1.377 GB, free: 169.2 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.487/9.573, allocations: 0 / 1.377 GB, free: 169.2 MB / 0.5886 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