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.001409/0.001409, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2512/0.2512, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.00223/0.002231, allocations: 75.92 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1535, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUPS2): time 0.01509/0.1687, allocations: 11.94 MB / 492.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.1795, allocations: 4.39 MB / 496.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002683/0.1822, allocations: 71.81 kB / 496.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006398/0.1887, allocations: 2.749 MB / 499.4 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008245/0.197, allocations: 1.999 MB / 0.4896 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003383/0.2004, allocations: 1.006 MB / 0.4906 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009184/0.2096, allocations: 5.368 MB / 0.4958 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005198/0.2149, allocations: 3.428 MB / 0.4992 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003393/0.2183, allocations: 1.74 MB / 0.5009 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003958/0.2223, allocations: 2.442 MB / 0.5033 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009992/0.2233, allocations: 368 kB / 0.5036 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002927/0.2262, allocations: 1.404 MB / 0.505 GB, free: 80 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2586/0.4849, allocations: 2.157 MB / 0.5071 GB, free: 18.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006484/0.4914, allocations: 2.552 MB / 0.5096 GB, free: 17.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.5055, allocations: 7.93 MB / 0.5173 GB, free: 16.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.5055, allocations: 1.562 kB / 0.5173 GB, free: 16.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5055, allocations: 0 / 0.5173 GB, free: 16.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000326/0.5059, allocations: 0 / 0.5173 GB, free: 16.18 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: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02177/0.5276, allocations: 5.879 MB / 0.5231 GB, free: 14.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.5277, allocations: 9.188 kB / 0.5231 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00305/0.5308, allocations: 0.7969 MB / 0.5239 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09011/0.6209, allocations: 7.224 MB / 0.5309 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009105/0.63, allocations: 3.53 MB / 0.5344 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.6302, allocations: 261.3 kB / 0.5346 GB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001913/0.6322, allocations: 351.9 kB / 0.5349 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02499/0.6572, allocations: 12.28 MB / 0.5469 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001467/0.6573, allocations: 55.42 kB / 0.547 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004915/0.6578, allocations: 165 kB / 0.5471 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004059/0.6619, allocations: 2.379 MB / 0.5495 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02488/0.6868, allocations: 10.7 MB / 0.5599 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07502/0.7618, allocations: 48.78 MB / 0.6075 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01667/0.7786, allocations: 5.853 MB / 0.6133 GB, free: 12.53 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004784/0.7834, allocations: 3.115 MB / 0.6163 GB, free: 9.406 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/0.8065, allocations: 13.01 MB / 0.629 GB, free: 12.14 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.663e-05/0.8067, allocations: 55.88 kB / 0.6291 GB, free: 12.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 6.342e-06/0.8067, allocations: 0 / 0.6291 GB, free: 12.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=254): time 0.1318/0.9385, allocations: 38.69 MB / 0.6669 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/0.9387, allocations: 213.2 kB / 0.6671 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01204/0.9507, allocations: 4.376 MB / 0.6713 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009952/0.9518, allocations: 64.44 kB / 0.6714 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00384/0.9556, allocations: 3.435 MB / 0.6747 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00185/0.9575, allocations: 0.9447 MB / 0.6757 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004794/0.9623, allocations: 1.363 MB / 0.677 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001869/0.9626, allocations: 309.1 kB / 0.6773 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006146/0.9687, allocations: 3.117 MB / 0.6803 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0101/0.9788, allocations: 7.038 MB / 0.6872 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01692/0.9958, allocations: 10.96 MB / 0.6979 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000177/0.996, allocations: 40 kB / 0.698 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of matching and sorting (n=886) (initialization): time 0.298/1.294, allocations: 12.66 MB / 0.7103 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000104/1.294, allocations: 65.41 kB / 0.7104 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/1.294, allocations: 140.8 kB / 0.7105 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009486/1.304, allocations: 3.25 MB / 0.7137 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005528/1.309, allocations: 1.536 MB / 0.7152 GB, free: 177 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02013/1.33, allocations: 16.61 MB / 0.7314 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/1.335, allocations: 427.1 kB / 0.7318 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.337, allocations: 406 kB / 0.7322 GB, free: 169.2 MB / 0.5294 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.004827/1.342, allocations: 2.356 MB / 0.7345 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.343, allocations: 402.8 kB / 0.7349 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/1.356, allocations: 7.522 MB / 0.7422 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-05/1.356, allocations: 27.52 kB / 0.7423 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/1.356, allocations: 12 kB / 0.7423 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.575e-05/1.356, allocations: 11.95 kB / 0.7423 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/1.381, allocations: 15.21 MB / 0.7571 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.459e-05/1.381, allocations: 0 / 0.7571 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001892/1.383, allocations: 379.5 kB / 0.7575 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007762/1.391, allocations: 2.927 MB / 0.7604 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005441/1.391, allocations: 43.98 kB / 0.7604 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01676/1.408, allocations: 14.77 MB / 0.7748 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.408, allocations: 3.938 kB / 0.7748 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.425, allocations: 11.47 MB / 0.786 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/1.427, allocations: 447.8 kB / 0.7865 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009728/1.428, allocations: 41.36 kB / 0.7865 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002172/1.43, allocations: 199.7 kB / 0.7867 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000568/1.431, allocations: 141.7 kB / 0.7868 GB, free: 113.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001983/1.431, allocations: 69.86 kB / 0.7869 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004654/1.436, allocations: 2.742 MB / 0.7896 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/1.436, allocations: 0 / 0.7896 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007316/1.443, allocations: 1.295 MB / 0.7908 GB, free: 109.6 MB / 0.5294 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.01748/1.46, allocations: 12.15 MB / 0.8027 GB, free: 97.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01672/1.477, allocations: 10.37 MB / 0.8128 GB, free: 87 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/1.477, allocations: 0 / 0.8128 GB, free: 87 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004295/1.481, allocations: 3.122 MB / 0.8159 GB, free: 83.87 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/1.485, allocations: 0.5222 MB / 0.8164 GB, free: 83.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1057/1.59, allocations: 68.17 MB / 0.883 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007451/1.598, allocations: 3.662 MB / 0.8865 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006499/1.605, allocations: 2.176 MB / 0.8887 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004605/1.609, allocations: 2.233 MB / 0.8908 GB, free: 14.61 MB / 0.545 GB Notification: Performance of SimCode: time 1.352e-06/1.609, allocations: 0 / 0.8908 GB, free: 14.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4235/2.033, allocations: 98.24 MB / 0.9868 GB, free: 129.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/14.4, allocations: 7.562 kB / 0.9868 GB, free: 129.1 MB / 0.545 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)