Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001873/0.001873, 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.001994/0.001995, 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.484/1.484, 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.2327/0.2327, allocations: 46.11 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.002216/0.002216, allocations: 86.73 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1294, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01515/0.1446, allocations: 12.02 MB / 492.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009124/0.1538, allocations: 4.313 MB / 496.5 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001839/0.1556, allocations: 71.81 kB / 496.6 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005518/0.1612, allocations: 2.725 MB / 499.3 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005384/0.1666, allocations: 1.987 MB / 0.4896 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002282/0.1689, allocations: 0.9045 MB / 0.4905 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008489/0.1774, allocations: 5.663 MB / 0.496 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005507/0.183, allocations: 3.358 MB / 0.4993 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003759/0.1868, allocations: 1.713 MB / 0.5009 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004496/0.1913, allocations: 2.512 MB / 0.5034 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001617/0.193, allocations: 384 kB / 0.5038 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2017/0.3947, allocations: 1.382 MB / 0.5051 GB, free: 18.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00321/0.3979, allocations: 2.161 MB / 0.5072 GB, free: 18.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003321/0.4013, allocations: 2.489 MB / 0.5096 GB, free: 17.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009348/0.4106, allocations: 7.748 MB / 0.5172 GB, free: 16.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4107, allocations: 3.094 kB / 0.5172 GB, free: 16.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4107, allocations: 3.781 kB / 0.5172 GB, free: 16.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.4109, allocations: 1.688 kB / 0.5172 GB, free: 16.52 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02083/0.4318, allocations: 5.657 MB / 0.5227 GB, free: 14.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.952e-05/0.4319, allocations: 9.094 kB / 0.5228 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002351/0.4342, allocations: 0.8028 MB / 0.5235 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03839/0.4726, allocations: 5.964 MB / 0.5294 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009888/0.4825, allocations: 3.782 MB / 0.5331 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.4828, allocations: 238.6 kB / 0.5333 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001816/0.4846, allocations: 332.8 kB / 0.5336 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02229/0.5069, allocations: 10.78 MB / 0.5441 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002825/0.5073, allocations: 51.88 kB / 0.5442 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001701/0.509, allocations: 155.4 kB / 0.5443 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003061/0.5121, allocations: 2.005 MB / 0.5463 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0209/0.533, allocations: 9.237 MB / 0.5553 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06435/0.5974, allocations: 40.99 MB / 0.5953 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.6096, allocations: 4.225 MB / 0.5995 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003249/0.6129, allocations: 1.889 MB / 0.6013 GB, free: 8.902 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.6267, allocations: 7.511 MB / 0.6086 GB, free: 1.066 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/0.6268, allocations: 50.84 kB / 0.6087 GB, free: 1.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 4.598e-06/0.6268, allocations: 0 / 0.6087 GB, free: 1.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1821/0.8089, allocations: 40.64 MB / 0.6484 GB, free: 8.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001753/0.8091, allocations: 204.5 kB / 0.6486 GB, free: 8.215 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/0.8201, allocations: 4.32 MB / 0.6528 GB, free: 3.871 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007687/0.8209, allocations: 61.7 kB / 0.6529 GB, free: 3.805 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003672/0.8246, allocations: 3.227 MB / 0.656 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001788/0.8264, allocations: 0.8717 MB / 0.6569 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005338/0.8318, allocations: 1.281 MB / 0.6581 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001823/0.832, allocations: 305.1 kB / 0.6584 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007488/0.8396, allocations: 3.491 MB / 0.6618 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/0.8501, allocations: 7.106 MB / 0.6687 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01995/0.8701, allocations: 11.38 MB / 0.6799 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001577/0.8703, allocations: 36 kB / 0.6799 GB, free: 5.125 MB / 0.5137 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04572/0.916, allocations: 15.69 MB / 0.6952 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.9163, allocations: 68.19 kB / 0.6953 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000261/0.9165, allocations: 127.8 kB / 0.6954 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2504/1.167, allocations: 6.054 MB / 0.7013 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009408/1.176, allocations: 1.436 MB / 0.7027 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04983/1.226, allocations: 27.15 MB / 0.7292 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006685/1.233, allocations: 399.2 kB / 0.7296 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/1.235, allocations: 377.4 kB / 0.73 GB, free: 167.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00519/1.24, allocations: 2.21 MB / 0.7321 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/1.241, allocations: 397.8 kB / 0.7325 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02842/1.27, allocations: 11.06 MB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.151e-05/1.27, allocations: 24 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.522e-05/1.27, allocations: 12 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-05/1.27, allocations: 8.531 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04127/1.311, allocations: 20.54 MB / 0.7634 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-05/1.311, allocations: 13.84 kB / 0.7634 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/1.313, allocations: 379.4 kB / 0.7638 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01998/1.333, allocations: 5.152 MB / 0.7688 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009536/1.334, allocations: 40 kB / 0.7688 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02522/1.359, allocations: 22.24 MB / 0.7906 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.359, allocations: 4 kB / 0.7906 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03135/1.391, allocations: 14.3 MB / 0.8045 GB, free: 96.12 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.392, allocations: 443.9 kB / 0.805 GB, free: 95.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001498/1.394, allocations: 44 kB / 0.805 GB, free: 95.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/1.397, allocations: 172.3 kB / 0.8052 GB, free: 95.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008959/1.398, allocations: 164.9 kB / 0.8053 GB, free: 95.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002156/1.398, allocations: 64.7 kB / 0.8054 GB, free: 95.23 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003722/1.402, allocations: 2.73 MB / 0.8081 GB, free: 92.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.402, allocations: 0.7656 kB / 0.8081 GB, free: 92.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006128/1.408, allocations: 1.308 MB / 0.8093 GB, free: 91.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03793/1.446, allocations: 14.94 MB / 0.8239 GB, free: 76.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0226/1.469, allocations: 9.49 MB / 0.8332 GB, free: 66.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.469, allocations: 0 / 0.8332 GB, free: 66.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006712/1.476, allocations: 3.175 MB / 0.8363 GB, free: 63.52 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005667/1.481, allocations: 0.5321 MB / 0.8368 GB, free: 63 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3524/1.834, allocations: 74.65 MB / 0.9097 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005434/1.839, allocations: 3.506 MB / 0.9131 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005326/1.845, allocations: 1.965 MB / 0.9151 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003064/1.848, allocations: 2.07 MB / 0.9171 GB, free: 186.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.332e-06/1.848, allocations: 0 / 0.9171 GB, free: 186.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1677/2.015, allocations: 109.1 MB / 1.024 GB, free: 96.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/14.35, allocations: 12.3 kB / 1.024 GB, free: 96.26 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1)