Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.00164, allocations: 114.4 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 187.8 kB / 18.71 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2174/0.2174, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 56.14 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3655, allocations: 60.83 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.0183/0.3838, allocations: 16.01 MB / 0.534 GB, free: 7.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01422/0.3981, allocations: 5.449 MB / 0.5394 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004879/0.403, allocations: 107.3 kB / 0.5395 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009628/0.4127, allocations: 5.136 MB / 0.5445 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007143/0.4198, allocations: 2.618 MB / 0.547 GB, free: 14.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003432/0.4233, allocations: 1.394 MB / 0.5484 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.4352, allocations: 8.104 MB / 0.5563 GB, free: 5.215 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009138/0.4444, allocations: 7.032 MB / 0.5632 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004878/0.4493, allocations: 2.761 MB / 0.5659 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006196/0.4555, allocations: 3.759 MB / 0.5695 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002051/0.4576, allocations: 0.6367 MB / 0.5702 GB, free: 6.914 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005816/0.4635, allocations: 1.795 MB / 0.5719 GB, free: 5.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005447/0.4689, allocations: 3.375 MB / 0.5752 GB, free: 1.734 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007447/0.4764, allocations: 3.808 MB / 0.5789 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/0.4927, allocations: 12.19 MB / 0.5908 GB, free: 1.676 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.4927, allocations: 0 / 0.5908 GB, free: 1.676 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4927, allocations: 0 / 0.5908 GB, free: 1.676 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005225/0.4933, allocations: 4 kB / 0.5908 GB, free: 1.672 MB / 446.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.02367/0.5169, allocations: 8.201 MB / 0.5989 GB, free: 9.383 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.517, allocations: 12.03 kB / 0.5989 GB, free: 9.371 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003276/0.5203, allocations: 1.156 MB / 0.6 GB, free: 8.203 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05755/0.5779, allocations: 8.362 MB / 0.6082 GB, free: 15.82 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01592/0.5938, allocations: 6.201 MB / 0.6142 GB, free: 9.539 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004112/0.5943, allocations: 382 kB / 0.6146 GB, free: 9.164 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/0.5966, allocations: 0.5152 MB / 0.6151 GB, free: 8.648 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04845/0.6451, allocations: 15.39 MB / 0.6301 GB, free: 8.355 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004433/0.6456, allocations: 75.36 kB / 0.6302 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002663/0.6483, allocations: 239.8 kB / 0.6304 GB, free: 8.047 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006067/0.6544, allocations: 2.536 MB / 0.6329 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03617/0.6906, allocations: 12.88 MB / 0.6455 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09206/0.7827, allocations: 56.91 MB / 0.701 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01874/0.8015, allocations: 6.307 MB / 0.7072 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004815/0.8064, allocations: 3.317 MB / 0.7104 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2995/1.106, allocations: 11.28 MB / 0.7215 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.966e-05/1.106, allocations: 62.64 kB / 0.7215 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 6.983e-06/1.106, allocations: 0 / 0.7215 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1351/1.241, allocations: 39.92 MB / 0.7605 GB, free: 142.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/1.241, allocations: 247.8 kB / 0.7607 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/1.252, allocations: 5.737 MB / 0.7663 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009427/1.253, allocations: 75.86 kB / 0.7664 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002403/1.255, allocations: 4.447 MB / 0.7708 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001566/1.257, allocations: 1.239 MB / 0.772 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002362/1.259, allocations: 1.627 MB / 0.7735 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.707e-05/1.259, allocations: 301.1 kB / 0.7738 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004594/1.264, allocations: 3.776 MB / 0.7775 GB, free: 125 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0069/1.271, allocations: 8.291 MB / 0.7856 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/1.283, allocations: 13.01 MB / 0.7983 GB, free: 99.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/1.283, allocations: 44 kB / 0.7984 GB, free: 99.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02908/1.312, allocations: 15.46 MB / 0.8135 GB, free: 83.64 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/1.313, allocations: 72 kB / 0.8135 GB, free: 83.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/1.313, allocations: 163.9 kB / 0.8137 GB, free: 83.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01224/1.325, allocations: 4.092 MB / 0.8177 GB, free: 79.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005829/1.331, allocations: 1.805 MB / 0.8194 GB, free: 77.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02727/1.358, allocations: 20.92 MB / 0.8399 GB, free: 56.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00691/1.365, allocations: 0.4914 MB / 0.8404 GB, free: 55.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.367, allocations: 464 kB / 0.8408 GB, free: 55.52 MB / 0.5606 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.005683/1.372, allocations: 3.118 MB / 0.8438 GB, free: 52.39 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.374, allocations: 0.5207 MB / 0.8444 GB, free: 51.86 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01884/1.393, allocations: 9.617 MB / 0.8537 GB, free: 42.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.136e-05/1.393, allocations: 39.83 kB / 0.8538 GB, free: 42.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/1.393, allocations: 15 kB / 0.8538 GB, free: 42.13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.524e-05/1.393, allocations: 23.94 kB / 0.8538 GB, free: 42.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03828/1.431, allocations: 19.59 MB / 0.873 GB, free: 22.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.1e-05/1.431, allocations: 11.83 kB / 0.873 GB, free: 22.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002361/1.434, allocations: 496 kB / 0.8734 GB, free: 21.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01128/1.445, allocations: 3.653 MB / 0.877 GB, free: 18.22 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006593/1.446, allocations: 64 kB / 0.8771 GB, free: 18.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02193/1.468, allocations: 18.42 MB / 0.8951 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.407e-06/1.468, allocations: 11.94 kB / 0.8951 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02897/1.497, allocations: 14.22 MB / 0.9089 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002596/1.499, allocations: 0.5645 MB / 0.9095 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002045/1.501, allocations: 56 kB / 0.9096 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004394/1.506, allocations: 231.1 kB / 0.9098 GB, free: 308 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001231/1.507, allocations: 222.2 kB / 0.91 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006495/1.508, allocations: 88.05 kB / 0.9101 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007681/1.515, allocations: 3.647 MB / 0.9136 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.21e-07/1.515, allocations: 0 / 0.9136 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009705/1.525, allocations: 1.707 MB / 0.9153 GB, free: 10.68 MB / 0.5919 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.03158/1.557, allocations: 14.96 MB / 0.9299 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01634/1.573, allocations: 9.251 MB / 0.9389 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/1.573, allocations: 4.188 kB / 0.9389 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.281/1.854, allocations: 3.631 MB / 0.9425 GB, free: 220.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/1.859, allocations: 0.7742 MB / 0.9432 GB, free: 220.6 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.125/1.984, allocations: 78.36 MB / 1.02 GB, free: 159.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006906/1.991, allocations: 4.822 MB / 1.024 GB, free: 154.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005659/1.997, allocations: 2.59 MB / 1.027 GB, free: 151.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003786/2.001, allocations: 3.073 MB / 1.03 GB, free: 148.9 MB / 0.6231 GB Notification: Performance of SimCode: time 7.72e-07/2.001, allocations: 0 / 1.03 GB, free: 148.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1768/2.178, allocations: 130.3 MB / 1.157 GB, free: 19.12 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.8/39.98, allocations: 2.812 kB / 1.157 GB, free: 19.12 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches