Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.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.JointUPS2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002115/0.002115, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 247 MB, free: 10.39 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.2245/0.2245, allocations: 46.11 MB / 344.3 MB, free: 11.44 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.003052/0.003052, allocations: 83.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.3599, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01447/0.3745, allocations: 11.96 MB / 0.5423 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.3849, allocations: 4.373 MB / 0.5466 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002686/0.3877, allocations: 79.12 kB / 0.5466 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005875/0.3936, allocations: 2.748 MB / 0.5493 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006174/0.3998, allocations: 2 MB / 0.5513 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002769/0.4026, allocations: 1.006 MB / 0.5522 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008269/0.4109, allocations: 5.369 MB / 0.5575 GB, free: 6.129 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004861/0.4158, allocations: 3.439 MB / 0.5608 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.419, allocations: 1.744 MB / 0.5626 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004096/0.4232, allocations: 2.434 MB / 0.5649 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.4244, allocations: 371.9 kB / 0.5653 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003899/0.4283, allocations: 1.4 MB / 0.5667 GB, free: 12.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002869/0.4312, allocations: 2.166 MB / 0.5688 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004227/0.4355, allocations: 2.555 MB / 0.5713 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.4487, allocations: 8.214 MB / 0.5793 GB, free: 15.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.819e-06/0.4487, allocations: 0 / 0.5793 GB, free: 15.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.979e-06/0.4488, allocations: 7.938 kB / 0.5793 GB, free: 15.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002962/0.4491, allocations: 3.938 kB / 0.5793 GB, free: 15.69 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.01686/0.4659, allocations: 6.018 MB / 0.5852 GB, free: 9.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.466, allocations: 8.031 kB / 0.5852 GB, free: 9.582 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001902/0.4679, allocations: 0.7985 MB / 0.586 GB, free: 8.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09426/0.5622, allocations: 7.242 MB / 0.593 GB, free: 1.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008474/0.5707, allocations: 3.613 MB / 0.5966 GB, free: 13.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002554/0.571, allocations: 258.8 kB / 0.5968 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/0.5724, allocations: 355.6 kB / 0.5971 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02458/0.5969, allocations: 12.29 MB / 0.6091 GB, free: 148 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001866/0.5972, allocations: 55.52 kB / 0.6092 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009328/0.5981, allocations: 163.9 kB / 0.6094 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004391/0.6025, allocations: 2.381 MB / 0.6117 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02331/0.6259, allocations: 10.7 MB / 0.6221 GB, free: 2.832 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07137/0.6973, allocations: 48.65 MB / 0.6696 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02072/0.718, allocations: 5.873 MB / 0.6754 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007144/0.7252, allocations: 3.117 MB / 0.6784 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02809/0.7534, allocations: 13 MB / 0.6911 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.464e-05/0.7535, allocations: 59.81 kB / 0.6912 GB, free: 10.22 MB / 0.545 GB Notification: Performance of pre-optimization done (n=193): time 6.702e-06/0.7535, allocations: 0 / 0.6912 GB, free: 10.22 MB / 0.545 GB Notification: Performance of matching and sorting (n=254): time 0.3853/1.139, allocations: 38.95 MB / 0.7292 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.783e-05/1.139, allocations: 212.5 kB / 0.7294 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005715/1.145, allocations: 4.396 MB / 0.7337 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005721/1.145, allocations: 61.61 kB / 0.7338 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001924/1.147, allocations: 3.565 MB / 0.7372 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00113/1.148, allocations: 0.9895 MB / 0.7382 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001969/1.15, allocations: 1.381 MB / 0.7396 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.217e-05/1.15, allocations: 308.6 kB / 0.7398 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/1.154, allocations: 3.117 MB / 0.7429 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005986/1.16, allocations: 7.04 MB / 0.7498 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/1.17, allocations: 10.95 MB / 0.7605 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/1.17, allocations: 46.72 kB / 0.7605 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02185/1.192, allocations: 12.68 MB / 0.7729 GB, free: 122.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.755e-05/1.192, allocations: 64 kB / 0.7729 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001392/1.193, allocations: 140.1 kB / 0.7731 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008322/1.201, allocations: 3.244 MB / 0.7763 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004669/1.206, allocations: 1.532 MB / 0.7777 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01901/1.225, allocations: 16.61 MB / 0.794 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.231, allocations: 435.4 kB / 0.7944 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/1.232, allocations: 404 kB / 0.7948 GB, free: 100.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 804 * 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 {(8,47,54.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004048/1.236, allocations: 2.348 MB / 0.7971 GB, free: 97.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001169/1.237, allocations: 433.1 kB / 0.7975 GB, free: 97.46 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/1.25, allocations: 7.515 MB / 0.8048 GB, free: 89.93 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.321e-05/1.25, allocations: 28 kB / 0.8048 GB, free: 89.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-05/1.25, allocations: 15.94 kB / 0.8049 GB, free: 89.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.768e-05/1.25, allocations: 11.95 kB / 0.8049 GB, free: 89.87 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.275, allocations: 15.03 MB / 0.8196 GB, free: 74.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.178e-05/1.275, allocations: 4 kB / 0.8196 GB, free: 74.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/1.277, allocations: 375.5 kB / 0.8199 GB, free: 74.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007822/1.285, allocations: 2.927 MB / 0.8228 GB, free: 71.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005331/1.285, allocations: 40 kB / 0.8228 GB, free: 71.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.302, allocations: 14.83 MB / 0.8373 GB, free: 56.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/1.302, allocations: 3.938 kB / 0.8373 GB, free: 56.51 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/1.318, allocations: 11.5 MB / 0.8485 GB, free: 44.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/1.319, allocations: 470.1 kB / 0.849 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008611/1.32, allocations: 40.56 kB / 0.849 GB, free: 44.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/1.322, allocations: 195.7 kB / 0.8492 GB, free: 44.22 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000577/1.323, allocations: 153.7 kB / 0.8493 GB, free: 44.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/1.323, allocations: 64 kB / 0.8494 GB, free: 44 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003499/1.327, allocations: 2.742 MB / 0.8521 GB, free: 41.26 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.327, allocations: 3.938 kB / 0.8521 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006139/1.333, allocations: 1.301 MB / 0.8534 GB, free: 39.96 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (189): * Single equations (assignments): 185 * 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 {(6,40,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01742/1.35, allocations: 12.16 MB / 0.8652 GB, free: 27.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01155/1.362, allocations: 7.858 MB / 0.8729 GB, free: 19.87 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.362, allocations: 3.938 kB / 0.8729 GB, free: 19.87 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004342/1.366, allocations: 3.128 MB / 0.876 GB, free: 16.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/1.37, allocations: 0.5107 MB / 0.8765 GB, free: 16.22 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1072/1.477, allocations: 60.72 MB / 0.9358 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005794/1.483, allocations: 3.67 MB / 0.9394 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005572/1.488, allocations: 2.173 MB / 0.9415 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004213/1.492, allocations: 2.214 MB / 0.9436 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of SimCode: time 9.11e-07/1.492, allocations: 0 / 0.9436 GB, free: 5.113 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4168/1.909, allocations: 94.27 MB / 1.036 GB, free: 145.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.96/29.87, allocations: 11.84 kB / 1.036 GB, free: 145.4 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1)