Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2376/0.2376, allocations: 46.92 MB / 357.1 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 63.91 kB / 0.4909 GB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1306, allocations: 65.99 MB / 0.5554 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01996/0.1506, allocations: 16.04 MB / 0.571 GB, free: 5.773 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01244/0.163, allocations: 5.475 MB / 0.5764 GB, free: 288 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003132/0.1661, allocations: 131.3 kB / 0.5765 GB, free: 156 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.1762, allocations: 5.175 MB / 0.5816 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007563/0.1838, allocations: 2.665 MB / 0.5842 GB, free: 8.285 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003535/0.1873, allocations: 1.396 MB / 0.5855 GB, free: 6.887 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.3025/0.4898, allocations: 8.239 MB / 0.5936 GB, free: 6.684 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009426/0.4993, allocations: 5.761 MB / 0.5992 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005921/0.5052, allocations: 2.812 MB / 0.6019 GB, free: 6.031 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007702/0.5129, allocations: 4.027 MB / 0.6059 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003195/0.5161, allocations: 0.6338 MB / 0.6065 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006061/0.5221, allocations: 1.82 MB / 0.6083 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006595/0.5287, allocations: 3.44 MB / 0.6116 GB, free: 5.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008634/0.5374, allocations: 3.788 MB / 0.6153 GB, free: 3.008 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01616/0.5535, allocations: 12.18 MB / 0.6272 GB, free: 13.12 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.5535, allocations: 4 kB / 0.6272 GB, free: 13.12 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5535, allocations: 0 / 0.6272 GB, free: 13.12 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004483/0.554, allocations: 0 / 0.6272 GB, free: 13.12 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: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02353/0.5775, allocations: 8.378 MB / 0.6354 GB, free: 7.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.5776, allocations: 9.344 kB / 0.6354 GB, free: 7.566 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003714/0.5813, allocations: 1.156 MB / 0.6365 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05731/0.6386, allocations: 8.403 MB / 0.6447 GB, free: 0.6914 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0155/0.6541, allocations: 5.895 MB / 0.6505 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004452/0.6545, allocations: 386.1 kB / 0.6509 GB, free: 10.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/0.6571, allocations: 0.507 MB / 0.6514 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03656/0.6937, allocations: 15.42 MB / 0.6664 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003289/0.694, allocations: 64.38 kB / 0.6665 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001756/0.6958, allocations: 232.3 kB / 0.6667 GB, free: 9.898 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004577/0.7003, allocations: 2.552 MB / 0.6692 GB, free: 7.383 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02995/0.7303, allocations: 12.88 MB / 0.6818 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09415/0.8244, allocations: 57.02 MB / 0.7375 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/0.845, allocations: 6.121 MB / 0.7434 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005377/0.8503, allocations: 3.099 MB / 0.7465 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02205/0.8724, allocations: 11.37 MB / 0.7576 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.969e-05/0.8725, allocations: 63.17 kB / 0.7576 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=245): time 5.451e-06/0.8725, allocations: 0 / 0.7576 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of matching and sorting (n=338): time 0.1521/1.025, allocations: 39.82 MB / 0.7965 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/1.025, allocations: 245.4 kB / 0.7968 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01045/1.035, allocations: 5.751 MB / 0.8024 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0009738/1.036, allocations: 73.7 kB / 0.8024 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.004204/1.04, allocations: 4.619 MB / 0.8069 GB, free: 9.348 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.002053/1.042, allocations: 1.29 MB / 0.8082 GB, free: 8.074 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004491/1.047, allocations: 1.639 MB / 0.8098 GB, free: 6.426 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001437/1.047, allocations: 305.1 kB / 0.8101 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006572/1.054, allocations: 3.772 MB / 0.8138 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01247/1.066, allocations: 8.303 MB / 0.8219 GB, free: 7.887 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02099/1.087, allocations: 13.02 MB / 0.8346 GB, free: 9.051 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002542/1.087, allocations: 44 kB / 0.8346 GB, free: 9.008 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.4224/1.51, allocations: 15.44 MB / 0.8497 GB, free: 218.6 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002342/1.51, allocations: 72.59 kB / 0.8498 GB, free: 218.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004927/1.51, allocations: 156.9 kB / 0.8499 GB, free: 218.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01777/1.528, allocations: 4.098 MB / 0.8539 GB, free: 218.6 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007804/1.536, allocations: 1.8 MB / 0.8557 GB, free: 218.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02944/1.565, allocations: 20.93 MB / 0.8761 GB, free: 210.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007474/1.573, allocations: 496.1 kB / 0.8766 GB, free: 210.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.575, allocations: 474 kB / 0.8771 GB, free: 210.1 MB / 0.6544 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.008372/1.583, allocations: 3.122 MB / 0.8801 GB, free: 208.9 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001758/1.585, allocations: 0.5546 MB / 0.8807 GB, free: 208.9 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02185/1.606, allocations: 9.561 MB / 0.89 GB, free: 205.7 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.333e-05/1.607, allocations: 32.72 kB / 0.89 GB, free: 205.7 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.012e-05/1.607, allocations: 16.84 kB / 0.89 GB, free: 205.7 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.24e-05/1.607, allocations: 15.47 kB / 0.8901 GB, free: 205.7 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0376/1.644, allocations: 19.57 MB / 0.9092 GB, free: 190.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.005e-05/1.644, allocations: 4 kB / 0.9092 GB, free: 190.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/1.647, allocations: 0.4898 MB / 0.9096 GB, free: 190.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01147/1.658, allocations: 3.656 MB / 0.9132 GB, free: 186.5 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007169/1.659, allocations: 64.94 kB / 0.9133 GB, free: 186.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02543/1.684, allocations: 18.44 MB / 0.9313 GB, free: 168 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.684, allocations: 9.312 kB / 0.9313 GB, free: 168 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02665/1.711, allocations: 14.2 MB / 0.9452 GB, free: 153.9 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/1.712, allocations: 0.5905 MB / 0.9457 GB, free: 153.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009826/1.713, allocations: 60 kB / 0.9458 GB, free: 153.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002716/1.716, allocations: 227.7 kB / 0.946 GB, free: 153.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007107/1.717, allocations: 231.8 kB / 0.9462 GB, free: 152.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002376/1.717, allocations: 91.98 kB / 0.9463 GB, free: 152.8 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.005/1.722, allocations: 3.639 MB / 0.9499 GB, free: 149.2 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7e-08/1.722, allocations: 4 kB / 0.9499 GB, free: 149.1 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.007503/1.73, allocations: 1.686 MB / 0.9515 GB, free: 147.5 MB / 0.6544 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.024/1.754, allocations: 14.94 MB / 0.9661 GB, free: 132.3 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01343/1.767, allocations: 8.825 MB / 0.9747 GB, free: 123.5 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/1.767, allocations: 4 kB / 0.9747 GB, free: 123.5 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004803/1.772, allocations: 3.328 MB / 0.978 GB, free: 120.2 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/1.777, allocations: 0.7745 MB / 0.9787 GB, free: 119.4 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1304/1.907, allocations: 78.52 MB / 1.055 GB, free: 33.96 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008617/1.916, allocations: 4.82 MB / 1.06 GB, free: 29.1 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.00576/1.922, allocations: 2.594 MB / 1.063 GB, free: 26.5 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004163/1.926, allocations: 3.057 MB / 1.066 GB, free: 23.44 MB / 0.6544 GB Notification: Performance of SimCode: time 1.333e-06/1.926, allocations: 4 kB / 1.066 GB, free: 23.44 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5071/2.433, allocations: 128.9 MB / 1.192 GB, free: 147.2 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.75/42.19, allocations: 17.58 kB / 1.192 GB, free: 147.2 MB / 0.6544 GB " [Timeout remaining time 618] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 46.691170011879876]