Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.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.Joints.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR",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.001644/0.001651, allocations: 188.7 kB / 16.4 MB, free: 5.625 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.115/2.115, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001151/0.00115, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2895/0.2895, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004703, allocations: 15.98 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1243, allocations: 58.86 MB / 490.3 MB, free: 9.242 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointSSR): time 0.04832/0.1727, allocations: 29.76 MB / 0.5079 GB, free: 11.39 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.1941, allocations: 7.334 MB / 0.5151 GB, free: 4.039 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00582/0.1999, allocations: 139.7 kB / 0.5152 GB, free: 3.902 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005333/0.2053, allocations: 1.439 MB / 0.5166 GB, free: 2.457 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3508/0.5561, allocations: 4.036 MB / 0.5205 GB, free: 11.24 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003097/0.5593, allocations: 0.504 MB / 0.521 GB, free: 11.24 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.5621, allocations: 0.9758 MB / 0.522 GB, free: 11.23 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008846/0.571, allocations: 4.054 MB / 0.5259 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.5725, allocations: 0.5669 MB / 0.5265 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001566/0.574, allocations: 0.738 MB / 0.5272 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004291/0.5745, allocations: 100.8 kB / 0.5273 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002078/0.5766, allocations: 0.6653 MB / 0.528 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.5783, allocations: 0.9143 MB / 0.5289 GB, free: 10.8 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008573/0.5792, allocations: 0.5183 MB / 0.5294 GB, free: 10.77 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006652/0.5858, allocations: 3.848 MB / 0.5331 GB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.5859, allocations: 0 / 0.5331 GB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.5859, allocations: 0 / 0.5331 GB, free: 10.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001847/0.5861, allocations: 0 / 0.5331 GB, free: 10.55 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.009941/0.5961, allocations: 2.634 MB / 0.5357 GB, free: 9.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5961, allocations: 9.438 kB / 0.5357 GB, free: 9.113 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001636/0.5978, allocations: 464.8 kB / 0.5361 GB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.6, allocations: 369.5 kB / 0.5365 GB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004305/0.6044, allocations: 1.297 MB / 0.5378 GB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.6046, allocations: 179.7 kB / 0.5379 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008757/0.6055, allocations: 232 kB / 0.5382 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02403/0.6295, allocations: 7.042 MB / 0.545 GB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/0.6297, allocations: 17.91 kB / 0.545 GB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003636/0.6301, allocations: 100 kB / 0.5451 GB, free: 6.164 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002509/0.6326, allocations: 0.9952 MB / 0.5461 GB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/0.6556, allocations: 5.843 MB / 0.5518 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04071/0.6964, allocations: 20.32 MB / 0.5717 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01296/0.7094, allocations: 1.836 MB / 0.5735 GB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/0.7206, allocations: 4.932 MB / 0.5783 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.7207, allocations: 41.47 kB / 0.5783 GB, free: 14.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 5.731e-06/0.7207, allocations: 3.984 kB / 0.5783 GB, free: 14.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=110): time 0.08154/0.8022, allocations: 9.379 MB / 0.5875 GB, free: 4.977 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/0.8024, allocations: 90.11 kB / 0.5876 GB, free: 4.871 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.8067, allocations: 1.95 MB / 0.5895 GB, free: 2.926 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003253/0.8071, allocations: 45.7 kB / 0.5895 GB, free: 2.875 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.8089, allocations: 1.672 MB / 0.5911 GB, free: 1.215 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000698/0.8096, allocations: 412.1 kB / 0.5915 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.8099, allocations: 64.03 kB / 0.5916 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002924/0.8102, allocations: 428.9 kB / 0.592 GB, free: 332 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00296/0.8132, allocations: 1.03 MB / 0.593 GB, free: 15.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004548/0.8178, allocations: 2.636 MB / 0.5956 GB, free: 11.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004246/0.8221, allocations: 1.582 MB / 0.5971 GB, free: 10.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-05/0.8222, allocations: 16 kB / 0.5971 GB, free: 10.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01018/0.8324, allocations: 3.595 MB / 0.6007 GB, free: 7.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.272e-05/0.8325, allocations: 32 kB / 0.6007 GB, free: 7.043 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.906e-05/0.8326, allocations: 59.09 kB / 0.6007 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.8327, allocations: 84 kB / 0.6008 GB, free: 6.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004977/0.8377, allocations: 0.7033 MB / 0.6015 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001415/0.8379, allocations: 119.1 kB / 0.6016 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.8412, allocations: 164 kB / 0.6018 GB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006047/0.8418, allocations: 164 kB / 0.6019 GB, free: 5.848 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 259 * Number of states: 0 () * Number of discrete variables: 34 (jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (373): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003631/0.8455, allocations: 1.197 MB / 0.6031 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005348/0.846, allocations: 181.7 kB / 0.6033 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.8512, allocations: 1.73 MB / 0.605 GB, free: 2.773 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.282e-05/0.8512, allocations: 13.64 kB / 0.605 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.8512, allocations: 0 / 0.605 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.8513, allocations: 7.969 kB / 0.605 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/0.8685, allocations: 5.877 MB / 0.6107 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/0.8686, allocations: 12 kB / 0.6107 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.8703, allocations: 211.6 kB / 0.6109 GB, free: 12.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.142e-05/0.8703, allocations: 16 kB / 0.611 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.8704, allocations: 32 kB / 0.611 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.968e-05/0.8705, allocations: 28.42 kB / 0.611 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.19e-05/0.8705, allocations: 27.88 kB / 0.611 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004628/0.8752, allocations: 2.6 MB / 0.6136 GB, free: 9.191 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000801/0.876, allocations: 274.7 kB / 0.6138 GB, free: 8.902 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003785/0.8764, allocations: 35.92 kB / 0.6139 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.8777, allocations: 39.98 kB / 0.6139 GB, free: 8.828 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.878, allocations: 104.2 kB / 0.614 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.8781, allocations: 44 kB / 0.6141 GB, free: 8.684 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003167/0.8813, allocations: 1.277 MB / 0.6153 GB, free: 7.383 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8813, allocations: 0 / 0.6153 GB, free: 7.383 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004245/0.8856, allocations: 0.5351 MB / 0.6158 GB, free: 6.848 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 0 () * 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 (111): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006901/0.8925, allocations: 6.483 MB / 0.6222 GB, free: 15.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006514/0.8991, allocations: 2.244 MB / 0.6243 GB, free: 13.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.58e-05/0.8992, allocations: 4.25 kB / 0.6244 GB, free: 13.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001738/0.9009, allocations: 0.5876 MB / 0.6249 GB, free: 13.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.9031, allocations: 232.8 kB / 0.6251 GB, free: 12.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04097/0.9441, allocations: 48.83 MB / 0.6728 GB, free: 10.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004649/0.9488, allocations: 2.233 MB / 0.675 GB, free: 8.141 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002879/0.9518, allocations: 1.089 MB / 0.6761 GB, free: 7.051 MB / 490.7 MB Notification: Performance of SimCode: time 1.814e-06/0.9518, allocations: 0 / 0.6761 GB, free: 7.051 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.747/4.699, allocations: 45.08 MB / 0.7201 GB, free: 188.6 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointSSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat does not exist to compare? outputFormat=mat