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.001706/0.001706, allocations: 118.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.002146/0.002146, allocations: 198 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.478/1.478, allocations: 227.4 MB / 247 MB, free: 10.43 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.2246/0.2246, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002343/0.002343, allocations: 83.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3731, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01565/0.3888, allocations: 12.03 MB / 0.5423 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.3992, allocations: 4.322 MB / 0.5465 GB, free: 0.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002685/0.4019, allocations: 72.47 kB / 0.5466 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005758/0.4077, allocations: 2.728 MB / 0.5493 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006427/0.4142, allocations: 1.98 MB / 0.5512 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.4166, allocations: 0.9047 MB / 0.5521 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.4272, allocations: 5.661 MB / 0.5576 GB, free: 5.973 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005857/0.4332, allocations: 3.358 MB / 0.5609 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004002/0.4372, allocations: 1.717 MB / 0.5626 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004613/0.4419, allocations: 2.512 MB / 0.565 GB, free: 14.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00152/0.4434, allocations: 384 kB / 0.5654 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.4472, allocations: 1.389 MB / 0.5668 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003531/0.4508, allocations: 2.166 MB / 0.5689 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004028/0.4548, allocations: 2.486 MB / 0.5713 GB, free: 7.891 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.4674, allocations: 8.024 MB / 0.5791 GB, free: 15.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4674, allocations: 0 / 0.5791 GB, free: 15.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4674, allocations: 0 / 0.5791 GB, free: 15.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002647/0.4677, allocations: 0 / 0.5791 GB, free: 15.84 MB / 446.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.01563/0.4834, allocations: 5.806 MB / 0.5848 GB, free: 9.945 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4834, allocations: 12.03 kB / 0.5848 GB, free: 9.934 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001887/0.4853, allocations: 0.8006 MB / 0.5856 GB, free: 9.121 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03877/0.5241, allocations: 5.993 MB / 0.5915 GB, free: 3.117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009094/0.5332, allocations: 3.861 MB / 0.5952 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.5335, allocations: 250.3 kB / 0.5955 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.5346, allocations: 331.8 kB / 0.5958 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02065/0.5552, allocations: 10.78 MB / 0.6063 GB, free: 3.102 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001517/0.5554, allocations: 51.53 kB / 0.6064 GB, free: 3.051 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004848/0.5559, allocations: 155.9 kB / 0.6065 GB, free: 2.898 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003318/0.5592, allocations: 2.002 MB / 0.6085 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02047/0.5797, allocations: 9.241 MB / 0.6175 GB, free: 7.633 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05978/0.6396, allocations: 40.89 MB / 0.6574 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.6509, allocations: 4.235 MB / 0.6615 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002856/0.6537, allocations: 1.895 MB / 0.6634 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01328/0.6671, allocations: 7.498 MB / 0.6707 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.218e-05/0.6672, allocations: 59.44 kB / 0.6708 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 5.751e-06/0.6672, allocations: 0 / 0.6708 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1759/0.8431, allocations: 40.89 MB / 0.7107 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.8433, allocations: 205.9 kB / 0.7109 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00907/0.8524, allocations: 4.333 MB / 0.7151 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000618/0.853, allocations: 61.69 kB / 0.7152 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.3029/1.156, allocations: 3.332 MB / 0.7184 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001832/1.158, allocations: 0.9155 MB / 0.7193 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003747/1.162, allocations: 1.293 MB / 0.7206 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.427e-05/1.162, allocations: 307 kB / 0.7209 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008404/1.17, allocations: 3.492 MB / 0.7243 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01157/1.182, allocations: 7.105 MB / 0.7312 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01892/1.201, allocations: 11.37 MB / 0.7423 GB, free: 149 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002047/1.201, allocations: 39.09 kB / 0.7424 GB, free: 149 MB / 0.5606 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.0416/1.243, allocations: 15.72 MB / 0.7577 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/1.243, allocations: 60 kB / 0.7578 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/1.243, allocations: 124 kB / 0.7579 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02167/1.265, allocations: 6.061 MB / 0.7638 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005418/1.27, allocations: 1.427 MB / 0.7652 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03035/1.3, allocations: 27.16 MB / 0.7917 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005581/1.306, allocations: 404.5 kB / 0.7921 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/1.307, allocations: 375.8 kB / 0.7925 GB, free: 102.3 MB / 0.5606 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.004044/1.311, allocations: 2.218 MB / 0.7947 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/1.312, allocations: 417.2 kB / 0.795 GB, free: 99.71 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02649/1.339, allocations: 11.06 MB / 0.8059 GB, free: 88.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.658e-05/1.339, allocations: 24 kB / 0.8059 GB, free: 88.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-05/1.339, allocations: 15.94 kB / 0.8059 GB, free: 88.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.709e-05/1.339, allocations: 13.83 kB / 0.8059 GB, free: 88.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04367/1.383, allocations: 20.47 MB / 0.8259 GB, free: 67.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.72e-05/1.383, allocations: 8 kB / 0.8259 GB, free: 67.67 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/1.385, allocations: 388 kB / 0.8263 GB, free: 67.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01928/1.404, allocations: 5.144 MB / 0.8313 GB, free: 62.13 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000624/1.405, allocations: 47.75 kB / 0.8313 GB, free: 62.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02465/1.429, allocations: 22.25 MB / 0.8531 GB, free: 39.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.43, allocations: 7.938 kB / 0.8531 GB, free: 39.56 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02899/1.459, allocations: 14.32 MB / 0.8671 GB, free: 25.15 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.46, allocations: 466.4 kB / 0.8675 GB, free: 24.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/1.461, allocations: 51.98 kB / 0.8676 GB, free: 24.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003203/1.464, allocations: 179.7 kB / 0.8677 GB, free: 24.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001023/1.466, allocations: 153 kB / 0.8679 GB, free: 24.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004599/1.466, allocations: 60 kB / 0.8679 GB, free: 24.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005105/1.471, allocations: 2.73 MB / 0.8706 GB, free: 21.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.471, allocations: 3.938 kB / 0.8706 GB, free: 21.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007289/1.478, allocations: 1.315 MB / 0.8719 GB, free: 20.2 MB / 0.5606 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.02952/1.508, allocations: 14.96 MB / 0.8865 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01296/1.521, allocations: 8.118 MB / 0.8944 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.521, allocations: 0 / 0.8944 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006892/1.528, allocations: 3.184 MB / 0.8975 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006125/1.534, allocations: 0.5287 MB / 0.898 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4352/1.969, allocations: 67.06 MB / 0.9635 GB, free: 214.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003597/1.973, allocations: 3.505 MB / 0.9669 GB, free: 213.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003802/1.977, allocations: 1.966 MB / 0.9689 GB, free: 212.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/1.979, allocations: 2.074 MB / 0.9709 GB, free: 210.5 MB / 0.6231 GB Notification: Performance of SimCode: time 1.382e-06/1.979, allocations: 0 / 0.9709 GB, free: 210.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1451/2.124, allocations: 105.3 MB / 1.074 GB, free: 108.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.95/27.08, allocations: 12.7 kB / 1.074 GB, free: 108.7 MB / 0.6231 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)