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.00112/0.00112, allocations: 170.9 kB / 8.742 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.479/1.479, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.0009095/0.0009094, allocations: 100.4 kB / 281.6 MB, free: 5.32 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.3108/0.3108, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.791e-05/1.792e-05, allocations: 224 / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1356, allocations: 61.92 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4378/0.5734, allocations: 116.7 MB / 0.6087 GB, free: 11.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.5737, allocations: 79.95 kB / 0.6088 GB, free: 11.52 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6838/1.257, allocations: 142 MB / 0.7475 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.325e-06/1.258, allocations: 0 / 0.7475 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005268/1.258, allocations: 138 kB / 0.7476 GB, free: 107.6 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02318/1.281, allocations: 6.633 MB / 0.7541 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/1.281, allocations: 11.3 kB / 0.7541 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03595/1.317, allocations: 9.334 MB / 0.7632 GB, free: 104.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02221/1.34, allocations: 8.646 MB / 0.7717 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003659/1.34, allocations: 208.4 kB / 0.7719 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00338/1.343, allocations: 385.6 kB / 0.7722 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02033/1.364, allocations: 9.346 MB / 0.7814 GB, free: 97.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03199/1.396, allocations: 13.28 MB / 0.7943 GB, free: 82.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004667/1.396, allocations: 79.25 kB / 0.7944 GB, free: 82.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002823/1.399, allocations: 36 kB / 0.7944 GB, free: 82.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002069/1.401, allocations: 1.388 MB / 0.7958 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07665/1.478, allocations: 62.25 MB / 0.8566 GB, free: 17.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006168/1.484, allocations: 4.342 MB / 0.8608 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003823/1.488, allocations: 3.013 MB / 0.8638 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/1.49, allocations: 2.388 MB / 0.8661 GB, free: 7.297 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/1.49, allocations: 60.69 kB / 0.8662 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=251): time 5.55e-06/1.49, allocations: 0 / 0.8662 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of matching and sorting (n=343): time 0.4437/1.934, allocations: 27.41 MB / 0.8929 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/1.934, allocations: 242.1 kB / 0.8931 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009881/1.944, allocations: 4.357 MB / 0.8974 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.945, allocations: 27.39 kB / 0.8974 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004034/1.949, allocations: 4.509 MB / 0.9018 GB, free: 112 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001925/1.951, allocations: 1.214 MB / 0.903 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004726/1.951, allocations: 0 / 0.903 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006416/1.952, allocations: 0.6627 MB / 0.9037 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006365/1.958, allocations: 3.437 MB / 0.907 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01194/1.97, allocations: 8.092 MB / 0.9149 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009434/1.98, allocations: 5.209 MB / 0.92 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002847/1.98, allocations: 47.12 kB / 0.9201 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1105) (initialization): time 0.03228/2.013, allocations: 13.68 MB / 0.9334 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001393/2.013, allocations: 75.47 kB / 0.9335 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/2.013, allocations: 163.6 kB / 0.9336 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01141/2.024, allocations: 3.507 MB / 0.9371 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006406/2.031, allocations: 1.857 MB / 0.9389 GB, free: 99.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02272/2.054, allocations: 16.83 MB / 0.9553 GB, free: 92.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008465/2.062, allocations: 327.5 kB / 0.9556 GB, free: 92.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/2.064, allocations: 489.3 kB / 0.9561 GB, free: 92.18 MB / 0.5105 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.001796/2.066, allocations: 0.5189 MB / 0.9566 GB, free: 91.75 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01734/2.083, allocations: 8.54 MB / 0.9649 GB, free: 88.91 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001657/2.085, allocations: 0.5009 MB / 0.9654 GB, free: 88.63 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/2.103, allocations: 8.523 MB / 0.9738 GB, free: 85.72 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.761e-05/2.103, allocations: 38.58 kB / 0.9738 GB, free: 85.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.435e-05/2.103, allocations: 17.38 kB / 0.9738 GB, free: 85.72 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-05/2.103, allocations: 22.41 kB / 0.9738 GB, free: 85.72 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03489/2.138, allocations: 17.28 MB / 0.9907 GB, free: 75.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-05/2.138, allocations: 4 kB / 0.9907 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/2.141, allocations: 0.4905 MB / 0.9912 GB, free: 75.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009912/2.151, allocations: 3.048 MB / 0.9942 GB, free: 73.11 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006229/2.151, allocations: 18.19 kB / 0.9942 GB, free: 73.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/2.17, allocations: 14.49 MB / 1.008 GB, free: 60.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/2.17, allocations: 8 kB / 1.008 GB, free: 60.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02558/2.196, allocations: 13.81 MB / 1.022 GB, free: 48.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/2.198, allocations: 0.5218 MB / 1.022 GB, free: 47.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002491/2.201, allocations: 8 kB / 1.022 GB, free: 47.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004136/2.205, allocations: 151.7 kB / 1.022 GB, free: 47.82 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001182/2.206, allocations: 230.1 kB / 1.023 GB, free: 47.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002823/2.206, allocations: 92.61 kB / 1.023 GB, free: 47.51 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005102/2.211, allocations: 2.962 MB / 1.026 GB, free: 44.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/2.211, allocations: 0 / 1.026 GB, free: 44.57 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009344/2.221, allocations: 1.464 MB / 1.027 GB, free: 43.12 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 () * 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.02401/2.245, allocations: 15.73 MB / 1.042 GB, free: 27.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01522/2.26, allocations: 8.45 MB / 1.051 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/2.26, allocations: 0 / 1.051 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005298/2.266, allocations: 3.365 MB / 1.054 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005313/2.271, allocations: 0.5734 MB / 1.055 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04502/2.316, allocations: 14.71 MB / 1.069 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01417/2.33, allocations: 4.951 MB / 1.074 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01143/2.342, allocations: 2.673 MB / 1.076 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008457/2.35, allocations: 3.049 MB / 1.079 GB, free: 5.242 MB / 0.5261 GB Notification: Performance of SimCode: time 1.553e-06/2.35, allocations: 0 / 1.079 GB, free: 5.242 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5376/2.888, allocations: 125.1 MB / 1.202 GB, free: 60.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/2.888, allocations: 143 kB / 1.202 GB, free: 60.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.78/8.668, allocations: 3.938 kB / 1.202 GB, free: 60.57 MB / 0.5261 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