Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.4 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.239/0.239, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002232/0.002232, allocations: 80.19 kB / 480.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3814, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01641/0.3979, allocations: 13.23 MB / 0.5435 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.4108, allocations: 4.858 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004235/0.4151, allocations: 85 kB / 0.5484 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009559/0.4247, allocations: 3.972 MB / 0.5522 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008373/0.4331, allocations: 2.167 MB / 0.5544 GB, free: 9.297 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003445/0.4366, allocations: 1.178 MB / 0.5555 GB, free: 8.117 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009742/0.4464, allocations: 5.816 MB / 0.5612 GB, free: 2.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007437/0.4538, allocations: 5.179 MB / 0.5662 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004059/0.4579, allocations: 2.162 MB / 0.5684 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005022/0.463, allocations: 2.964 MB / 0.5713 GB, free: 7.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.4647, allocations: 0.5 MB / 0.5717 GB, free: 7.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003839/0.4686, allocations: 1.646 MB / 0.5733 GB, free: 5.762 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003286/0.4719, allocations: 2.626 MB / 0.5759 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004702/0.4766, allocations: 3.073 MB / 0.5789 GB, free: 40 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01424/0.4909, allocations: 10.1 MB / 0.5888 GB, free: 5.898 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.4909, allocations: 4 kB / 0.5888 GB, free: 5.895 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.491, allocations: 0 / 0.5888 GB, free: 5.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003507/0.4913, allocations: 0 / 0.5888 GB, free: 5.895 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02031/0.5116, allocations: 6.81 MB / 0.5954 GB, free: 14.99 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/0.5117, allocations: 8.031 kB / 0.5954 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002731/0.5144, allocations: 0.9216 MB / 0.5963 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09323/0.6077, allocations: 7.452 MB / 0.6036 GB, free: 6.586 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/0.6177, allocations: 4.144 MB / 0.6077 GB, free: 2.383 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003966/0.6182, allocations: 357.9 kB / 0.608 GB, free: 2.023 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001835/0.62, allocations: 435.7 kB / 0.6084 GB, free: 1.598 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0281/0.6481, allocations: 13.78 MB / 0.6219 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001511/0.6483, allocations: 47.58 kB / 0.6219 GB, free: 2.918 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006077/0.6489, allocations: 203.8 kB / 0.6221 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004022/0.653, allocations: 2.41 MB / 0.6245 GB, free: 316 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02603/0.679, allocations: 11.62 MB / 0.6358 GB, free: 4.68 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07627/0.7553, allocations: 51.15 MB / 0.6858 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/0.7689, allocations: 4.685 MB / 0.6903 GB, free: 11.2 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004037/0.773, allocations: 2.776 MB / 0.6931 GB, free: 8.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.019/0.792, allocations: 12.43 MB / 0.7052 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.941e-05/0.7921, allocations: 59.81 kB / 0.7053 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=191): time 4.999e-06/0.7921, allocations: 0 / 0.7053 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=242): time 0.4507/1.243, allocations: 42.6 MB / 0.7468 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/1.243, allocations: 239.5 kB / 0.7471 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005418/1.248, allocations: 4.808 MB / 0.7518 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005421/1.249, allocations: 57.7 kB / 0.7518 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001562/1.251, allocations: 4.051 MB / 0.7558 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008031/1.251, allocations: 0.9544 MB / 0.7567 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001599/1.253, allocations: 1.469 MB / 0.7582 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.349e-05/1.253, allocations: 305.1 kB / 0.7584 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003637/1.257, allocations: 3.258 MB / 0.7616 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004808/1.261, allocations: 7.552 MB / 0.769 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/1.272, allocations: 11.6 MB / 0.7803 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.847e-05/1.272, allocations: 48 kB / 0.7804 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02518/1.297, allocations: 13.88 MB / 0.7939 GB, free: 98.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.242e-05/1.297, allocations: 68 kB / 0.794 GB, free: 98.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/1.297, allocations: 152 kB / 0.7941 GB, free: 98.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01073/1.308, allocations: 3.772 MB / 0.7978 GB, free: 94.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004798/1.313, allocations: 1.599 MB / 0.7994 GB, free: 93.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02288/1.336, allocations: 19.17 MB / 0.8181 GB, free: 73.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007845/1.344, allocations: 451.5 kB / 0.8185 GB, free: 73.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/1.345, allocations: 443.5 kB / 0.819 GB, free: 73.03 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (857): * Single equations (assignments): 853 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,58,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004137/1.349, allocations: 2.649 MB / 0.8215 GB, free: 70.37 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008633/1.35, allocations: 460.9 kB / 0.822 GB, free: 69.92 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.016/1.366, allocations: 8.138 MB / 0.8299 GB, free: 61.75 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.196e-05/1.366, allocations: 24 kB / 0.83 GB, free: 61.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.971e-05/1.366, allocations: 12 kB / 0.83 GB, free: 61.71 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.853e-05/1.366, allocations: 15.95 kB / 0.83 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02933/1.395, allocations: 17.3 MB / 0.8469 GB, free: 44.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.142e-05/1.395, allocations: 0 / 0.8469 GB, free: 44.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/1.397, allocations: 395.4 kB / 0.8473 GB, free: 43.98 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01058/1.408, allocations: 3.835 MB / 0.851 GB, free: 40.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005747/1.409, allocations: 40 kB / 0.851 GB, free: 40.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/1.429, allocations: 17.54 MB / 0.8682 GB, free: 22.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.429, allocations: 0 / 0.8682 GB, free: 22.43 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/1.449, allocations: 12.57 MB / 0.8804 GB, free: 9.828 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/1.451, allocations: 486 kB / 0.8809 GB, free: 9.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007686/1.451, allocations: 32 kB / 0.8809 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002243/1.454, allocations: 219 kB / 0.8811 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006008/1.454, allocations: 153.4 kB / 0.8813 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/1.454, allocations: 56 kB / 0.8813 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004091/1.458, allocations: 2.998 MB / 0.8843 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/1.458, allocations: 0 / 0.8843 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006518/1.465, allocations: 1.426 MB / 0.8857 GB, free: 4.469 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * 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 (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02467/1.49, allocations: 13.27 MB / 0.8986 GB, free: 7.164 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0143/1.504, allocations: 7.936 MB / 0.9064 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.504, allocations: 3.938 kB / 0.9064 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005017/1.509, allocations: 2.986 MB / 0.9093 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003757/1.513, allocations: 0.5359 MB / 0.9098 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4005/1.913, allocations: 66.01 MB / 0.9743 GB, free: 198.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004291/1.918, allocations: 4.087 MB / 0.9783 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00417/1.922, allocations: 2.172 MB / 0.9804 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0029/1.925, allocations: 2.486 MB / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.373e-06/1.925, allocations: 0 / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.141/2.066, allocations: 102.8 MB / 1.083 GB, free: 93.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.75/32.82, allocations: 11.81 kB / 1.083 GB, free: 93.63 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)