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.001799/0.001799, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002302/0.002302, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2261/0.2261, allocations: 46.94 MB / 360.9 MB, free: 4.262 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.002047/0.002047, allocations: 63.89 kB / 0.4961 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.389, allocations: 66.04 MB / 0.5606 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01939/0.4084, allocations: 16.08 MB / 0.5763 GB, free: 4.285 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.4217, allocations: 5.503 MB / 0.5817 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00362/0.4254, allocations: 131.3 kB / 0.5818 GB, free: 14.64 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01013/0.4355, allocations: 5.202 MB / 0.5869 GB, free: 9.422 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008451/0.4439, allocations: 2.665 MB / 0.5895 GB, free: 6.746 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003687/0.4476, allocations: 1.388 MB / 0.5909 GB, free: 5.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.461, allocations: 8.267 MB / 0.599 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007153/0.4682, allocations: 5.205 MB / 0.604 GB, free: 7.777 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004991/0.4732, allocations: 2.828 MB / 0.6068 GB, free: 4.941 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006426/0.4796, allocations: 4.02 MB / 0.6107 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001666/0.4813, allocations: 0.6328 MB / 0.6113 GB, free: 284 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/0.485, allocations: 1.826 MB / 0.6131 GB, free: 14.45 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003955/0.4889, allocations: 3.444 MB / 0.6165 GB, free: 10.99 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006759/0.4957, allocations: 3.788 MB / 0.6202 GB, free: 7.184 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01738/0.513, allocations: 12.19 MB / 0.6321 GB, free: 10.95 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.5131, allocations: 3.938 kB / 0.6321 GB, free: 10.95 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5131, allocations: 0 / 0.6321 GB, free: 10.95 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004416/0.5135, allocations: 0 / 0.6321 GB, free: 10.95 MB / 478.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.02486/0.5384, allocations: 8.298 MB / 0.6402 GB, free: 2.574 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.5384, allocations: 8.031 kB / 0.6402 GB, free: 2.566 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003439/0.5418, allocations: 1.152 MB / 0.6413 GB, free: 1.402 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05254/0.5944, allocations: 8.402 MB / 0.6495 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01428/0.6087, allocations: 5.8 MB / 0.6552 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003828/0.609, allocations: 390 kB / 0.6556 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002028/0.6111, allocations: 0.5075 MB / 0.6561 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03346/0.6445, allocations: 15.41 MB / 0.6711 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002825/0.6448, allocations: 71.41 kB / 0.6712 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009633/0.6458, allocations: 239.8 kB / 0.6714 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003979/0.6498, allocations: 2.544 MB / 0.6739 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02848/0.6782, allocations: 12.88 MB / 0.6865 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3643/1.043, allocations: 56.82 MB / 0.742 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01515/1.058, allocations: 5.649 MB / 0.7475 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00341/1.061, allocations: 3.114 MB / 0.7505 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/1.075, allocations: 9.738 MB / 0.76 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/1.075, allocations: 69.48 kB / 0.7601 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 5.41e-06/1.075, allocations: 0 / 0.7601 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1155/1.191, allocations: 39.44 MB / 0.7986 GB, free: 80.13 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/1.191, allocations: 247.1 kB / 0.7989 GB, free: 79.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006408/1.197, allocations: 5.744 MB / 0.8045 GB, free: 74.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007103/1.198, allocations: 77.7 kB / 0.8045 GB, free: 74.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002091/1.2, allocations: 4.616 MB / 0.809 GB, free: 69.86 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.201, allocations: 1.291 MB / 0.8103 GB, free: 68.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001774/1.203, allocations: 1.636 MB / 0.8119 GB, free: 66.94 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.958e-05/1.203, allocations: 301.1 kB / 0.8122 GB, free: 66.64 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/1.208, allocations: 3.776 MB / 0.8159 GB, free: 62.86 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005948/1.214, allocations: 8.305 MB / 0.824 GB, free: 52.39 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/1.225, allocations: 13.01 MB / 0.8367 GB, free: 37.31 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.696e-05/1.225, allocations: 48 kB / 0.8367 GB, free: 37.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02624/1.252, allocations: 15.44 MB / 0.8518 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.295e-05/1.252, allocations: 72 kB / 0.8519 GB, free: 21.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/1.252, allocations: 156.5 kB / 0.852 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/1.263, allocations: 4.097 MB / 0.856 GB, free: 17.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00532/1.269, allocations: 1.809 MB / 0.8578 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02666/1.295, allocations: 20.84 MB / 0.8781 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006818/1.302, allocations: 499.4 kB / 0.8786 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/1.304, allocations: 471.9 kB / 0.8791 GB, free: 9.738 MB / 0.5762 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.006927/1.311, allocations: 3.115 MB / 0.8821 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.312, allocations: 0.5549 MB / 0.8827 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/1.334, allocations: 9.564 MB / 0.892 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.77e-05/1.334, allocations: 32 kB / 0.892 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.944e-05/1.334, allocations: 16 kB / 0.892 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.831e-05/1.334, allocations: 15.94 kB / 0.8921 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04643/1.381, allocations: 19.55 MB / 0.9112 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.451e-05/1.381, allocations: 4 kB / 0.9112 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002566/1.383, allocations: 499.2 kB / 0.9116 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0132/1.397, allocations: 3.659 MB / 0.9152 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009251/1.398, allocations: 60 kB / 0.9153 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03057/1.428, allocations: 18.34 MB / 0.9332 GB, free: 1.98 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.151e-05/1.428, allocations: 11.94 kB / 0.9332 GB, free: 1.969 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03088/1.459, allocations: 14.2 MB / 0.9471 GB, free: 3.582 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/1.461, allocations: 0.5196 MB / 0.9476 GB, free: 3.059 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.462, allocations: 63.98 kB / 0.9476 GB, free: 2.996 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/1.465, allocations: 223.7 kB / 0.9478 GB, free: 2.777 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007095/1.466, allocations: 234.2 kB / 0.9481 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002613/1.466, allocations: 91.98 kB / 0.9481 GB, free: 2.457 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.006126/1.472, allocations: 3.643 MB / 0.9517 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9.1e-08/1.472, allocations: 0 / 0.9517 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.008589/1.481, allocations: 1.691 MB / 0.9534 GB, free: 13.16 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.02959/1.51, allocations: 14.94 MB / 0.9679 GB, free: 14.02 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01632/1.527, allocations: 8.825 MB / 0.9766 GB, free: 5.188 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/1.527, allocations: 4 kB / 0.9766 GB, free: 5.184 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.006039/1.533, allocations: 3.317 MB / 0.9798 GB, free: 1.852 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004964/1.538, allocations: 0.7696 MB / 0.9806 GB, free: 1.09 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4302/1.968, allocations: 78.65 MB / 1.057 GB, free: 215.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005705/1.973, allocations: 4.822 MB / 1.062 GB, free: 210.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.005584/1.979, allocations: 2.59 MB / 1.065 GB, free: 207.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004246/1.983, allocations: 3.061 MB / 1.068 GB, free: 204.9 MB / 0.6856 GB Notification: Performance of SimCode: time 1.553e-06/1.983, allocations: 4 kB / 1.068 GB, free: 204.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1825/2.166, allocations: 132.4 MB / 1.197 GB, free: 73.2 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 41/43.16, allocations: 6.734 kB / 1.197 GB, free: 73.2 MB / 0.6856 GB " [Timeout remaining time 617] (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: 47.56586895883083]