Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002467/0.002467, allocations: 213.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 230.5 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2367/0.2367, allocations: 46.95 MB / 361.6 MB, free: 3.934 MB / 286.1 MB " [Timeout remaining time 180] 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.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 79.88 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3424, allocations: 66.09 MB / 0.5614 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01725/0.3597, allocations: 13.83 MB / 0.5749 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.3722, allocations: 5.203 MB / 0.58 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002986/0.3752, allocations: 131.3 kB / 0.5801 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01082/0.386, allocations: 4.977 MB / 0.585 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00776/0.3937, allocations: 2.68 MB / 0.5876 GB, free: 9.148 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003553/0.3973, allocations: 1.396 MB / 0.589 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01236/0.4097, allocations: 8.258 MB / 0.597 GB, free: 15.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008035/0.4177, allocations: 5.209 MB / 0.6021 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005491/0.4232, allocations: 2.824 MB / 0.6049 GB, free: 7.344 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007054/0.4302, allocations: 4.02 MB / 0.6088 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002195/0.4324, allocations: 0.6367 MB / 0.6094 GB, free: 2.676 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004548/0.437, allocations: 1.685 MB / 0.6111 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005715/0.4427, allocations: 3.444 MB / 0.6144 GB, free: 13.53 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007223/0.4499, allocations: 2.875 MB / 0.6173 GB, free: 10.64 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01747/0.4674, allocations: 12.24 MB / 0.6292 GB, free: 14.36 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4674, allocations: 4 kB / 0.6292 GB, free: 14.35 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4674, allocations: 4 kB / 0.6292 GB, free: 14.35 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003771/0.4678, allocations: 0 / 0.6292 GB, free: 14.35 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.0231/0.4909, allocations: 8.294 MB / 0.6373 GB, free: 5.977 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.4909, allocations: 8.031 kB / 0.6373 GB, free: 5.969 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002444/0.4912, allocations: 193.8 kB / 0.6375 GB, free: 5.777 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003224/0.4944, allocations: 1.156 MB / 0.6386 GB, free: 4.609 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05396/0.5483, allocations: 8.406 MB / 0.6468 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.5632, allocations: 5.812 MB / 0.6525 GB, free: 6.289 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004337/0.5636, allocations: 385.8 kB / 0.6529 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002071/0.5657, allocations: 0.5153 MB / 0.6534 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/0.603, allocations: 15.55 MB / 0.6686 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000293/0.6032, allocations: 67.52 kB / 0.6686 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001464/0.6047, allocations: 235.8 kB / 0.6689 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004367/0.6091, allocations: 2.54 MB / 0.6713 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/0.6374, allocations: 12.91 MB / 0.6839 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3545/0.9919, allocations: 53.73 MB / 0.7364 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01593/1.008, allocations: 5.65 MB / 0.7419 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00365/1.011, allocations: 3.107 MB / 0.745 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0138/1.025, allocations: 9.06 MB / 0.7538 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/1.025, allocations: 64 kB / 0.7539 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=246): time 5.149e-06/1.025, allocations: 0 / 0.7539 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.12/1.145, allocations: 40.05 MB / 0.793 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/1.145, allocations: 243.8 kB / 0.7932 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005637/1.151, allocations: 5.747 MB / 0.7988 GB, free: 97.62 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004699/1.151, allocations: 77.7 kB / 0.7989 GB, free: 97.54 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001739/1.153, allocations: 4.611 MB / 0.8034 GB, free: 93.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009627/1.154, allocations: 1.303 MB / 0.8047 GB, free: 91.98 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001776/1.156, allocations: 1.636 MB / 0.8063 GB, free: 90.33 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.671e-05/1.156, allocations: 313.1 kB / 0.8066 GB, free: 90.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004053/1.16, allocations: 3.776 MB / 0.8103 GB, free: 86.24 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005488/1.166, allocations: 8.384 MB / 0.8185 GB, free: 75.67 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/1.178, allocations: 13.03 MB / 0.8312 GB, free: 60.46 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.178, allocations: 44 kB / 0.8312 GB, free: 60.42 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.02769/1.205, allocations: 15.45 MB / 0.8463 GB, free: 44.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000127/1.206, allocations: 74.5 kB / 0.8464 GB, free: 44.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002131/1.206, allocations: 156 kB / 0.8465 GB, free: 44.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01264/1.218, allocations: 4.099 MB / 0.8505 GB, free: 40.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005777/1.224, allocations: 1.797 MB / 0.8523 GB, free: 38.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02472/1.249, allocations: 20.59 MB / 0.8724 GB, free: 18.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006315/1.255, allocations: 0.4975 MB / 0.8729 GB, free: 17.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009949/1.256, allocations: 468 kB / 0.8733 GB, free: 17.14 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 (967): * Single equations (assignments): 963 * 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.004372/1.261, allocations: 3.107 MB / 0.8764 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.262, allocations: 0.551 MB / 0.8769 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01781/1.279, allocations: 9.588 MB / 0.8863 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-05/1.28, allocations: 35.52 kB / 0.8863 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/1.28, allocations: 16 kB / 0.8863 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.894e-05/1.28, allocations: 15.94 kB / 0.8863 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0398/1.319, allocations: 18.75 MB / 0.9046 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-05/1.319, allocations: 4 kB / 0.9046 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002491/1.322, allocations: 0.4953 MB / 0.9051 GB, free: 376 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/1.335, allocations: 3.647 MB / 0.9087 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006369/1.336, allocations: 67.27 kB / 0.9087 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02947/1.365, allocations: 18.13 MB / 0.9264 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-05/1.365, allocations: 11.94 kB / 0.9265 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02889/1.394, allocations: 14.22 MB / 0.9403 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/1.396, allocations: 0.5234 MB / 0.9409 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001584/1.397, allocations: 60 kB / 0.9409 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/1.401, allocations: 231.7 kB / 0.9411 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009747/1.402, allocations: 234.2 kB / 0.9414 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004192/1.402, allocations: 85.02 kB / 0.9414 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.007614/1.41, allocations: 3.643 MB / 0.945 GB, free: 7.242 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.9e-07/1.41, allocations: 3.469 kB / 0.945 GB, free: 7.242 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.009724/1.42, allocations: 1.688 MB / 0.9466 GB, free: 5.555 MB / 0.6231 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 (257): * Single equations (assignments): 253 * 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.03116/1.451, allocations: 14.97 MB / 0.9613 GB, free: 6.395 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01649/1.467, allocations: 8.852 MB / 0.9699 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/1.467, allocations: 7.938 kB / 0.9699 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006078/1.473, allocations: 3.323 MB / 0.9732 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005599/1.479, allocations: 0.7818 MB / 0.9739 GB, free: 9.41 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.357/1.836, allocations: 78.68 MB / 1.051 GB, free: 172.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004609/1.84, allocations: 4.332 MB / 1.055 GB, free: 168.2 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005338/1.846, allocations: 2.597 MB / 1.058 GB, free: 165.7 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004584/1.85, allocations: 3.077 MB / 1.061 GB, free: 162.6 MB / 0.6544 GB Notification: Performance of SimCode: time 1.694e-06/1.85, allocations: 4 kB / 1.061 GB, free: 162.6 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.166/2.016, allocations: 130.4 MB / 1.188 GB, free: 33 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.54/30.56, allocations: 7.953 kB / 1.188 GB, free: 33 MB / 0.6544 GB " [Timeout remaining time 629] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 36.11201416095719]