Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_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.001566/0.001566, allocations: 117.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.00218/0.002181, allocations: 199.8 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.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2084/0.2084, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3501, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01905/0.3692, allocations: 17.64 MB / 0.5477 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.3822, allocations: 5.689 MB / 0.5533 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003799/0.386, allocations: 111.7 kB / 0.5534 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008528/0.3946, allocations: 4.571 MB / 0.5579 GB, free: 5.684 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009132/0.4038, allocations: 3.058 MB / 0.5608 GB, free: 2.617 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.4075, allocations: 1.509 MB / 0.5623 GB, free: 1.105 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.4207, allocations: 8.931 MB / 0.571 GB, free: 8.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00901/0.4298, allocations: 6.437 MB / 0.5773 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006266/0.4361, allocations: 3.014 MB / 0.5803 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007612/0.4438, allocations: 4.257 MB / 0.5844 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002782/0.4466, allocations: 0.6602 MB / 0.5851 GB, free: 9.695 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00538/0.452, allocations: 1.842 MB / 0.5869 GB, free: 7.852 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006328/0.4583, allocations: 3.717 MB / 0.5905 GB, free: 4.125 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009347/0.4677, allocations: 4.222 MB / 0.5946 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0216/0.4894, allocations: 13.65 MB / 0.6079 GB, free: 2.18 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.4894, allocations: 0 / 0.6079 GB, free: 2.18 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.4894, allocations: 0 / 0.6079 GB, free: 2.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005705/0.49, allocations: 4 kB / 0.6079 GB, free: 2.176 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.02968/0.5197, allocations: 9.339 MB / 0.6171 GB, free: 8.73 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.5198, allocations: 8.031 kB / 0.6171 GB, free: 8.723 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005291/0.5251, allocations: 1.43 MB / 0.6185 GB, free: 7.281 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03282/0.558, allocations: 6.01 MB / 0.6243 GB, free: 1.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/0.5757, allocations: 6.015 MB / 0.6302 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005324/0.5762, allocations: 438.9 kB / 0.6306 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002954/0.5792, allocations: 0.605 MB / 0.6312 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06118/0.6404, allocations: 20.55 MB / 0.6513 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003677/0.6408, allocations: 83.33 kB / 0.6514 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00231/0.6432, allocations: 275.7 kB / 0.6516 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00571/0.6489, allocations: 3.718 MB / 0.6553 GB, free: 364 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04031/0.6892, allocations: 18.07 MB / 0.6729 GB, free: 14.27 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.6802/1.369, allocations: 74.09 MB / 0.7453 GB, free: 113.6 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0174/1.387, allocations: 7.439 MB / 0.7525 GB, free: 111.9 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005106/1.392, allocations: 4.022 MB / 0.7565 GB, free: 110.3 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/1.421, allocations: 18.07 MB / 0.7741 GB, free: 99.87 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.739e-05/1.421, allocations: 65.97 kB / 0.7742 GB, free: 99.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=332): time 1.177e-05/1.421, allocations: 0 / 0.7742 GB, free: 99.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=413): time 0.1123/1.533, allocations: 34.69 MB / 0.808 GB, free: 68.33 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/1.534, allocations: 208.1 kB / 0.8082 GB, free: 68.09 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0084/1.542, allocations: 6.493 MB / 0.8146 GB, free: 61.73 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001053/1.543, allocations: 89.7 kB / 0.8147 GB, free: 61.64 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003418/1.546, allocations: 5.63 MB / 0.8202 GB, free: 56.36 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002253/1.549, allocations: 1.594 MB / 0.8217 GB, free: 54.79 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002895/1.552, allocations: 2.076 MB / 0.8238 GB, free: 52.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.132e-05/1.552, allocations: 305.1 kB / 0.824 GB, free: 52.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00537/1.557, allocations: 4.182 MB / 0.8281 GB, free: 48.21 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007475/1.565, allocations: 10.06 MB / 0.838 GB, free: 35.36 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01467/1.579, allocations: 15.37 MB / 0.853 GB, free: 17.14 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001768/1.58, allocations: 63.94 kB / 0.853 GB, free: 17.08 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03354/1.613, allocations: 15.97 MB / 0.8686 GB, free: 1.082 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/1.613, allocations: 100.2 kB / 0.8687 GB, free: 0.9844 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002649/1.614, allocations: 204 kB / 0.8689 GB, free: 0.7852 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008602/1.622, allocations: 2.306 MB / 0.8712 GB, free: 14.48 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008742/1.631, allocations: 2.402 MB / 0.8735 GB, free: 12.07 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0211/1.652, allocations: 12.51 MB / 0.8857 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01011/1.662, allocations: 0.5736 MB / 0.8863 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002718/1.665, allocations: 0.5929 MB / 0.8869 GB, free: 14.25 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.01044/1.675, allocations: 3.764 MB / 0.8906 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002008/1.677, allocations: 0.6285 MB / 0.8912 GB, free: 9.844 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02/1.697, allocations: 8.161 MB / 0.8991 GB, free: 1.633 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/1.698, allocations: 63.98 kB / 0.8992 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.478e-05/1.698, allocations: 12 kB / 0.8992 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.992e-05/1.698, allocations: 23.92 kB / 0.8992 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04596/1.744, allocations: 18.52 MB / 0.9173 GB, free: 14.71 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-05/1.744, allocations: 16.03 kB / 0.9173 GB, free: 14.69 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003296/1.747, allocations: 0.6162 MB / 0.9179 GB, free: 14.07 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006886/1.754, allocations: 1.748 MB / 0.9196 GB, free: 12.32 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008773/1.755, allocations: 83.98 kB / 0.9197 GB, free: 12.24 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/1.773, allocations: 10.57 MB / 0.9301 GB, free: 1.535 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/1.773, allocations: 19.94 kB / 0.9301 GB, free: 1.516 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/1.798, allocations: 12.2 MB / 0.942 GB, free: 5.055 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00213/1.8, allocations: 0.6452 MB / 0.9426 GB, free: 4.387 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00205/1.802, allocations: 85.88 kB / 0.9427 GB, free: 4.305 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003883/1.806, allocations: 199.8 kB / 0.9429 GB, free: 4.109 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/1.807, allocations: 257.5 kB / 0.9431 GB, free: 3.859 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006557/1.808, allocations: 116 kB / 0.9432 GB, free: 3.746 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.009839/1.818, allocations: 4.03 MB / 0.9472 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7.51e-07/1.818, allocations: 0 / 0.9472 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01084/1.828, allocations: 1.871 MB / 0.949 GB, free: 13.86 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.02432/1.853, allocations: 12.97 MB / 0.9617 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.3018/2.155, allocations: 9.902 MB / 0.9713 GB, free: 242.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/2.155, allocations: 1.969 kB / 0.9713 GB, free: 242.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004706/2.159, allocations: 3.316 MB / 0.9746 GB, free: 241.4 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004692/2.164, allocations: 0.8185 MB / 0.9754 GB, free: 241 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1169/2.281, allocations: 87.7 MB / 1.061 GB, free: 154.6 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005886/2.287, allocations: 5.584 MB / 1.066 GB, free: 149 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.00724/2.294, allocations: 3.312 MB / 1.07 GB, free: 145.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005277/2.3, allocations: 3.666 MB / 1.073 GB, free: 142 MB / 0.6544 GB Notification: Performance of SimCode: time 1.322e-06/2.3, allocations: 0 / 1.073 GB, free: 142 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2097/2.509, allocations: 128 MB / 1.198 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.81/40.32, allocations: 4.062 kB / 1.198 GB, free: 14.58 MB / 0.6544 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches