Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.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.Universal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Universal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Universal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Universal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001539/0.001539, allocations: 122.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.001829/0.001829, allocations: 202 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.523/1.523, allocations: 227.4 MB / 247 MB, free: 10.42 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.2558/0.2558, allocations: 46.11 MB / 344.4 MB, free: 11.46 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.002316/0.002316, allocations: 83.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3562, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Universal): time 0.01648/0.3727, allocations: 13.46 MB / 0.5438 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.383, allocations: 4.206 MB / 0.5479 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002841/0.3858, allocations: 69 kB / 0.5479 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004228/0.3901, allocations: 1.96 MB / 0.5498 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005796/0.3959, allocations: 1.898 MB / 0.5517 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.3977, allocations: 0.5459 MB / 0.5522 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006505/0.4042, allocations: 4.05 MB / 0.5562 GB, free: 7.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004262/0.4085, allocations: 2.863 MB / 0.559 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002708/0.4113, allocations: 1.436 MB / 0.5604 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003498/0.4148, allocations: 2.009 MB / 0.5623 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.4159, allocations: 304 kB / 0.5626 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.4187, allocations: 1.01 MB / 0.5636 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00261/0.4213, allocations: 1.854 MB / 0.5654 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003551/0.4249, allocations: 2.236 MB / 0.5676 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.4364, allocations: 7.324 MB / 0.5748 GB, free: 4.332 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.4365, allocations: 0 / 0.5748 GB, free: 4.332 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.147e-06/0.4365, allocations: 0 / 0.5748 GB, free: 4.332 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003592/0.4368, allocations: 0 / 0.5748 GB, free: 4.332 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01357/0.4504, allocations: 5.021 MB / 0.5797 GB, free: 15.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4505, allocations: 12.03 kB / 0.5797 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00175/0.4522, allocations: 0.8196 MB / 0.5805 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01148/0.4637, allocations: 3.172 MB / 0.5836 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005872/0.4697, allocations: 2.404 MB / 0.5859 GB, free: 8.762 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.4701, allocations: 242.2 kB / 0.5862 GB, free: 8.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001589/0.4717, allocations: 311.7 kB / 0.5865 GB, free: 8.219 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02363/0.4953, allocations: 12.09 MB / 0.5983 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/0.4955, allocations: 35.7 kB / 0.5983 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005492/0.4961, allocations: 143.8 kB / 0.5984 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005356/0.5014, allocations: 2.839 MB / 0.6012 GB, free: 8.562 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02543/0.5269, allocations: 11.36 MB / 0.6123 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06949/0.5964, allocations: 41.11 MB / 0.6524 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.6091, allocations: 6.078 MB / 0.6584 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004642/0.6138, allocations: 3.009 MB / 0.6613 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002116/0.616, allocations: 1.884 MB / 0.6632 GB, free: 7.531 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.6161, allocations: 61.22 kB / 0.6632 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=262): time 6.552e-06/0.6161, allocations: 0 / 0.6632 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of matching and sorting (n=283): time 0.05419/0.6703, allocations: 20.21 MB / 0.6829 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.6704, allocations: 73.41 kB / 0.683 GB, free: 3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005015/0.6754, allocations: 3.036 MB / 0.686 GB, free: 15.94 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006246/0.6761, allocations: 65.7 kB / 0.686 GB, free: 15.87 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002627/0.6787, allocations: 3.108 MB / 0.6891 GB, free: 12.74 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001894/0.6806, allocations: 1.077 MB / 0.6901 GB, free: 11.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002371/0.683, allocations: 1.195 MB / 0.6913 GB, free: 10.45 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.6832, allocations: 301.1 kB / 0.6916 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004791/0.688, allocations: 2.846 MB / 0.6944 GB, free: 7.297 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008293/0.6963, allocations: 6.018 MB / 0.7002 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/0.7112, allocations: 9.669 MB / 0.7097 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/0.7114, allocations: 28 kB / 0.7097 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of matching and sorting (n=788) (initialization): time 0.02199/0.7334, allocations: 10.03 MB / 0.7195 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.306e-05/0.7335, allocations: 55.94 kB / 0.7196 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.7337, allocations: 115.9 kB / 0.7197 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003855/0.7375, allocations: 1.366 MB / 0.721 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005358/0.7429, allocations: 1.365 MB / 0.7223 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2937/1.037, allocations: 7.805 MB / 0.73 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004614/1.041, allocations: 365.9 kB / 0.7303 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/1.043, allocations: 340.9 kB / 0.7306 GB, free: 173.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 501 * Number of states: 0 () * Number of discrete variables: 32 (axis1.headAtOrigin,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 711 * Array equations: 6 * 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 {(3,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004403/1.047, allocations: 2.296 MB / 0.7329 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006177/1.048, allocations: 321.1 kB / 0.7332 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/1.058, allocations: 6.627 MB / 0.7397 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.412e-05/1.058, allocations: 53.91 kB / 0.7397 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/1.058, allocations: 4.469 kB / 0.7397 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.752e-05/1.058, allocations: 15.12 kB / 0.7397 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/1.078, allocations: 13.88 MB / 0.7533 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.18e-05/1.078, allocations: 6.656 kB / 0.7533 GB, free: 166.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/1.08, allocations: 455.6 kB / 0.7537 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002922/1.083, allocations: 1.211 MB / 0.7549 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004589/1.084, allocations: 62.36 kB / 0.755 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006887/1.091, allocations: 7.011 MB / 0.7618 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.091, allocations: 12.56 kB / 0.7618 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01184/1.103, allocations: 9.883 MB / 0.7715 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009072/1.103, allocations: 372.1 kB / 0.7718 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000629/1.104, allocations: 51.94 kB / 0.7719 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/1.106, allocations: 195.7 kB / 0.7721 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004813/1.106, allocations: 165.1 kB / 0.7722 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002021/1.107, allocations: 71.98 kB / 0.7723 GB, free: 149.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002337/1.109, allocations: 1.878 MB / 0.7741 GB, free: 148 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/1.109, allocations: 0 / 0.7741 GB, free: 148 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004494/1.113, allocations: 1.101 MB / 0.7752 GB, free: 146.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (218): * Single equations (assignments): 211 * Array equations: 6 * 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 {(4,16,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01244/1.126, allocations: 10.54 MB / 0.7855 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009239/1.135, allocations: 6.984 MB / 0.7923 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/1.135, allocations: 0 / 0.7923 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003877/1.139, allocations: 2.862 MB / 0.7951 GB, free: 126.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/1.142, allocations: 422.9 kB / 0.7955 GB, free: 126 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06132/1.203, allocations: 49 MB / 0.8434 GB, free: 72.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003667/1.207, allocations: 3.578 MB / 0.8469 GB, free: 68.43 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004146/1.211, allocations: 2.2 MB / 0.849 GB, free: 66.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002813/1.214, allocations: 2.069 MB / 0.851 GB, free: 64.16 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.214, allocations: 0 / 0.851 GB, free: 64.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/1.324, allocations: 70.06 MB / 0.9194 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.88/24.21, allocations: 8.578 kB / 0.9195 GB, free: 10.39 MB / 0.5919 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Universal_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Universal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Universal.pipe 2>&1)