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.001357/0.001357, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2487/0.2487, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002465/0.002465, allocations: 85 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1527, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.0184/0.1712, allocations: 13.24 MB / 493.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.1833, allocations: 4.86 MB / 498.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003349/0.1867, allocations: 83.81 kB / 498.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009211/0.196, allocations: 3.968 MB / 0.4906 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007572/0.2036, allocations: 2.163 MB / 0.4927 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003863/0.2075, allocations: 1.182 MB / 0.4939 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.2195, allocations: 5.806 MB / 0.4995 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008648/0.2282, allocations: 5.175 MB / 0.5046 GB, free: 480 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2903/0.5185, allocations: 2.164 MB / 0.5067 GB, free: 17.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006348/0.5249, allocations: 2.956 MB / 0.5096 GB, free: 17.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002962/0.5279, allocations: 0.4994 MB / 0.5101 GB, free: 17.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005813/0.5337, allocations: 1.64 MB / 0.5117 GB, free: 17.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005691/0.5395, allocations: 2.633 MB / 0.5142 GB, free: 16.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0104/0.5499, allocations: 3.07 MB / 0.5172 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0163/0.5662, allocations: 9.799 MB / 0.5268 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.5663, allocations: 0 / 0.5268 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5663, allocations: 3.562 kB / 0.5268 GB, free: 12.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004321/0.5668, allocations: 0 / 0.5268 GB, free: 12.58 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02023/0.587, allocations: 6.643 MB / 0.5333 GB, free: 8.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.5871, allocations: 12.44 kB / 0.5333 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002521/0.5896, allocations: 0.9196 MB / 0.5342 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09004/0.6796, allocations: 7.405 MB / 0.5414 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009775/0.6895, allocations: 4.072 MB / 0.5454 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.6898, allocations: 356.5 kB / 0.5458 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002612/0.6925, allocations: 421.9 kB / 0.5462 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03302/0.7255, allocations: 13.78 MB / 0.5596 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001826/0.7257, allocations: 50.81 kB / 0.5597 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.7268, allocations: 203 kB / 0.5599 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/0.731, allocations: 2.409 MB / 0.5622 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02726/0.7583, allocations: 11.62 MB / 0.5736 GB, free: 4.539 MB / 414.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.08297/0.8413, allocations: 51.31 MB / 0.6237 GB, free: 444 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01465/0.8561, allocations: 4.686 MB / 0.6282 GB, free: 11.61 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004632/0.8607, allocations: 2.771 MB / 0.6309 GB, free: 8.828 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02407/0.8848, allocations: 12.43 MB / 0.6431 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.498e-05/0.8849, allocations: 59.14 kB / 0.6431 GB, free: 11.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=191): time 6.452e-06/0.885, allocations: 4 kB / 0.6431 GB, free: 11.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=242): time 0.1728/1.058, allocations: 42.24 MB / 0.6844 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001988/1.058, allocations: 235.6 kB / 0.6846 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01055/1.069, allocations: 4.789 MB / 0.6893 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006544/1.069, allocations: 64.33 kB / 0.6894 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003802/1.073, allocations: 3.902 MB / 0.6932 GB, free: 8.488 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001659/1.075, allocations: 0.9167 MB / 0.6941 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003421/1.078, allocations: 1.454 MB / 0.6955 GB, free: 6.117 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.078, allocations: 305.1 kB / 0.6958 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/1.084, allocations: 3.262 MB / 0.699 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2843/1.368, allocations: 7.548 MB / 0.7063 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/1.385, allocations: 11.6 MB / 0.7177 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002867/1.385, allocations: 43.09 kB / 0.7177 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.03391/1.419, allocations: 13.86 MB / 0.7312 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003242/1.419, allocations: 70.31 kB / 0.7313 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003788/1.42, allocations: 147.2 kB / 0.7314 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01215/1.432, allocations: 3.784 MB / 0.7351 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005588/1.437, allocations: 1.598 MB / 0.7367 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02527/1.463, allocations: 19.16 MB / 0.7554 GB, free: 146.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007443/1.47, allocations: 455.6 kB / 0.7558 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/1.472, allocations: 432.4 kB / 0.7563 GB, free: 145.4 MB / 0.5294 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.008217/1.48, allocations: 2.661 MB / 0.7589 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001541/1.482, allocations: 432.8 kB / 0.7593 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01791/1.5, allocations: 8.138 MB / 0.7672 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.534e-05/1.5, allocations: 27.98 kB / 0.7672 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/1.5, allocations: 14.84 kB / 0.7673 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.417e-05/1.5, allocations: 11.97 kB / 0.7673 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03482/1.535, allocations: 17.36 MB / 0.7842 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.783e-05/1.535, allocations: 1.875 kB / 0.7842 GB, free: 117.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00206/1.537, allocations: 395.4 kB / 0.7846 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01109/1.548, allocations: 3.836 MB / 0.7883 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006727/1.549, allocations: 44.53 kB / 0.7884 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02131/1.57, allocations: 17.54 MB / 0.8055 GB, free: 95.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/1.57, allocations: 1.891 kB / 0.8055 GB, free: 95.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02118/1.591, allocations: 12.54 MB / 0.8178 GB, free: 82.81 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/1.593, allocations: 463.4 kB / 0.8182 GB, free: 82.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001395/1.595, allocations: 37.25 kB / 0.8182 GB, free: 82.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003373/1.598, allocations: 207.7 kB / 0.8184 GB, free: 82.09 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009043/1.599, allocations: 150 kB / 0.8186 GB, free: 81.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003735/1.599, allocations: 69.25 kB / 0.8186 GB, free: 81.89 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005891/1.605, allocations: 2.998 MB / 0.8216 GB, free: 78.89 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.1e-07/1.605, allocations: 0 / 0.8216 GB, free: 78.89 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00878/1.614, allocations: 1.419 MB / 0.823 GB, free: 77.48 MB / 0.5294 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.02491/1.639, allocations: 13.24 MB / 0.8359 GB, free: 64.21 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01636/1.655, allocations: 9.509 MB / 0.8452 GB, free: 54.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.655, allocations: 4 kB / 0.8452 GB, free: 54.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004554/1.66, allocations: 2.984 MB / 0.8481 GB, free: 51.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005598/1.666, allocations: 0.5465 MB / 0.8486 GB, free: 51.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4073/2.073, allocations: 74.68 MB / 0.9216 GB, free: 170.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005872/2.079, allocations: 4.091 MB / 0.9256 GB, free: 169.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005128/2.084, allocations: 2.177 MB / 0.9277 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003273/2.087, allocations: 2.485 MB / 0.9301 GB, free: 167.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.192e-06/2.087, allocations: 0 / 0.9301 GB, free: 167.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1579/2.245, allocations: 107 MB / 1.035 GB, free: 69.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/14.87, allocations: 3.5 kB / 1.035 GB, free: 69.11 MB / 0.545 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)