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.001293/0.001293, allocations: 103.9 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.001334/0.001334, allocations: 210.4 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.454/1.454, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2321/0.2321, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.003307/0.003307, allocations: 79.36 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1511, allocations: 62.45 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01406/0.1652, allocations: 12.02 MB / 492.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008759/0.174, allocations: 4.318 MB / 496.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.1759, allocations: 71.81 kB / 496.6 MB, free: 4.691 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005325/0.1813, allocations: 2.717 MB / 499.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005086/0.1864, allocations: 1.984 MB / 0.4896 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002134/0.1886, allocations: 0.9047 MB / 0.4905 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008056/0.1966, allocations: 5.673 MB / 0.496 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004467/0.2011, allocations: 3.355 MB / 0.4993 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002869/0.204, allocations: 1.709 MB / 0.5009 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003422/0.2075, allocations: 2.512 MB / 0.5034 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008771/0.2083, allocations: 384 kB / 0.5038 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2035/0.4119, allocations: 1.391 MB / 0.5051 GB, free: 18.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003315/0.4153, allocations: 2.16 MB / 0.5072 GB, free: 18.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003788/0.4191, allocations: 2.487 MB / 0.5097 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009463/0.4286, allocations: 7.745 MB / 0.5172 GB, free: 16.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4286, allocations: 0 / 0.5172 GB, free: 16.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4286, allocations: 0 / 0.5172 GB, free: 16.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002425/0.4289, allocations: 1.438 kB / 0.5172 GB, free: 16.54 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.01455/0.4434, allocations: 5.663 MB / 0.5227 GB, free: 14.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.4435, allocations: 10.44 kB / 0.5228 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001394/0.4449, allocations: 0.8011 MB / 0.5235 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03821/0.4831, allocations: 5.959 MB / 0.5294 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00851/0.4916, allocations: 3.793 MB / 0.5331 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.4918, allocations: 244 kB / 0.5333 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001214/0.493, allocations: 334.1 kB / 0.5336 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/0.5097, allocations: 10.78 MB / 0.5441 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001249/0.5099, allocations: 54.83 kB / 0.5442 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003986/0.5103, allocations: 152 kB / 0.5443 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002565/0.5128, allocations: 1.998 MB / 0.5463 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01831/0.5311, allocations: 9.241 MB / 0.5553 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05577/0.587, allocations: 41 MB / 0.5953 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/0.5986, allocations: 4.218 MB / 0.5995 GB, free: 10.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003312/0.602, allocations: 1.891 MB / 0.6013 GB, free: 8.945 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/0.6147, allocations: 7.501 MB / 0.6086 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.6148, allocations: 59.41 kB / 0.6087 GB, free: 1.055 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 4.819e-06/0.6148, allocations: 0 / 0.6087 GB, free: 1.055 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1842/0.799, allocations: 40.63 MB / 0.6484 GB, free: 8.504 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.7992, allocations: 213.4 kB / 0.6486 GB, free: 8.258 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008057/0.8072, allocations: 4.32 MB / 0.6528 GB, free: 3.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006694/0.808, allocations: 60.75 kB / 0.6529 GB, free: 3.852 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003003/0.811, allocations: 3.22 MB / 0.656 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00151/0.8125, allocations: 0.8754 MB / 0.6569 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002491/0.815, allocations: 1.285 MB / 0.6581 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.8152, allocations: 301.1 kB / 0.6584 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005848/0.821, allocations: 3.491 MB / 0.6618 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/0.8319, allocations: 7.107 MB / 0.6687 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01768/0.8497, allocations: 11.38 MB / 0.6799 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/0.8499, allocations: 36 kB / 0.6799 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04664/0.8965, allocations: 15.69 MB / 0.6952 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/0.8967, allocations: 63.94 kB / 0.6953 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001966/0.8969, allocations: 128 kB / 0.6954 GB, free: 5.523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2659/1.163, allocations: 6.064 MB / 0.7013 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006227/1.169, allocations: 1.435 MB / 0.7027 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03314/1.202, allocations: 27.14 MB / 0.7292 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006113/1.208, allocations: 404.7 kB / 0.7296 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.21, allocations: 376.8 kB / 0.73 GB, free: 167.2 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.003936/1.214, allocations: 2.21 MB / 0.7321 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.215, allocations: 392.1 kB / 0.7325 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02858/1.243, allocations: 11.06 MB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.173e-05/1.243, allocations: 27.81 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/1.243, allocations: 12 kB / 0.7433 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.475e-05/1.243, allocations: 7.969 kB / 0.7434 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03977/1.283, allocations: 20.53 MB / 0.7634 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.534e-05/1.283, allocations: 8 kB / 0.7634 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/1.285, allocations: 383.4 kB / 0.7638 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01948/1.305, allocations: 5.15 MB / 0.7688 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000557/1.305, allocations: 45.72 kB / 0.7689 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02266/1.328, allocations: 22.24 MB / 0.7906 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.328, allocations: 7.938 kB / 0.7906 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02955/1.358, allocations: 14.3 MB / 0.8045 GB, free: 96.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/1.359, allocations: 444.5 kB / 0.805 GB, free: 95.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/1.36, allocations: 39.98 kB / 0.805 GB, free: 95.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003015/1.363, allocations: 179.7 kB / 0.8052 GB, free: 95.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000788/1.364, allocations: 167 kB / 0.8053 GB, free: 95.32 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002085/1.364, allocations: 60 kB / 0.8054 GB, free: 95.26 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004157/1.368, allocations: 2.734 MB / 0.8081 GB, free: 92.53 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.368, allocations: 0 / 0.8081 GB, free: 92.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006896/1.375, allocations: 1.314 MB / 0.8093 GB, free: 91.22 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.02985/1.405, allocations: 14.93 MB / 0.8239 GB, free: 76.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0134/1.419, allocations: 9.488 MB / 0.8332 GB, free: 66.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.419, allocations: 0 / 0.8332 GB, free: 66.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003814/1.422, allocations: 3.172 MB / 0.8363 GB, free: 63.55 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003492/1.426, allocations: 0.5333 MB / 0.8368 GB, free: 63.02 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.36/1.786, 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.006374/1.792, allocations: 3.512 MB / 0.9131 GB, free: 186.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00593/1.798, allocations: 1.963 MB / 0.9151 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003697/1.802, allocations: 2.068 MB / 0.9171 GB, free: 186.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/1.802, allocations: 1.125 kB / 0.9171 GB, free: 186.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1574/1.959, allocations: 109.1 MB / 1.024 GB, free: 96.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/14.36, allocations: 4.703 kB / 1.024 GB, free: 96.42 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1)