Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001393, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2344/0.2344, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002261/0.002261, allocations: 72.19 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1217, allocations: 62.45 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01329/0.1351, allocations: 11.75 MB / 492 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008312/0.1434, allocations: 4.065 MB / 496 MB, free: 5.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.1452, allocations: 59.88 kB / 496.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.1482, allocations: 1.187 MB / 497.3 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004415/0.1527, allocations: 1.716 MB / 499 MB, free: 2.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.1543, allocations: 0.5574 MB / 499.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005844/0.1601, allocations: 4.026 MB / 0.4918 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003078/0.1632, allocations: 1.776 MB / 0.4935 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002412/0.1657, allocations: 1.156 MB / 0.4946 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.1683, allocations: 1.67 MB / 0.4963 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007871/0.1691, allocations: 216 kB / 0.4965 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002835/0.172, allocations: 1.295 MB / 0.4977 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002067/0.1741, allocations: 1.562 MB / 0.4993 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003157/0.1772, allocations: 1.836 MB / 0.501 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2212/0.3985, allocations: 5.905 MB / 0.5068 GB, free: 18.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.258e-06/0.3985, allocations: 0 / 0.5068 GB, free: 18.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3986, allocations: 0 / 0.5068 GB, free: 18.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002463/0.3988, allocations: 1.031 kB / 0.5068 GB, free: 18.79 MB / 382.1 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.009789/0.4086, allocations: 4.096 MB / 0.5108 GB, free: 17.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.4087, allocations: 10.22 kB / 0.5108 GB, free: 17.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001255/0.4099, allocations: 0.6858 MB / 0.5115 GB, free: 17.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02103/0.431, allocations: 6.153 MB / 0.5175 GB, free: 16.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006982/0.438, allocations: 2.6 MB / 0.52 GB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.4382, allocations: 179.6 kB / 0.5202 GB, free: 16.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001808/0.4401, allocations: 312.5 kB / 0.5205 GB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.4571, allocations: 10.72 MB / 0.531 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.819e-05/0.4572, allocations: 25.53 kB / 0.531 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003725/0.4576, allocations: 115.7 kB / 0.5311 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003452/0.4611, allocations: 2.458 MB / 0.5335 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.4809, allocations: 10.18 MB / 0.5435 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06148/0.5424, allocations: 35.68 MB / 0.5783 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01324/0.5557, allocations: 5.591 MB / 0.5838 GB, free: 9.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004336/0.5601, allocations: 2.337 MB / 0.586 GB, free: 7.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002522/0.5626, allocations: 1.878 MB / 0.5879 GB, free: 4.816 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001096/0.5628, allocations: 56.5 kB / 0.5879 GB, free: 4.754 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 9.087e-06/0.5628, allocations: 0 / 0.5879 GB, free: 4.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04104/0.6039, allocations: 14.96 MB / 0.6025 GB, free: 5.723 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00153/0.6054, allocations: 1.602 MB / 0.6041 GB, free: 3.969 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005365/0.6108, allocations: 2.814 MB / 0.6068 GB, free: 1.145 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005906/0.6114, allocations: 49.7 kB / 0.6069 GB, free: 1.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002729/0.6142, allocations: 2.68 MB / 0.6095 GB, free: 14.42 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/0.6157, allocations: 0.8506 MB / 0.6103 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003614/0.6194, allocations: 1.098 MB / 0.6114 GB, free: 12.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.6196, allocations: 301.1 kB / 0.6117 GB, free: 12.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005051/0.6246, allocations: 2.63 MB / 0.6143 GB, free: 9.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008911/0.6336, allocations: 5.627 MB / 0.6198 GB, free: 2.488 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.6466, allocations: 8.944 MB / 0.6285 GB, free: 8.512 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/0.6467, allocations: 36.81 kB / 0.6285 GB, free: 8.477 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.07069/0.7175, allocations: 17.12 MB / 0.6453 GB, free: 7.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.7176, allocations: 52 kB / 0.6453 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04881/0.7664, allocations: 10.64 MB / 0.6557 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07612/0.8426, allocations: 8.643 MB / 0.6641 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008395/0.8511, allocations: 1.303 MB / 0.6654 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04702/0.8981, allocations: 17.81 MB / 0.6828 GB, free: 0.9141 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007961/0.9061, allocations: 419.6 kB / 0.6832 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002166/0.9083, allocations: 318.6 kB / 0.6835 GB, free: 200 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.008405/0.9168, allocations: 2.021 MB / 0.6855 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001572/0.9184, allocations: 276.4 kB / 0.6857 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02062/0.9391, allocations: 5.112 MB / 0.6907 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01633/0.9554, allocations: 4.408 MB / 0.695 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.137e-05/0.9555, allocations: 3.938 kB / 0.695 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.57e-05/0.9556, allocations: 9.609 kB / 0.695 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0458/1.001, allocations: 12.95 MB / 0.7077 GB, free: 7.215 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.57e-05/1.002, allocations: 8 kB / 0.7077 GB, free: 7.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004246/1.006, allocations: 459.2 kB / 0.7081 GB, free: 6.758 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006149/1.012, allocations: 0.9419 MB / 0.7091 GB, free: 5.809 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009032/1.013, allocations: 54 kB / 0.7091 GB, free: 5.758 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2578/1.271, allocations: 5.838 MB / 0.7148 GB, free: 197.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001156/1.272, allocations: 1.542 MB / 0.7163 GB, free: 196.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/1.286, allocations: 7.738 MB / 0.7239 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008635/1.287, allocations: 326 kB / 0.7242 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005678/1.287, allocations: 45.2 kB / 0.7242 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/1.289, allocations: 199 kB / 0.7244 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/1.289, allocations: 142.7 kB / 0.7246 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/1.289, allocations: 65.31 kB / 0.7246 GB, free: 194.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002817/1.292, allocations: 1.727 MB / 0.7263 GB, free: 193.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/1.292, allocations: 0 / 0.7263 GB, free: 193.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004837/1.297, allocations: 1.081 MB / 0.7274 GB, free: 193.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (170): * Single equations (assignments): 161 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01074/1.308, allocations: 8.394 MB / 0.7356 GB, free: 190.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01371/1.322, allocations: 9.573 MB / 0.7449 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.322, allocations: 7.875 kB / 0.7449 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003346/1.325, allocations: 2.529 MB / 0.7474 GB, free: 184.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/1.328, allocations: 383.5 kB / 0.7477 GB, free: 184.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1309/1.459, allocations: 59.67 MB / 0.806 GB, free: 120.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004517/1.463, allocations: 3.165 MB / 0.8091 GB, free: 117.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004793/1.468, allocations: 2.06 MB / 0.8111 GB, free: 115.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/1.471, allocations: 1.655 MB / 0.8127 GB, free: 113.7 MB / 0.545 GB Notification: Performance of SimCode: time 9.02e-07/1.471, allocations: 0 / 0.8127 GB, free: 113.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1175/1.588, allocations: 73.71 MB / 0.8847 GB, free: 40.13 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/15.06, allocations: 15.05 kB / 0.8847 GB, free: 40.12 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1)