Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001457/0.001457, allocations: 104.6 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.001355/0.001355, 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.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2507/0.2507, allocations: 46.1 MB / 344.2 MB, free: 11.56 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.002226/0.002227, allocations: 91.3 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1309, allocations: 62.44 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01996/0.1509, allocations: 15.97 MB / 496.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.166, allocations: 5.467 MB / 0.4899 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004155/0.1702, allocations: 107.7 kB / 0.49 GB, free: 15.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01055/0.1809, allocations: 5.117 MB / 0.495 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007819/0.1887, allocations: 2.583 MB / 0.4975 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003669/0.1924, allocations: 1.388 MB / 0.4989 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2702/0.4626, allocations: 8.225 MB / 0.5069 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009407/0.4721, allocations: 7.04 MB / 0.5138 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005712/0.4778, allocations: 2.765 MB / 0.5165 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006777/0.4846, allocations: 3.737 MB / 0.5201 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00267/0.4873, allocations: 0.6328 MB / 0.5207 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004423/0.4918, allocations: 1.772 MB / 0.5225 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004848/0.4967, allocations: 3.31 MB / 0.5257 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005999/0.5027, allocations: 3.791 MB / 0.5294 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5139, allocations: 11.85 MB / 0.541 GB, free: 2.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.5139, allocations: 0 / 0.541 GB, free: 2.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.514, allocations: 0 / 0.541 GB, free: 2.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003818/0.5143, allocations: 0 / 0.541 GB, free: 2.117 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02493/0.5393, allocations: 8.169 MB / 0.5489 GB, free: 11.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.5393, allocations: 8.031 kB / 0.549 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002993/0.5423, allocations: 1.148 MB / 0.5501 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05647/0.5988, allocations: 8.365 MB / 0.5582 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.614, allocations: 5.771 MB / 0.5639 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/0.6144, allocations: 379.1 kB / 0.5642 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001939/0.6164, allocations: 0.5114 MB / 0.5647 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0308/0.6472, allocations: 15.41 MB / 0.5798 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/0.6474, allocations: 70.61 kB / 0.5799 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008791/0.6483, allocations: 236.3 kB / 0.5801 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004097/0.6524, allocations: 2.551 MB / 0.5826 GB, free: 9.273 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03015/0.6826, allocations: 12.89 MB / 0.5952 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08678/0.7694, allocations: 57.16 MB / 0.651 GB, free: 2.605 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/0.7883, allocations: 6.324 MB / 0.6572 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005115/0.7935, allocations: 3.314 MB / 0.6604 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/0.8147, allocations: 11.37 MB / 0.6715 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.894e-05/0.8148, allocations: 63.19 kB / 0.6716 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=245): time 5.22e-06/0.8148, allocations: 0 / 0.6716 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=338): time 0.1502/0.9651, allocations: 39.5 MB / 0.7101 GB, free: 5.555 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/0.9653, allocations: 249.6 kB / 0.7104 GB, free: 5.262 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2532/1.219, allocations: 5.723 MB / 0.716 GB, free: 167.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009043/1.219, allocations: 76.8 kB / 0.716 GB, free: 167.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003868/1.223, allocations: 4.445 MB / 0.7204 GB, free: 166.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002011/1.225, allocations: 1.242 MB / 0.7216 GB, free: 165.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003319/1.229, allocations: 1.626 MB / 0.7232 GB, free: 165.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.809e-05/1.229, allocations: 302.6 kB / 0.7235 GB, free: 165.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007682/1.236, allocations: 3.773 MB / 0.7272 GB, free: 165.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01003/1.247, allocations: 8.308 MB / 0.7353 GB, free: 158.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01686/1.263, allocations: 13.01 MB / 0.748 GB, free: 149 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003238/1.264, allocations: 43.69 kB / 0.748 GB, free: 149 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03531/1.299, allocations: 15.47 MB / 0.7631 GB, free: 144.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003198/1.299, allocations: 76.44 kB / 0.7632 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004111/1.3, allocations: 156.7 kB / 0.7633 GB, free: 144.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01298/1.313, allocations: 4.103 MB / 0.7674 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005953/1.319, allocations: 1.802 MB / 0.7691 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02473/1.344, allocations: 20.93 MB / 0.7895 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007609/1.351, allocations: 0.4914 MB / 0.79 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/1.353, allocations: 468 kB / 0.7905 GB, free: 124.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.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],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (966): * Single equations (assignments): 962 * 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 {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005578/1.358, allocations: 3.116 MB / 0.7935 GB, free: 121.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.36, allocations: 0.5245 MB / 0.794 GB, free: 121.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01788/1.377, allocations: 9.615 MB / 0.8034 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-05/1.378, allocations: 36 kB / 0.8035 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/1.378, allocations: 12 kB / 0.8035 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.348e-05/1.378, allocations: 15.95 kB / 0.8035 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03462/1.412, allocations: 19.74 MB / 0.8228 GB, free: 91.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.18e-05/1.412, allocations: 8.125 kB / 0.8228 GB, free: 91.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002438/1.415, allocations: 0.4914 MB / 0.8232 GB, free: 91.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01148/1.426, allocations: 3.657 MB / 0.8268 GB, free: 87.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006184/1.427, allocations: 71.11 kB / 0.8269 GB, free: 87.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02214/1.449, allocations: 18.43 MB / 0.8449 GB, free: 68.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/1.449, allocations: 15.88 kB / 0.8449 GB, free: 68.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02248/1.472, allocations: 14.22 MB / 0.8588 GB, free: 54.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.473, allocations: 0.5683 MB / 0.8593 GB, free: 53.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/1.474, allocations: 60 kB / 0.8594 GB, free: 53.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003492/1.478, allocations: 227.7 kB / 0.8596 GB, free: 53.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001058/1.479, allocations: 222.8 kB / 0.8598 GB, free: 53.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002751/1.479, allocations: 88.94 kB / 0.8599 GB, free: 53.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005467/1.485, allocations: 3.646 MB / 0.8635 GB, free: 49.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.61e-07/1.485, allocations: 0 / 0.8635 GB, free: 49.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007591/1.492, allocations: 1.679 MB / 0.8651 GB, free: 47.93 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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 {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02427/1.517, allocations: 14.95 MB / 0.8797 GB, free: 32.78 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0191/1.536, allocations: 12.63 MB / 0.8921 GB, free: 20.17 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/1.536, allocations: 0 / 0.8921 GB, free: 20.17 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005092/1.541, allocations: 3.644 MB / 0.8956 GB, free: 16.51 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005091/1.546, allocations: 0.7757 MB / 0.8964 GB, free: 15.76 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3765/1.922, allocations: 93.16 MB / 0.9873 GB, free: 146 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006986/1.93, allocations: 4.815 MB / 0.992 GB, free: 142 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006758/1.936, allocations: 2.594 MB / 0.9946 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005248/1.942, allocations: 3.063 MB / 0.9976 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.874e-06/1.942, allocations: 3.938 kB / 0.9976 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1919/2.134, allocations: 132.8 MB / 1.127 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/15.6, allocations: 8.344 kB / 1.127 GB, free: 4.141 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)