Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001589/0.001589, 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.001798/0.001798, 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.472/1.472, allocations: 227.4 MB / 246.8 MB, free: 10.57 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.2277/0.2277, 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.002279/0.002279, allocations: 86.22 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1113, allocations: 62.44 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01281/0.1241, allocations: 10.35 MB / 490.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009121/0.1333, allocations: 3.888 MB / 494.4 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.1352, allocations: 59.81 kB / 494.5 MB, free: 6.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004389/0.1397, allocations: 2.063 MB / 496.6 MB, free: 4.707 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.1445, allocations: 1.673 MB / 498.2 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.1463, allocations: 0.694 MB / 498.9 MB, free: 2.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00578/0.1521, allocations: 4 MB / 0.4911 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003261/0.1554, allocations: 2.598 MB / 0.4937 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002086/0.1575, allocations: 1.3 MB / 0.495 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/0.1599, allocations: 1.842 MB / 0.4967 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005773/0.1605, allocations: 264 kB / 0.497 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002095/0.1626, allocations: 1.182 MB / 0.4982 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001633/0.1643, allocations: 1.628 MB / 0.4997 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.1665, allocations: 1.957 MB / 0.5017 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2349/0.4015, allocations: 6.096 MB / 0.5076 GB, free: 20.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.294e-05/0.4015, allocations: 0 / 0.5076 GB, free: 20.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4015, allocations: 1.375 kB / 0.5076 GB, free: 20.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002844/0.4018, allocations: 0 / 0.5076 GB, free: 20.08 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01483/0.4167, allocations: 4.325 MB / 0.5118 GB, free: 18.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.4167, allocations: 12.84 kB / 0.5118 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001987/0.4188, allocations: 0.6241 MB / 0.5125 GB, free: 18.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0907/0.5095, allocations: 7.025 MB / 0.5193 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006549/0.5161, allocations: 2.581 MB / 0.5218 GB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.5163, allocations: 198.3 kB / 0.522 GB, free: 17.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001257/0.5176, allocations: 272.8 kB / 0.5223 GB, free: 17.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.5327, allocations: 8.531 MB / 0.5306 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/0.5328, allocations: 42.47 kB / 0.5307 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004632/0.5333, allocations: 119.8 kB / 0.5308 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002508/0.5358, allocations: 1.738 MB / 0.5325 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01421/0.55, allocations: 7.168 MB / 0.5395 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0457/0.5958, allocations: 33.94 MB / 0.5726 GB, free: 5.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009812/0.6057, allocations: 3.433 MB / 0.576 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00265/0.6084, allocations: 1.661 MB / 0.5776 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/0.6211, allocations: 7.307 MB / 0.5847 GB, free: 8.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.6212, allocations: 47.56 kB / 0.5848 GB, free: 8.922 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 5.32e-06/0.6212, allocations: 3.844 kB / 0.5848 GB, free: 8.922 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.06633/0.6876, allocations: 19.02 MB / 0.6033 GB, free: 5.824 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001631/0.6878, allocations: 201.2 kB / 0.6035 GB, free: 5.586 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006666/0.6945, allocations: 3.736 MB / 0.6072 GB, free: 1.863 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005255/0.695, allocations: 53.7 kB / 0.6072 GB, free: 1.805 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/0.6977, allocations: 2.825 MB / 0.61 GB, free: 14.99 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.6989, allocations: 0.7134 MB / 0.6107 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001855/0.7008, allocations: 1.166 MB / 0.6118 GB, free: 13.11 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.7009, allocations: 305.1 kB / 0.6121 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004051/0.705, allocations: 2.1 MB / 0.6142 GB, free: 10.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007223/0.7122, allocations: 5.659 MB / 0.6197 GB, free: 3.332 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.723, allocations: 8.409 MB / 0.6279 GB, free: 9.684 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.018e-05/0.7231, allocations: 40 kB / 0.6279 GB, free: 9.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02024/0.7434, allocations: 8.695 MB / 0.6364 GB, free: 1.168 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.7436, allocations: 63.98 kB / 0.6365 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002773/0.7439, allocations: 124 kB / 0.6366 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00587/0.7497, allocations: 1.388 MB / 0.638 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005338/0.7551, allocations: 1.302 MB / 0.6392 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01575/0.7709, allocations: 9.216 MB / 0.6482 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004569/0.7756, allocations: 303.7 kB / 0.6485 GB, free: 4.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008586/0.7764, allocations: 363.6 kB / 0.6489 GB, free: 4.289 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (695): * Single equations (assignments): 691 * 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,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003662/0.7801, allocations: 1.885 MB / 0.6507 GB, free: 2.391 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007912/0.7809, allocations: 343.6 kB / 0.651 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008899/0.7898, allocations: 3.778 MB / 0.6547 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.454e-05/0.7899, allocations: 20 kB / 0.6548 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.7899, allocations: 8 kB / 0.6548 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-05/0.79, allocations: 11.97 kB / 0.6548 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/0.8076, allocations: 8.179 MB / 0.6628 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/0.8077, allocations: 0 / 0.6628 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.8091, allocations: 259.6 kB / 0.663 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004727/0.8139, allocations: 1.186 MB / 0.6642 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003886/0.8143, allocations: 31.98 kB / 0.6642 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01375/0.828, allocations: 8.479 MB / 0.6725 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.8281, allocations: 0 / 0.6725 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/0.8416, allocations: 6.288 MB / 0.6786 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.8428, allocations: 376.7 kB / 0.679 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006415/0.8434, allocations: 33.12 kB / 0.679 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.845, allocations: 79.91 kB / 0.6791 GB, free: 5.129 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/0.8454, allocations: 109.1 kB / 0.6792 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.8456, allocations: 55.98 kB / 0.6792 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004036/0.8496, allocations: 2.328 MB / 0.6815 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.51e-07/0.8496, allocations: 0 / 0.6815 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005786/0.8554, allocations: 0.9519 MB / 0.6824 GB, free: 1.707 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (130): * Single equations (assignments): 126 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01334/0.8688, allocations: 6.983 MB / 0.6893 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01137/0.8802, allocations: 6.141 MB / 0.6953 GB, free: 4.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/0.8803, allocations: 4.188 kB / 0.6953 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00288/0.8831, allocations: 1.745 MB / 0.697 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.8859, allocations: 403.2 kB / 0.6974 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.284/1.17, allocations: 49.23 MB / 0.7454 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002958/1.173, allocations: 2.958 MB / 0.7483 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004005/1.177, allocations: 1.815 MB / 0.7501 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002031/1.179, allocations: 1.649 MB / 0.7517 GB, free: 176.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/1.179, allocations: 0 / 0.7517 GB, free: 176.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1651/1.344, allocations: 70.26 MB / 0.8203 GB, free: 107.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/13.55, allocations: 15.25 kB / 0.8203 GB, free: 107.1 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)