Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001175, allocations: 188.9 kB / 16.09 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007051/0.000705, allocations: 98.66 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3237/0.3237, allocations: 44.81 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3052, allocations: 62.95 MB / 0.516 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.03052/0.3357, allocations: 43.69 MB / 0.5586 GB, free: 6.164 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02195/0.3577, allocations: 10.13 MB / 0.5685 GB, free: 15.25 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009052/0.3668, allocations: 212 kB / 0.5687 GB, free: 15.21 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007879/0.3747, allocations: 2.238 MB / 0.5709 GB, free: 14.41 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02209/0.3968, allocations: 6.813 MB / 0.5776 GB, free: 10.21 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005716/0.4026, allocations: 1.049 MB / 0.5786 GB, free: 9.164 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04327/0.4459, allocations: 34.23 MB / 0.612 GB, free: 6.895 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01012/0.4561, allocations: 6.796 MB / 0.6186 GB, free: 0 / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/0.4598, allocations: 1.693 MB / 0.6203 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004284/0.4641, allocations: 2.676 MB / 0.6229 GB, free: 11.62 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.4652, allocations: 200 kB / 0.6231 GB, free: 11.42 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00321/0.4684, allocations: 1.42 MB / 0.6245 GB, free: 10 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002781/0.4712, allocations: 2.275 MB / 0.6267 GB, free: 7.719 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003352/0.4746, allocations: 2.538 MB / 0.6292 GB, free: 5.16 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008443/0.4831, allocations: 7.879 MB / 0.6369 GB, free: 13.26 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.4831, allocations: 0 / 0.6369 GB, free: 13.26 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4831, allocations: 0 / 0.6369 GB, free: 13.26 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003598/0.4835, allocations: 0 / 0.6369 GB, free: 13.26 MB / 458.7 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.01368/0.4972, allocations: 5.521 MB / 0.6423 GB, free: 7.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.4972, allocations: 12.03 kB / 0.6423 GB, free: 7.648 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002519/0.4998, allocations: 0.9138 MB / 0.6432 GB, free: 6.723 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08196/0.5817, allocations: 7.605 MB / 0.6506 GB, free: 15.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008181/0.59, allocations: 4.068 MB / 0.6546 GB, free: 10.97 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.5903, allocations: 361.8 kB / 0.6549 GB, free: 10.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.5915, allocations: 427.7 kB / 0.6553 GB, free: 10.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02329/0.6148, allocations: 13.77 MB / 0.6688 GB, free: 11.56 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/0.615, allocations: 51.53 kB / 0.6688 GB, free: 11.51 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006077/0.6156, allocations: 207.8 kB / 0.669 GB, free: 11.31 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003436/0.619, allocations: 2.406 MB / 0.6714 GB, free: 8.902 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2067/0.8258, allocations: 11.59 MB / 0.6827 GB, free: 127.5 MB / 490.7 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.05007/0.8759, allocations: 51.35 MB / 0.7328 GB, free: 92.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.8871, allocations: 4.662 MB / 0.7374 GB, free: 90.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003479/0.8907, allocations: 2.771 MB / 0.7401 GB, free: 89.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01459/0.9053, allocations: 12.35 MB / 0.7521 GB, free: 80.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.9054, allocations: 55.25 kB / 0.7522 GB, free: 80.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 5.34e-06/0.9054, allocations: 0 / 0.7522 GB, free: 80.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.1337/1.039, allocations: 42.33 MB / 0.7935 GB, free: 38.33 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/1.039, allocations: 238.8 kB / 0.7938 GB, free: 38.05 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005824/1.045, allocations: 4.77 MB / 0.7984 GB, free: 33.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005535/1.046, allocations: 61.7 kB / 0.7985 GB, free: 33.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/1.048, allocations: 3.907 MB / 0.8023 GB, free: 29.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009635/1.049, allocations: 0.9107 MB / 0.8032 GB, free: 28.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003659/1.049, allocations: 144 kB / 0.8033 GB, free: 28.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002657/1.049, allocations: 0.6078 MB / 0.8039 GB, free: 27.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/1.053, allocations: 3.223 MB / 0.8071 GB, free: 24.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005636/1.059, allocations: 7.525 MB / 0.8144 GB, free: 14.78 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.07, allocations: 11.55 MB / 0.8257 GB, free: 1.113 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/1.07, allocations: 40 kB / 0.8257 GB, free: 1.074 MB / 490.7 MB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02905/1.099, allocations: 13.79 MB / 0.8392 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003323/1.099, allocations: 68 kB / 0.8393 GB, free: 3.199 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004116/1.1, allocations: 152 kB / 0.8394 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/1.112, allocations: 3.787 MB / 0.8431 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00529/1.117, allocations: 1.599 MB / 0.8447 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02831/1.146, allocations: 18.01 MB / 0.8623 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005806/1.151, allocations: 451.2 kB / 0.8627 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.153, allocations: 435.9 kB / 0.8631 GB, free: 10.64 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005703/1.158, allocations: 2.649 MB / 0.8657 GB, free: 7.973 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/1.16, allocations: 430.5 kB / 0.8661 GB, free: 7.547 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01916/1.179, allocations: 8.137 MB / 0.8741 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.454e-05/1.179, allocations: 24 kB / 0.8741 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.135e-05/1.179, allocations: 12 kB / 0.8741 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.414e-05/1.179, allocations: 15.95 kB / 0.8741 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2683/1.447, allocations: 17.34 MB / 0.891 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.941e-05/1.447, allocations: 1.469 kB / 0.891 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001983/1.449, allocations: 391.2 kB / 0.8914 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01101/1.46, allocations: 3.831 MB / 0.8951 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/1.461, allocations: 40.3 kB / 0.8952 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02267/1.484, allocations: 16.44 MB / 0.9112 GB, free: 172.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.914e-06/1.484, allocations: 3.703 kB / 0.9112 GB, free: 172.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02324/1.507, allocations: 12.52 MB / 0.9235 GB, free: 168.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/1.508, allocations: 473.5 kB / 0.9239 GB, free: 168 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008271/1.509, allocations: 34.16 kB / 0.924 GB, free: 168 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/1.511, allocations: 204.1 kB / 0.9241 GB, free: 168 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007815/1.512, allocations: 148.6 kB / 0.9243 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002089/1.512, allocations: 63.59 kB / 0.9244 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003884/1.516, allocations: 2.975 MB / 0.9273 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.81e-07/1.516, allocations: 0 / 0.9273 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005647/1.522, allocations: 1.446 MB / 0.9287 GB, free: 166.8 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02114/1.543, allocations: 13.21 MB / 0.9416 GB, free: 159.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01037/1.553, allocations: 7.848 MB / 0.9492 GB, free: 152 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.553, allocations: 4 kB / 0.9492 GB, free: 152 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003663/1.557, allocations: 2.967 MB / 0.9521 GB, free: 149 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/1.561, allocations: 0.5204 MB / 0.9526 GB, free: 148.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07329/1.634, allocations: 50.72 MB / 1.002 GB, free: 93.71 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003892/1.638, allocations: 4.095 MB / 1.006 GB, free: 89.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002586/1.64, allocations: 2.534 MB / 1.009 GB, free: 87.06 MB / 0.5417 GB Notification: Performance of SimCode: time 1.142e-06/1.64, allocations: 0 / 1.009 GB, free: 87.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.93/10.57, allocations: 121.1 MB / 1.127 GB, free: 162.2 MB / 0.5417 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)