Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001738/0.001738, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00217/0.00217, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247 MB, free: 10.41 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.2331/0.2331, allocations: 46.11 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.002332/0.002332, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3661, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02164/0.3878, allocations: 17.64 MB / 0.5478 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.4011, allocations: 5.689 MB / 0.5534 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004329/0.4055, allocations: 107.8 kB / 0.5535 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009486/0.4151, allocations: 4.575 MB / 0.5579 GB, free: 5.625 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009143/0.4243, allocations: 2.972 MB / 0.5609 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003791/0.4281, allocations: 1.494 MB / 0.5623 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.4419, allocations: 8.947 MB / 0.571 GB, free: 8.188 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009229/0.4512, allocations: 6.425 MB / 0.5773 GB, free: 1.688 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006647/0.4579, allocations: 3.01 MB / 0.5803 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007433/0.4653, allocations: 4.261 MB / 0.5844 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002541/0.4679, allocations: 0.6641 MB / 0.5851 GB, free: 9.73 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00546/0.4734, allocations: 1.83 MB / 0.5869 GB, free: 7.898 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00596/0.4794, allocations: 3.682 MB / 0.5905 GB, free: 4.207 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009035/0.4885, allocations: 4.226 MB / 0.5946 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01865/0.5072, allocations: 13.65 MB / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.5072, allocations: 0 / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5073, allocations: 0 / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004629/0.5077, allocations: 0 / 0.6079 GB, free: 2.254 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02808/0.5358, allocations: 9.339 MB / 0.617 GB, free: 8.812 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.5359, allocations: 8.031 kB / 0.617 GB, free: 8.805 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004857/0.5408, allocations: 1.427 MB / 0.6184 GB, free: 7.367 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03244/0.5732, allocations: 6.01 MB / 0.6243 GB, free: 1.344 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01546/0.5887, allocations: 6.027 MB / 0.6302 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005224/0.5893, allocations: 434.9 kB / 0.6306 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003282/0.5926, allocations: 0.605 MB / 0.6312 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04439/0.637, allocations: 20.56 MB / 0.6513 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/0.6374, allocations: 71.41 kB / 0.6513 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001575/0.6389, allocations: 275.7 kB / 0.6516 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005977/0.6449, allocations: 3.722 MB / 0.6552 GB, free: 440 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04102/0.686, allocations: 18.07 MB / 0.6729 GB, free: 14.34 MB / 0.5294 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.368/1.054, allocations: 74.09 MB / 0.7452 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01657/1.071, allocations: 7.437 MB / 0.7525 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004627/1.075, allocations: 4.028 MB / 0.7564 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02309/1.098, allocations: 18.06 MB / 0.7741 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/1.098, allocations: 64.94 kB / 0.7741 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=332): time 6.241e-06/1.098, allocations: 3.5 kB / 0.7741 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413): time 0.1032/1.202, allocations: 34.7 MB / 0.808 GB, free: 69.95 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/1.202, allocations: 196.4 kB / 0.8082 GB, free: 69.72 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007881/1.21, allocations: 6.499 MB / 0.8146 GB, free: 63.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000773/1.211, allocations: 81.7 kB / 0.8146 GB, free: 63.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002657/1.213, allocations: 5.64 MB / 0.8201 GB, free: 57.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00149/1.215, allocations: 1.593 MB / 0.8217 GB, free: 55.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/1.217, allocations: 2.08 MB / 0.8237 GB, free: 53.86 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.212e-05/1.217, allocations: 305.1 kB / 0.824 GB, free: 53.56 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00505/1.222, allocations: 4.178 MB / 0.8281 GB, free: 49.38 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00792/1.23, allocations: 10.07 MB / 0.8379 GB, free: 36.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01404/1.244, allocations: 15.37 MB / 0.8529 GB, free: 18.32 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001429/1.245, allocations: 60 kB / 0.853 GB, free: 18.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.02751/1.272, allocations: 15.98 MB / 0.8686 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00011/1.272, allocations: 94.06 kB / 0.8687 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001979/1.273, allocations: 204 kB / 0.8689 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006875/1.279, allocations: 2.315 MB / 0.8711 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008253/1.288, allocations: 2.402 MB / 0.8735 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/1.309, allocations: 12.51 MB / 0.8857 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007935/1.317, allocations: 0.5815 MB / 0.8863 GB, free: 20 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002004/1.319, allocations: 0.5898 MB / 0.8868 GB, free: 15.43 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1276): * Single equations (assignments): 1269 * 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 {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007676/1.326, allocations: 3.757 MB / 0.8905 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.328, allocations: 0.6286 MB / 0.8911 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0181/1.346, allocations: 8.177 MB / 0.8991 GB, free: 2.801 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/1.346, allocations: 63.98 kB / 0.8992 GB, free: 2.738 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/1.346, allocations: 8 kB / 0.8992 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.02e-05/1.346, allocations: 15.94 kB / 0.8992 GB, free: 2.715 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04042/1.387, allocations: 18.53 MB / 0.9173 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.402e-05/1.387, allocations: 8 kB / 0.9173 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/1.39, allocations: 0.6169 MB / 0.9179 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006829/1.397, allocations: 1.753 MB / 0.9196 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008894/1.398, allocations: 78.28 kB / 0.9197 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01794/1.415, allocations: 10.59 MB / 0.93 GB, free: 2.711 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-05/1.416, allocations: 23.94 kB / 0.93 GB, free: 2.688 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/1.439, allocations: 12.19 MB / 0.942 GB, free: 6.23 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.441, allocations: 0.649 MB / 0.9426 GB, free: 5.559 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/1.442, allocations: 72.47 kB / 0.9427 GB, free: 5.488 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004049/1.446, allocations: 211.7 kB / 0.9429 GB, free: 5.281 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008388/1.447, allocations: 253.7 kB / 0.9431 GB, free: 5.031 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003015/1.448, allocations: 118.4 kB / 0.9432 GB, free: 4.918 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.007222/1.455, allocations: 4.026 MB / 0.9471 GB, free: 0.9023 MB / 0.6387 GB Notification: Performance of sort global known variables: time 4.3e-07/1.455, allocations: 3.938 kB / 0.9471 GB, free: 0.8984 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.008748/1.464, allocations: 1.879 MB / 0.949 GB, free: 15.02 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.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 (325): * Single equations (assignments): 318 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02447/1.488, allocations: 12.98 MB / 0.9617 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2798/1.768, allocations: 9.886 MB / 0.9713 GB, free: 246.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.009e-05/1.768, allocations: 5.438 kB / 0.9713 GB, free: 246.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.005916/1.774, allocations: 3.311 MB / 0.9745 GB, free: 245.2 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004542/1.779, allocations: 0.8156 MB / 0.9753 GB, free: 244.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.11/1.889, allocations: 87.7 MB / 1.061 GB, free: 160.9 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006814/1.896, allocations: 5.577 MB / 1.066 GB, free: 155.3 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007168/1.903, allocations: 3.308 MB / 1.07 GB, free: 151.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005038/1.908, allocations: 3.666 MB / 1.073 GB, free: 148.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.363e-06/1.908, allocations: 0 / 1.073 GB, free: 148.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/2.079, allocations: 128 MB / 1.198 GB, free: 20.82 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.64/38.72, allocations: 3.938 kB / 1.198 GB, free: 20.82 MB / 0.6544 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)