Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.001328/0.001328, allocations: 176.6 kB / 17.06 MB, free: 5.098 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.523/1.523, allocations: 223.2 MB / 241 MB, free: 11.9 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.0009075/0.0009075, allocations: 94.44 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.3926/0.3926, allocations: 44.21 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 12 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3646, allocations: 61.91 MB / 0.5096 GB, free: 38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.5127, allocations: 105.4 MB / 0.6126 GB, free: 5.668 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/0.513, allocations: 87.91 kB / 0.6127 GB, free: 5.586 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5434/1.056, allocations: 90.31 MB / 0.7009 GB, free: 96.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.098e-06/1.057, allocations: 0 / 0.7009 GB, free: 96.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002822/1.057, allocations: 77.39 kB / 0.7009 GB, free: 96.79 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.02035/1.077, allocations: 4.315 MB / 0.7052 GB, free: 94.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/1.077, allocations: 9.188 kB / 0.7052 GB, free: 94.98 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005299/1.083, allocations: 0.8336 MB / 0.706 GB, free: 94.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/1.1, allocations: 3.538 MB / 0.7094 GB, free: 94.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01621/1.116, allocations: 4.505 MB / 0.7138 GB, free: 94.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00068/1.117, allocations: 329.2 kB / 0.7141 GB, free: 94.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003581/1.121, allocations: 430.8 kB / 0.7146 GB, free: 94.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03631/1.157, allocations: 10.76 MB / 0.7251 GB, free: 91.26 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00036/1.157, allocations: 26.22 kB / 0.7251 GB, free: 91.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00286/1.16, allocations: 193.2 kB / 0.7253 GB, free: 91.14 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00206/1.162, allocations: 1.197 MB / 0.7264 GB, free: 90.92 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02317/1.185, allocations: 10.38 MB / 0.7366 GB, free: 87.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05708/1.243, allocations: 36.48 MB / 0.7722 GB, free: 65.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007763/1.25, allocations: 4.276 MB / 0.7764 GB, free: 63.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001253/1.252, allocations: 1.313 MB / 0.7777 GB, free: 61.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/1.252, allocations: 60.3 kB / 0.7777 GB, free: 61.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 6.452e-06/1.252, allocations: 0 / 0.7777 GB, free: 61.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.03775/1.29, allocations: 14.02 MB / 0.7914 GB, free: 49.88 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/1.29, allocations: 73.41 kB / 0.7915 GB, free: 49.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004701/1.294, allocations: 2.463 MB / 0.7939 GB, free: 47.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005487/1.295, allocations: 57.7 kB / 0.794 GB, free: 47.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001753/1.297, allocations: 2.863 MB / 0.7967 GB, free: 45.08 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001313/1.298, allocations: 0.9409 MB / 0.7977 GB, free: 44.25 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007346/1.299, allocations: 112 kB / 0.7978 GB, free: 44.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006488/1.299, allocations: 0.5547 MB / 0.7983 GB, free: 43.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003541/1.303, allocations: 2.272 MB / 0.8005 GB, free: 41.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005802/1.309, allocations: 5.349 MB / 0.8058 GB, free: 34.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005255/1.314, allocations: 3.497 MB / 0.8092 GB, free: 31.06 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/1.314, allocations: 28 kB / 0.8092 GB, free: 31.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01491/1.329, allocations: 8.35 MB / 0.8174 GB, free: 22.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.329, allocations: 52 kB / 0.8174 GB, free: 22.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.33, allocations: 111.9 kB / 0.8175 GB, free: 22.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003357/1.333, allocations: 1.055 MB / 0.8185 GB, free: 21.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004346/1.337, allocations: 1.287 MB / 0.8198 GB, free: 20.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/1.34, allocations: 2.49 MB / 0.8222 GB, free: 17.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004218/1.344, allocations: 311.7 kB / 0.8225 GB, free: 17.22 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/1.345, allocations: 328 kB / 0.8228 GB, free: 16.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 26 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[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 (700): * Single equations (assignments): 691 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006163/1.351, allocations: 2.216 MB / 0.825 GB, free: 14.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009863/1.352, allocations: 276.3 kB / 0.8253 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.362, allocations: 4.947 MB / 0.8301 GB, free: 9.395 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.589e-05/1.363, allocations: 47.98 kB / 0.8301 GB, free: 9.348 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/1.363, allocations: 3.953 kB / 0.8301 GB, free: 9.344 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.039e-05/1.363, allocations: 15.95 kB / 0.8302 GB, free: 9.328 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0263/1.389, allocations: 11.37 MB / 0.8413 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/1.389, allocations: 4 kB / 0.8413 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/1.391, allocations: 407.4 kB / 0.8417 GB, free: 13.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003158/1.394, allocations: 0.9078 MB / 0.8425 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003931/1.395, allocations: 59.34 kB / 0.8426 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/1.397, allocations: 2.298 MB / 0.8448 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/1.397, allocations: 11.94 kB / 0.8449 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/1.411, allocations: 8 MB / 0.8527 GB, free: 1.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.412, allocations: 321.4 kB / 0.853 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/1.413, allocations: 50.66 kB / 0.853 GB, free: 1.297 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001988/1.415, allocations: 135.8 kB / 0.8532 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005208/1.416, allocations: 157.6 kB / 0.8533 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003054/1.416, allocations: 71.98 kB / 0.8534 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003998/1.42, allocations: 1.674 MB / 0.855 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.51e-07/1.42, allocations: 0 / 0.855 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007445/1.428, allocations: 0.9848 MB / 0.856 GB, free: 14.28 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * 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 (206): * Single equations (assignments): 197 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01587/1.444, allocations: 10.59 MB / 0.8663 GB, free: 3.398 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01122/1.455, allocations: 6.009 MB / 0.8722 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.599e-05/1.455, allocations: 8.125 kB / 0.8722 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004815/1.46, allocations: 2.537 MB / 0.8747 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.462, allocations: 407.7 kB / 0.8751 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.375/1.838, allocations: 105.6 MB / 0.9782 GB, free: 48.58 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005374/1.843, allocations: 3.522 MB / 0.9816 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005286/1.848, allocations: 2.043 MB / 0.9836 GB, free: 47.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00342/1.852, allocations: 1.883 MB / 0.9854 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of SimCode: time 2.224e-06/1.852, allocations: 3.938 kB / 0.9854 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/1.972, allocations: 69.18 MB / 1.053 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/1.972, allocations: 210.4 kB / 1.053 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.129/6.102, allocations: 0 / 1.053 GB, free: 26.38 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat