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.002467/0.002467, allocations: 181 kB / 13.66 MB, free: 1.664 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.117/2.117, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001086/0.001086, allocations: 86.64 kB / 267.5 MB, free: 14.04 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.2881/0.2881, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.258e-05/4.271e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1188, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5362/0.655, allocations: 107.2 MB / 0.5776 GB, free: 12.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.6554, allocations: 81.61 kB / 0.5777 GB, free: 12.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2453/0.9006, allocations: 57.07 MB / 0.6334 GB, free: 11.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.9007, allocations: 4 kB / 0.6334 GB, free: 11.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001521/0.9009, allocations: 48 kB / 0.6334 GB, free: 11.44 MB / 442.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.01067/0.9116, allocations: 2.585 MB / 0.636 GB, free: 8.797 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/0.9116, allocations: 12.03 kB / 0.636 GB, free: 8.785 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001937/0.9136, allocations: 485.2 kB / 0.6364 GB, free: 8.301 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/0.9178, allocations: 495.6 kB / 0.6369 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005967/0.9238, allocations: 1.551 MB / 0.6384 GB, free: 6.215 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.9241, allocations: 209.6 kB / 0.6386 GB, free: 6.008 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/0.9255, allocations: 279.9 kB / 0.6389 GB, free: 5.734 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02729/0.9528, allocations: 6.643 MB / 0.6454 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.953, allocations: 11.88 kB / 0.6454 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.9542, allocations: 124 kB / 0.6455 GB, free: 14.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001612/0.9558, allocations: 0.5317 MB / 0.646 GB, free: 14.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02344/0.9793, allocations: 5.455 MB / 0.6513 GB, free: 8.621 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04733/1.027, allocations: 21.4 MB / 0.6722 GB, free: 2.617 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01301/1.04, allocations: 1.791 MB / 0.674 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/1.042, allocations: 0.6515 MB / 0.6746 GB, free: 152 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/1.053, allocations: 4.898 MB / 0.6794 GB, free: 10.85 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.96e-05/1.053, allocations: 39.12 kB / 0.6795 GB, free: 10.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=70): time 4.579e-06/1.053, allocations: 4 kB / 0.6795 GB, free: 10.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=110): time 0.05508/1.108, allocations: 7.491 MB / 0.6868 GB, free: 3.289 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/1.108, allocations: 94.11 kB / 0.6869 GB, free: 3.176 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00455/1.113, allocations: 1.727 MB / 0.6885 GB, free: 1.453 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003185/1.113, allocations: 41.7 kB / 0.6886 GB, free: 1.406 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/1.115, allocations: 1.678 MB / 0.6902 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007429/1.116, allocations: 406.6 kB / 0.6906 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/1.116, allocations: 60 kB / 0.6907 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003408/1.117, allocations: 432.9 kB / 0.6911 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003012/1.12, allocations: 0.9976 MB / 0.6921 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005013/1.125, allocations: 2.618 MB / 0.6946 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00439/1.129, allocations: 1.574 MB / 0.6962 GB, free: 8.812 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-05/1.129, allocations: 16 kB / 0.6962 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.01318/1.142, allocations: 3.552 MB / 0.6996 GB, free: 5.238 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.737e-05/1.143, allocations: 28 kB / 0.6997 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.015e-05/1.143, allocations: 56 kB / 0.6997 GB, free: 5.156 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000142/1.143, allocations: 88 kB / 0.6998 GB, free: 5.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0055/1.148, allocations: 0.7256 MB / 0.7005 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001655/1.149, allocations: 115.6 kB / 0.7006 GB, free: 4.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.152, allocations: 151.8 kB / 0.7008 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000675/1.153, allocations: 172 kB / 0.7009 GB, free: 3.914 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (374): * Single equations (assignments): 374 * 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.000851/1.154, allocations: 354.4 kB / 0.7013 GB, free: 3.559 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005283/1.154, allocations: 181.6 kB / 0.7014 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00513/1.159, allocations: 1.704 MB / 0.7031 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/1.159, allocations: 8 kB / 0.7031 GB, free: 1.66 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/1.159, allocations: 8 kB / 0.7031 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/1.16, allocations: 3.984 kB / 0.7031 GB, free: 1.648 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3725/1.532, allocations: 5.885 MB / 0.7089 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.486e-05/1.532, allocations: 13.5 kB / 0.7089 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/1.534, allocations: 252.1 kB / 0.7091 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.004e-05/1.534, allocations: 19.8 kB / 0.7091 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/1.535, allocations: 31.61 kB / 0.7092 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.431e-05/1.535, allocations: 22.41 kB / 0.7092 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.14e-05/1.535, allocations: 22.12 kB / 0.7092 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003832/1.538, allocations: 2.625 MB / 0.7118 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007824/1.539, allocations: 270.2 kB / 0.712 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004495/1.54, allocations: 36.38 kB / 0.7121 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/1.541, allocations: 61.55 kB / 0.7121 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002831/1.542, allocations: 109.5 kB / 0.7122 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.542, allocations: 38.36 kB / 0.7123 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003697/1.545, allocations: 1.261 MB / 0.7135 GB, free: 137.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.92e-07/1.546, allocations: 0 / 0.7135 GB, free: 137.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004083/1.55, allocations: 0.5385 MB / 0.714 GB, free: 137.4 MB / 0.4948 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 110 * 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.005791/1.555, allocations: 6.496 MB / 0.7204 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006366/1.562, allocations: 2.229 MB / 0.7225 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.129e-05/1.562, allocations: 2.875 kB / 0.7225 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001684/1.564, allocations: 0.599 MB / 0.7231 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/1.566, allocations: 238.9 kB / 0.7234 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/1.585, allocations: 5.302 MB / 0.7285 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004715/1.59, allocations: 2.236 MB / 0.7307 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002733/1.593, allocations: 1.067 MB / 0.7318 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of SimCode: time 1.993e-06/1.593, allocations: 3.281 kB / 0.7318 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.367/4.96, allocations: 45.92 MB / 0.7766 GB, free: 116.4 MB / 0.4948 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