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.001528/0.001528, allocations: 104.1 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.001601/0.001601, 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.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2428/0.2428, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002352/0.002352, allocations: 80.61 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1469, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02136/0.1683, allocations: 17.64 MB / 497.8 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.1829, allocations: 5.702 MB / 0.4917 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004271/0.1872, allocations: 111.7 kB / 0.4918 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01028/0.1976, allocations: 4.555 MB / 0.4963 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009201/0.2069, allocations: 2.976 MB / 0.4992 GB, free: 6.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004192/0.2111, allocations: 1.501 MB / 0.5007 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2792/0.4903, allocations: 8.922 MB / 0.5094 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00994/0.5003, allocations: 6.449 MB / 0.5157 GB, free: 12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008369/0.5087, allocations: 3.002 MB / 0.5186 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009261/0.518, allocations: 4.251 MB / 0.5228 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00428/0.5224, allocations: 0.6622 MB / 0.5234 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007381/0.5298, allocations: 1.839 MB / 0.5252 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005728/0.5355, allocations: 3.687 MB / 0.5288 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007558/0.5431, allocations: 4.217 MB / 0.5329 GB, free: 7.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01464/0.5578, allocations: 13.16 MB / 0.5458 GB, free: 14.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.5579, allocations: 4 kB / 0.5458 GB, free: 14.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5579, allocations: 0 / 0.5458 GB, free: 14.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005515/0.5584, allocations: 0 / 0.5458 GB, free: 14.84 MB / 398.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.02462/0.583, allocations: 9.115 MB / 0.5547 GB, free: 5.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.5831, allocations: 8.031 kB / 0.5547 GB, free: 5.824 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003662/0.5868, allocations: 1.423 MB / 0.5561 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03503/0.6218, allocations: 5.962 MB / 0.5619 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.6382, allocations: 5.902 MB / 0.5677 GB, free: 8.824 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007422/0.639, allocations: 449.2 kB / 0.5681 GB, free: 8.453 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004273/0.6433, allocations: 0.5995 MB / 0.5687 GB, free: 7.922 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0459/0.6892, allocations: 20.57 MB / 0.5888 GB, free: 2.559 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002915/0.6895, allocations: 79.8 kB / 0.5888 GB, free: 2.516 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001696/0.6912, allocations: 276 kB / 0.5891 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006355/0.6976, allocations: 3.711 MB / 0.5927 GB, free: 14.65 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04076/0.7384, allocations: 18.08 MB / 0.6104 GB, free: 12.87 MB / 462.1 MB 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.1222/0.8606, allocations: 74.32 MB / 0.6829 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01936/0.88, allocations: 7.434 MB / 0.6902 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006815/0.8869, allocations: 4.031 MB / 0.6941 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03679/0.9237, allocations: 18.03 MB / 0.7118 GB, free: 3.105 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/0.9238, allocations: 64.56 kB / 0.7118 GB, free: 3.031 MB / 0.545 GB Notification: Performance of pre-optimization done (n=332): time 6.552e-06/0.9238, allocations: 0 / 0.7118 GB, free: 3.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=413): time 0.3322/1.256, allocations: 34.27 MB / 0.7453 GB, free: 180.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.658e-05/1.256, allocations: 190.2 kB / 0.7455 GB, free: 180.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008377/1.265, allocations: 6.481 MB / 0.7518 GB, free: 177.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008459/1.265, allocations: 81.05 kB / 0.7519 GB, free: 177.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00376/1.269, allocations: 5.424 MB / 0.7572 GB, free: 173.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002091/1.271, allocations: 1.517 MB / 0.7587 GB, free: 172.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003292/1.275, allocations: 2.072 MB / 0.7607 GB, free: 171.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.708e-05/1.275, allocations: 301.1 kB / 0.761 GB, free: 171.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005472/1.28, allocations: 4.173 MB / 0.765 GB, free: 169.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007305/1.287, allocations: 10.08 MB / 0.7749 GB, free: 156.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01364/1.301, allocations: 15.36 MB / 0.7899 GB, free: 138 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001352/1.301, allocations: 60 kB / 0.7899 GB, free: 137.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.02821/1.33, allocations: 15.94 MB / 0.8055 GB, free: 122 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/1.33, allocations: 96 kB / 0.8056 GB, free: 121.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002223/1.33, allocations: 207.9 kB / 0.8058 GB, free: 121.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00694/1.337, allocations: 2.316 MB / 0.8081 GB, free: 119.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007801/1.345, allocations: 2.402 MB / 0.8104 GB, free: 116.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/1.361, allocations: 12.51 MB / 0.8226 GB, free: 104.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008017/1.369, allocations: 0.5828 MB / 0.8232 GB, free: 103.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001731/1.371, allocations: 0.5911 MB / 0.8238 GB, free: 103.1 MB / 0.545 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.006126/1.377, allocations: 3.757 MB / 0.8274 GB, free: 99.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/1.378, allocations: 0.5978 MB / 0.828 GB, free: 98.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0146/1.393, allocations: 8.17 MB / 0.836 GB, free: 90.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8e-05/1.393, allocations: 69.66 kB / 0.8361 GB, free: 90.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/1.393, allocations: 11.98 kB / 0.8361 GB, free: 90.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.91e-05/1.393, allocations: 15.94 kB / 0.8361 GB, free: 90.45 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/1.426, allocations: 18.64 MB / 0.8543 GB, free: 71.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.115e-05/1.426, allocations: 12 kB / 0.8543 GB, free: 71.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002862/1.429, allocations: 0.6201 MB / 0.8549 GB, free: 70.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006114/1.435, allocations: 1.753 MB / 0.8566 GB, free: 69.08 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006438/1.436, allocations: 76 kB / 0.8567 GB, free: 69.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01421/1.45, allocations: 10.58 MB / 0.867 GB, free: 58.29 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/1.45, allocations: 23.88 kB / 0.867 GB, free: 58.27 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/1.469, allocations: 12.17 MB / 0.8789 GB, free: 45.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002027/1.471, allocations: 0.6183 MB / 0.8795 GB, free: 45.19 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001316/1.472, allocations: 74.73 kB / 0.8796 GB, free: 45.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002772/1.475, allocations: 207.8 kB / 0.8798 GB, free: 44.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006508/1.476, allocations: 253.7 kB / 0.88 GB, free: 44.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002438/1.476, allocations: 118.9 kB / 0.8802 GB, free: 44.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005821/1.482, allocations: 4.038 MB / 0.8841 GB, free: 40.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.482, allocations: 0 / 0.8841 GB, free: 40.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01098/1.493, allocations: 1.878 MB / 0.8859 GB, free: 38.65 MB / 0.545 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.01943/1.512, allocations: 12.94 MB / 0.8986 GB, free: 25.45 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2399/1.752, allocations: 15.44 MB / 0.9136 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/1.752, allocations: 5.531 kB / 0.9136 GB, free: 180.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0058/1.758, allocations: 3.312 MB / 0.9169 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004551/1.762, allocations: 0.8218 MB / 0.9177 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1397/1.902, allocations: 105 MB / 1.02 GB, free: 92.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008334/1.911, allocations: 5.576 MB / 1.026 GB, free: 86.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008111/1.919, allocations: 3.308 MB / 1.029 GB, free: 83.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00528/1.924, allocations: 3.666 MB / 1.032 GB, free: 79.72 MB / 0.545 GB Notification: Performance of SimCode: time 1.222e-06/1.924, allocations: 4 kB / 1.032 GB, free: 79.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4584/2.382, allocations: 134.2 MB / 1.164 GB, free: 171.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/16.43, allocations: 2.188 kB / 1.164 GB, free: 171.9 MB / 0.5606 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)