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.00144/0.00144, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002738/0.002738, allocations: 76.84 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1576, allocations: 62.44 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01865/0.1762, allocations: 17.64 MB / 497.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.189, allocations: 5.698 MB / 0.4917 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.1923, allocations: 111.7 kB / 0.4918 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009236/0.2016, allocations: 4.567 MB / 0.4962 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.2134, allocations: 2.976 MB / 0.4991 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004956/0.2184, allocations: 1.49 MB / 0.5006 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2728/0.4913, allocations: 8.92 MB / 0.5093 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01113/0.5025, allocations: 6.441 MB / 0.5156 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00894/0.5115, allocations: 3.01 MB / 0.5185 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008635/0.5202, allocations: 4.248 MB / 0.5227 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003335/0.5235, allocations: 0.6626 MB / 0.5233 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005851/0.5294, allocations: 1.84 MB / 0.5251 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005953/0.5354, allocations: 3.681 MB / 0.5287 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008074/0.5435, allocations: 4.222 MB / 0.5328 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01652/0.5601, allocations: 13.16 MB / 0.5457 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.308e-05/0.5601, allocations: 3.984 kB / 0.5457 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.5602, allocations: 0 / 0.5457 GB, free: 14.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007564/0.5609, allocations: 0 / 0.5457 GB, free: 14.97 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.0309/0.5918, allocations: 9.122 MB / 0.5546 GB, free: 5.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/0.5919, allocations: 8.031 kB / 0.5546 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00468/0.5966, allocations: 1.423 MB / 0.556 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03183/0.6285, allocations: 5.953 MB / 0.5618 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01511/0.6436, allocations: 5.912 MB / 0.5676 GB, free: 8.941 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004232/0.6441, allocations: 446.3 kB / 0.568 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/0.6468, allocations: 0.5998 MB / 0.5686 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04157/0.6884, allocations: 20.56 MB / 0.5887 GB, free: 2.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002734/0.6887, allocations: 78.22 kB / 0.5888 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001498/0.6902, allocations: 275.9 kB / 0.589 GB, free: 2.438 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006092/0.6964, allocations: 3.713 MB / 0.5926 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03958/0.736, allocations: 18.08 MB / 0.6103 GB, free: 12.98 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.1105/0.8465, allocations: 74.3 MB / 0.6829 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/0.8649, allocations: 7.442 MB / 0.6901 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005522/0.8705, allocations: 4.025 MB / 0.6941 GB, free: 5.863 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0302/0.9007, allocations: 18.03 MB / 0.7117 GB, free: 3.227 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/0.9008, allocations: 71.83 kB / 0.7117 GB, free: 3.148 MB / 0.545 GB Notification: Performance of pre-optimization done (n=332): time 6.392e-06/0.9008, allocations: 0 / 0.7117 GB, free: 3.148 MB / 0.545 GB Notification: Performance of matching and sorting (n=413): time 0.5481/1.449, allocations: 34.26 MB / 0.7452 GB, free: 178.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/1.449, allocations: 203.6 kB / 0.7454 GB, free: 178.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00752/1.457, allocations: 6.477 MB / 0.7517 GB, free: 176.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006723/1.457, allocations: 85.06 kB / 0.7518 GB, free: 176.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002472/1.46, allocations: 5.42 MB / 0.7571 GB, free: 171.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001363/1.461, allocations: 1.524 MB / 0.7586 GB, free: 170.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002423/1.464, allocations: 2.063 MB / 0.7606 GB, free: 169.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.964e-05/1.464, allocations: 305.1 kB / 0.7609 GB, free: 169.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.469, allocations: 4.178 MB / 0.765 GB, free: 167.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007855/1.477, allocations: 10.07 MB / 0.7748 GB, free: 154.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02104/1.498, allocations: 15.36 MB / 0.7898 GB, free: 136.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002174/1.498, allocations: 60 kB / 0.7898 GB, free: 136.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.05089/1.549, allocations: 15.95 MB / 0.8054 GB, free: 120.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.00016/1.549, allocations: 92 kB / 0.8055 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002613/1.549, allocations: 209.2 kB / 0.8057 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/1.563, allocations: 2.314 MB / 0.808 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007918/1.571, allocations: 2.406 MB / 0.8103 GB, free: 115.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01645/1.587, allocations: 12.5 MB / 0.8225 GB, free: 102.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007589/1.595, allocations: 0.5759 MB / 0.8231 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/1.597, allocations: 0.5872 MB / 0.8237 GB, free: 101.4 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.005533/1.602, allocations: 3.759 MB / 0.8273 GB, free: 97.61 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.603, allocations: 0.5978 MB / 0.8279 GB, free: 97 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01467/1.618, allocations: 8.171 MB / 0.8359 GB, free: 88.79 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-05/1.618, allocations: 63.98 kB / 0.836 GB, free: 88.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/1.618, allocations: 8 kB / 0.836 GB, free: 88.71 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.468e-05/1.618, allocations: 19.94 kB / 0.836 GB, free: 88.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0365/1.655, allocations: 18.65 MB / 0.8542 GB, free: 69.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.67e-05/1.655, allocations: 12.19 kB / 0.8542 GB, free: 69.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/1.657, allocations: 0.6201 MB / 0.8548 GB, free: 69.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006183/1.664, allocations: 1.745 MB / 0.8565 GB, free: 67.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007142/1.664, allocations: 81.31 kB / 0.8566 GB, free: 67.24 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/1.679, allocations: 10.58 MB / 0.8669 GB, free: 56.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/1.679, allocations: 15.94 kB / 0.867 GB, free: 56.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02198/1.701, allocations: 12.17 MB / 0.8788 GB, free: 44.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/1.703, allocations: 0.6144 MB / 0.8794 GB, free: 43.43 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001693/1.705, allocations: 78.88 kB / 0.8795 GB, free: 43.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/1.708, allocations: 201.5 kB / 0.8797 GB, free: 43.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001167/1.709, allocations: 261.7 kB / 0.88 GB, free: 42.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003038/1.71, allocations: 113 kB / 0.8801 GB, free: 42.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007955/1.718, allocations: 4.034 MB / 0.884 GB, free: 38.77 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.21e-07/1.718, allocations: 0 / 0.884 GB, free: 38.77 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01198/1.73, allocations: 1.877 MB / 0.8858 GB, free: 36.9 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.01975/1.749, allocations: 12.95 MB / 0.8985 GB, free: 23.69 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02402/1.773, allocations: 15.44 MB / 0.9136 GB, free: 8.297 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/1.774, allocations: 4 kB / 0.9136 GB, free: 8.293 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2422/2.016, allocations: 3.314 MB / 0.9168 GB, free: 178.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005171/2.021, allocations: 0.82 MB / 0.9176 GB, free: 178 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1383/2.159, allocations: 105 MB / 1.02 GB, free: 87.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007693/2.167, allocations: 5.587 MB / 1.026 GB, free: 82.04 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007846/2.175, allocations: 3.304 MB / 1.029 GB, free: 78.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006138/2.181, allocations: 3.674 MB / 1.032 GB, free: 75.05 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/2.181, allocations: 0 / 1.032 GB, free: 75.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4158/2.597, allocations: 134.2 MB / 1.163 GB, free: 164.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/16.19, allocations: 6.234 kB / 1.163 GB, free: 164.7 MB / 0.5607 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