Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001349, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2533/0.2533, 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.002446/0.002446, allocations: 78.7 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1387, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01893/0.1577, allocations: 15.97 MB / 496.2 MB, free: 5.113 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.1692, allocations: 5.456 MB / 0.4899 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003869/0.1731, allocations: 111.6 kB / 0.49 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0105/0.1837, allocations: 5.109 MB / 0.495 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007044/0.1908, allocations: 2.595 MB / 0.4975 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0032/0.194, allocations: 1.391 MB / 0.4989 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2634/0.4574, allocations: 8.223 MB / 0.5069 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.4682, allocations: 7.042 MB / 0.5138 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006624/0.4749, allocations: 2.762 MB / 0.5165 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008824/0.4838, allocations: 3.739 MB / 0.5201 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003839/0.4876, allocations: 0.633 MB / 0.5207 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008221/0.4959, allocations: 1.774 MB / 0.5225 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006591/0.5025, allocations: 3.311 MB / 0.5257 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008251/0.5108, allocations: 3.786 MB / 0.5294 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.5253, allocations: 11.85 MB / 0.541 GB, free: 2.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.5254, allocations: 7.875 kB / 0.541 GB, free: 2.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5254, allocations: 0 / 0.541 GB, free: 2.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004727/0.5258, allocations: 0 / 0.541 GB, free: 2.121 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02299/0.5488, allocations: 8.164 MB / 0.5489 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.5489, allocations: 12.03 kB / 0.549 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00432/0.5532, allocations: 1.146 MB / 0.5501 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05759/0.6109, allocations: 8.364 MB / 0.5582 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01557/0.6265, allocations: 5.767 MB / 0.5639 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.627, allocations: 384.8 kB / 0.5642 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/0.6298, allocations: 0.5161 MB / 0.5648 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03596/0.6658, allocations: 15.41 MB / 0.5798 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.6661, allocations: 69.39 kB / 0.5799 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009217/0.667, allocations: 237.7 kB / 0.5801 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004377/0.6714, allocations: 2.55 MB / 0.5826 GB, free: 9.309 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02938/0.7008, allocations: 12.88 MB / 0.5952 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08477/0.7856, allocations: 57.18 MB / 0.651 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/0.8041, allocations: 6.317 MB / 0.6572 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005012/0.8091, allocations: 3.321 MB / 0.6604 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01852/0.8277, allocations: 11.36 MB / 0.6715 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.8278, allocations: 63.12 kB / 0.6716 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=245): time 4.679e-06/0.8278, allocations: 0 / 0.6716 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of matching and sorting (n=338): time 0.152/0.9798, allocations: 39.5 MB / 0.7101 GB, free: 5.594 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.98, allocations: 247.8 kB / 0.7104 GB, free: 5.301 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2357/1.216, allocations: 5.725 MB / 0.716 GB, free: 187.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009547/1.217, allocations: 75.2 kB / 0.716 GB, free: 187.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003848/1.221, allocations: 4.451 MB / 0.7204 GB, free: 186.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.222, allocations: 1.234 MB / 0.7216 GB, free: 185.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003188/1.226, allocations: 1.63 MB / 0.7232 GB, free: 184.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.1e-05/1.226, allocations: 301.8 kB / 0.7235 GB, free: 184.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006451/1.232, allocations: 3.773 MB / 0.7272 GB, free: 182.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009815/1.242, allocations: 8.306 MB / 0.7353 GB, free: 175.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0154/1.257, allocations: 13.01 MB / 0.748 GB, free: 165.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002192/1.258, allocations: 47.28 kB / 0.748 GB, free: 165.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03228/1.29, allocations: 15.46 MB / 0.7631 GB, free: 159.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003064/1.29, allocations: 71.81 kB / 0.7632 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003559/1.291, allocations: 157.2 kB / 0.7633 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/1.304, allocations: 4.111 MB / 0.7674 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006536/1.31, allocations: 1.802 MB / 0.7691 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02778/1.338, allocations: 20.94 MB / 0.7896 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007224/1.345, allocations: 493.7 kB / 0.79 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.347, allocations: 469 kB / 0.7905 GB, free: 139.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (966): * Single equations (assignments): 962 * 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,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00554/1.353, allocations: 3.123 MB / 0.7935 GB, free: 136.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/1.354, allocations: 0.5283 MB / 0.794 GB, free: 135.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01933/1.373, allocations: 9.603 MB / 0.8034 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.701e-05/1.373, allocations: 41.73 kB / 0.8035 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.543e-05/1.373, allocations: 12 kB / 0.8035 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.276e-05/1.373, allocations: 19.94 kB / 0.8035 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0401/1.414, allocations: 19.74 MB / 0.8228 GB, free: 106.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.545e-05/1.414, allocations: 4 kB / 0.8228 GB, free: 106.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002483/1.416, allocations: 0.4906 MB / 0.8233 GB, free: 105.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01168/1.428, allocations: 3.672 MB / 0.8268 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007354/1.429, allocations: 60 kB / 0.8269 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02409/1.453, allocations: 18.43 MB / 0.8449 GB, free: 83.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.343e-06/1.453, allocations: 7.938 kB / 0.8449 GB, free: 83.42 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02462/1.477, allocations: 14.22 MB / 0.8588 GB, free: 69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.479, allocations: 0.5644 MB / 0.8593 GB, free: 68.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001981/1.481, allocations: 60 kB / 0.8594 GB, free: 68.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003806/1.485, allocations: 230.6 kB / 0.8596 GB, free: 68.13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/1.486, allocations: 222.2 kB / 0.8598 GB, free: 67.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004798/1.486, allocations: 95.92 kB / 0.8599 GB, free: 67.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006507/1.493, allocations: 3.639 MB / 0.8635 GB, free: 64.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/1.493, allocations: 4 kB / 0.8635 GB, free: 64.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009225/1.502, allocations: 1.681 MB / 0.8651 GB, free: 62.53 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (256): * Single equations (assignments): 252 * 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,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02622/1.529, allocations: 14.97 MB / 0.8797 GB, free: 47.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0202/1.549, allocations: 12.62 MB / 0.8921 GB, free: 34.76 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.437e-05/1.549, allocations: 1.875 kB / 0.8921 GB, free: 34.76 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005574/1.554, allocations: 3.647 MB / 0.8956 GB, free: 31.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007023/1.561, allocations: 0.7707 MB / 0.8964 GB, free: 30.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3898/1.951, allocations: 93.16 MB / 0.9873 GB, free: 126.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00524/1.957, allocations: 4.824 MB / 0.9921 GB, free: 122.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005678/1.962, allocations: 2.589 MB / 0.9946 GB, free: 119.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003251/1.966, allocations: 3.065 MB / 0.9976 GB, free: 116.8 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/1.966, allocations: 0 / 0.9976 GB, free: 116.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2449/2.21, allocations: 132.8 MB / 1.127 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/15.88, allocations: 8.344 kB / 1.127 GB, free: 0.5781 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP_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_JointUSP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)