Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.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.Joints.Prismatic,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Prismatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Prismatic,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Prismatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.001429, 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.001627/0.001627, 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.451/1.451, 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.2267/0.2267, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002919/0.002919, allocations: 88.33 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1331, allocations: 62.44 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Prismatic): time 0.01407/0.1472, allocations: 12.25 MB / 492.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008627/0.1559, allocations: 3.862 MB / 496.3 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002211/0.1582, allocations: 67.81 kB / 496.4 MB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002909/0.1611, allocations: 1.312 MB / 497.7 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004252/0.1654, allocations: 1.719 MB / 499.4 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.1664, allocations: 419.2 kB / 499.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005311/0.1718, allocations: 3.593 MB / 0.4916 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002909/0.1747, allocations: 2.021 MB / 0.4936 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002549/0.1773, allocations: 1.179 MB / 0.4947 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/0.1801, allocations: 1.74 MB / 0.4964 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005856/0.1807, allocations: 236 kB / 0.4967 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.1826, allocations: 0.8074 MB / 0.4975 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001658/0.1842, allocations: 1.578 MB / 0.499 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002186/0.1864, allocations: 1.867 MB / 0.5008 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2298/0.4162, allocations: 5.776 MB / 0.5065 GB, free: 18.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.047e-05/0.4163, allocations: 2 kB / 0.5065 GB, free: 18.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4163, allocations: 2.125 kB / 0.5065 GB, free: 18.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000256/0.4166, allocations: 0.9844 kB / 0.5065 GB, free: 18.39 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: 1514 * Number of variables: 1514 Notification: Performance of Generate backend data structure: time 0.008412/0.425, allocations: 4.03 MB / 0.5104 GB, free: 16.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.4251, allocations: 9.906 kB / 0.5104 GB, free: 16.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001604/0.4267, allocations: 0.7041 MB / 0.5111 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.4382, allocations: 3.084 MB / 0.5141 GB, free: 16.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005703/0.4439, allocations: 2.113 MB / 0.5162 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.4442, allocations: 189.2 kB / 0.5164 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.4458, allocations: 248.3 kB / 0.5166 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.4657, allocations: 10.17 MB / 0.5265 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.99e-05/0.4658, allocations: 26.34 kB / 0.5266 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004486/0.4663, allocations: 123.7 kB / 0.5267 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00366/0.47, allocations: 2.466 MB / 0.5291 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.4865, allocations: 9.35 MB / 0.5382 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05509/0.5416, allocations: 31.66 MB / 0.5691 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.5532, allocations: 3.353 MB / 0.5724 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003359/0.5567, allocations: 1.074 MB / 0.5734 GB, free: 3.324 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002558/0.5593, allocations: 1.308 MB / 0.5747 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001091/0.5594, allocations: 51.25 kB / 0.5748 GB, free: 1.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=185): time 1.127e-05/0.5595, allocations: 1.641 kB / 0.5748 GB, free: 1.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=191): time 0.03912/0.5986, allocations: 9.105 MB / 0.5837 GB, free: 8.586 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.042e-05/0.5988, allocations: 64.72 kB / 0.5837 GB, free: 8.508 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006834/0.6056, allocations: 2.604 MB / 0.5863 GB, free: 5.883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003494/0.606, allocations: 56.36 kB / 0.5863 GB, free: 5.824 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003378/0.6094, allocations: 2.664 MB / 0.5889 GB, free: 3.168 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/0.6108, allocations: 0.7093 MB / 0.5896 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002745/0.6136, allocations: 0.9554 MB / 0.5906 GB, free: 1.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.6138, allocations: 305.1 kB / 0.5908 GB, free: 1.199 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004421/0.6183, allocations: 1.551 MB / 0.5924 GB, free: 15.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008636/0.6269, allocations: 4.371 MB / 0.5966 GB, free: 9.914 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01525/0.6422, allocations: 6.55 MB / 0.603 GB, free: 2.379 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003706/0.6427, allocations: 32.61 kB / 0.6031 GB, free: 2.352 MB / 446.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01969/0.6624, allocations: 5.832 MB / 0.6088 GB, free: 12.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/0.6626, allocations: 54.59 kB / 0.6088 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002045/0.6629, allocations: 100 kB / 0.6089 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.6634, allocations: 177.4 kB / 0.6091 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005728/0.6692, allocations: 1.061 MB / 0.6101 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002889/0.6721, allocations: 1.801 MB / 0.6119 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005148/0.6772, allocations: 204 kB / 0.6121 GB, free: 9.379 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00114/0.6784, allocations: 294.6 kB / 0.6123 GB, free: 9.094 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 453 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (592): * Single equations (assignments): 585 * Array equations: 6 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00636/0.6848, allocations: 1.992 MB / 0.6143 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008808/0.6857, allocations: 244.8 kB / 0.6145 GB, free: 6.852 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007254/0.693, allocations: 2.536 MB / 0.617 GB, free: 4.289 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.096e-05/0.6931, allocations: 30.64 kB / 0.617 GB, free: 4.262 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.6931, allocations: 0 / 0.617 GB, free: 4.262 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.6931, allocations: 7.984 kB / 0.617 GB, free: 4.254 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02334/0.7165, allocations: 7.962 MB / 0.6248 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.571e-05/0.7166, allocations: 8.219 kB / 0.6248 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/0.7183, allocations: 254 kB / 0.6251 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002568/0.7186, allocations: 52.83 kB / 0.6251 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002123/0.7188, allocations: 51.11 kB / 0.6252 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.7212, allocations: 1.618 MB / 0.6267 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-05/0.7212, allocations: 19.92 kB / 0.6268 GB, free: 9.996 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009535/0.7308, allocations: 4.017 MB / 0.6307 GB, free: 5.836 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009604/0.7318, allocations: 301.8 kB / 0.631 GB, free: 5.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007241/0.7325, allocations: 38.95 kB / 0.631 GB, free: 5.484 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.7342, allocations: 55.95 kB / 0.6311 GB, free: 5.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/0.7347, allocations: 124.6 kB / 0.6312 GB, free: 5.309 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002259/0.7349, allocations: 59.11 kB / 0.6312 GB, free: 5.254 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004659/0.7396, allocations: 1.611 MB / 0.6328 GB, free: 3.633 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.193e-06/0.7396, allocations: 0 / 0.6328 GB, free: 3.633 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007288/0.7469, allocations: 0.7718 MB / 0.6336 GB, free: 2.863 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (139): * Single equations (assignments): 132 * Array equations: 6 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01008/0.757, allocations: 4.691 MB / 0.6381 GB, free: 14.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0132/0.7703, allocations: 5.493 MB / 0.6435 GB, free: 8.535 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.437e-05/0.7704, allocations: 0 / 0.6435 GB, free: 8.535 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002804/0.7732, allocations: 1.237 MB / 0.6447 GB, free: 7.293 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/0.7765, allocations: 344.2 kB / 0.645 GB, free: 6.965 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06587/0.8424, allocations: 35.71 MB / 0.6799 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005257/0.8477, allocations: 3.128 MB / 0.683 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004329/0.8521, allocations: 1.706 MB / 0.6846 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002758/0.8549, allocations: 1.698 MB / 0.6863 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of SimCode: time 1.373e-06/0.8549, allocations: 0 / 0.6863 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2903/1.145, allocations: 48.42 MB / 0.7336 GB, free: 196.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/12.43, allocations: 9.578 kB / 0.7336 GB, free: 196.1 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Prismatic.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Prismatic.pipe 2>&1)