Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical",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.001087/0.001087, allocations: 174.4 kB / 8.739 MB, free: 348 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.626/1.626, allocations: 221.5 MB / 230.7 MB, free: 7.523 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.0009097/0.0009096, allocations: 85.86 kB / 281.6 MB, free: 5.266 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.2157/0.2157, allocations: 44.16 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.746e-05/1.747e-05, allocations: 8.156 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 61.91 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4744/0.588, allocations: 102.6 MB / 0.5949 GB, free: 9.746 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.5884, allocations: 79.94 kB / 0.595 GB, free: 9.668 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2117/0.8001, allocations: 83.29 MB / 0.6763 GB, free: 5.695 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8002, allocations: 0 / 0.6763 GB, free: 5.695 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001434/0.8003, allocations: 64 kB / 0.6764 GB, free: 5.633 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01543/0.8158, allocations: 3.852 MB / 0.6802 GB, free: 1.719 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.8158, allocations: 15.98 kB / 0.6802 GB, free: 1.703 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02488/0.8407, allocations: 5.879 MB / 0.6859 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01542/0.8562, allocations: 5.166 MB / 0.691 GB, free: 6.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.8565, allocations: 120 kB / 0.6911 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002472/0.859, allocations: 219.9 kB / 0.6913 GB, free: 6.258 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01387/0.8729, allocations: 6.891 MB / 0.698 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.8954, allocations: 9.203 MB / 0.707 GB, free: 5.645 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.8956, allocations: 31.66 kB / 0.707 GB, free: 5.613 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006391/0.8962, allocations: 16 kB / 0.707 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001763/0.898, allocations: 1.16 MB / 0.7082 GB, free: 4.438 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3983/1.296, allocations: 35.09 MB / 0.7424 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/1.301, allocations: 4.092 MB / 0.7464 GB, free: 121 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00241/1.304, allocations: 2.265 MB / 0.7487 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001383/1.305, allocations: 1.88 MB / 0.7505 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/1.305, allocations: 48.81 kB / 0.7505 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=226): time 4.739e-06/1.305, allocations: 3.219 kB / 0.7505 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=233): time 0.02288/1.328, allocations: 11.74 MB / 0.762 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/1.328, allocations: 74.88 kB / 0.7621 GB, free: 116.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003349/1.331, allocations: 2.398 MB / 0.7644 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005348/1.332, allocations: 25.7 kB / 0.7644 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001563/1.334, allocations: 2.764 MB / 0.7671 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009588/1.334, allocations: 0.843 MB / 0.768 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/1.335, allocations: 0 / 0.768 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002717/1.335, allocations: 0.5597 MB / 0.7685 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/1.338, allocations: 2.532 MB / 0.771 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004258/1.342, allocations: 5.736 MB / 0.7766 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005073/1.347, allocations: 3.813 MB / 0.7803 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-05/1.347, allocations: 33.22 kB / 0.7803 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.06075/1.408, allocations: 18.48 MB / 0.7984 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.024e-05/1.408, allocations: 60.17 kB / 0.7984 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04167/1.45, allocations: 11.89 MB / 0.8101 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04505/1.495, allocations: 10.3 MB / 0.8201 GB, free: 84.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005092/1.5, allocations: 1.33 MB / 0.8214 GB, free: 83.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02282/1.523, allocations: 15.1 MB / 0.8362 GB, free: 68.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005071/1.528, allocations: 343.5 kB / 0.8365 GB, free: 67.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/1.53, allocations: 344.7 kB / 0.8368 GB, free: 67.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (696): * Single equations (assignments): 685 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001045/1.531, allocations: 397 kB / 0.8372 GB, free: 67.09 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00705/1.538, allocations: 4.461 MB / 0.8416 GB, free: 62.61 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007214/1.538, allocations: 280.3 kB / 0.8418 GB, free: 62.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008122/1.547, allocations: 4.956 MB / 0.8467 GB, free: 57.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006505/1.553, allocations: 4.266 MB / 0.8508 GB, free: 53.06 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/1.553, allocations: 4 kB / 0.8508 GB, free: 53.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.442e-05/1.553, allocations: 7.969 kB / 0.8508 GB, free: 53.05 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0193/1.573, allocations: 11.95 MB / 0.8625 GB, free: 40.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/1.573, allocations: 12.19 kB / 0.8625 GB, free: 40.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/1.574, allocations: 411.3 kB / 0.8629 GB, free: 40.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002691/1.577, allocations: 0.923 MB / 0.8638 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002467/1.577, allocations: 27.97 kB / 0.8638 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005139/1.582, allocations: 5.282 MB / 0.869 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007031/1.583, allocations: 1.399 MB / 0.8704 GB, free: 32.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/1.593, allocations: 8.253 MB / 0.8784 GB, free: 24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008574/1.594, allocations: 329.6 kB / 0.8787 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006032/1.595, allocations: 15.98 kB / 0.8787 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/1.597, allocations: 171.7 kB / 0.8789 GB, free: 23.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003233/1.597, allocations: 144.9 kB / 0.879 GB, free: 23.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/1.597, allocations: 76.53 kB / 0.8791 GB, free: 23.26 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002183/1.599, allocations: 1.573 MB / 0.8807 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/1.599, allocations: 0 / 0.8807 GB, free: 21.68 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004998/1.604, allocations: 1.011 MB / 0.8816 GB, free: 20.67 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01029/1.615, allocations: 10.93 MB / 0.8923 GB, free: 9.469 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01027/1.625, allocations: 6.344 MB / 0.8985 GB, free: 3.113 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.019e-05/1.625, allocations: 4.062 kB / 0.8985 GB, free: 3.109 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00413/1.629, allocations: 2.447 MB / 0.9009 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/1.632, allocations: 233.7 kB / 0.9011 GB, free: 404 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02833/1.66, allocations: 9.7 MB / 0.9106 GB, free: 6.559 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004598/1.665, allocations: 3.248 MB / 0.9138 GB, free: 3.297 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005303/1.67, allocations: 2.168 MB / 0.9159 GB, free: 1.125 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.299/1.969, allocations: 1.677 MB / 0.9175 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.984e-06/1.969, allocations: 0 / 0.9175 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/2.099, allocations: 77.14 MB / 0.9929 GB, free: 119 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/2.1, allocations: 129.2 kB / 0.993 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.881/5.981, allocations: 0 / 0.993 GB, free: 118.8 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat