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.001156/0.001156, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001155/0.001155, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.3 MB, free: 15.24 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.2251/0.2251, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 60.22 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1314, allocations: 60.82 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01789/0.1494, allocations: 16.01 MB / 485.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.1642, allocations: 5.452 MB / 490.8 MB, free: 8.754 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004416/0.1687, allocations: 111.6 kB / 490.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.1801, allocations: 5.14 MB / 496.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008385/0.1885, allocations: 2.614 MB / 498.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004981/0.1935, allocations: 1.396 MB / 0.4883 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01404/0.2076, allocations: 8.083 MB / 0.4962 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01377/0.2214, allocations: 7.055 MB / 0.5031 GB, free: 228 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2572/0.4787, allocations: 2.763 MB / 0.5058 GB, free: 19.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006066/0.4848, allocations: 3.74 MB / 0.5095 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002403/0.4872, allocations: 0.6341 MB / 0.5101 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004828/0.4921, allocations: 1.787 MB / 0.5118 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005571/0.4977, allocations: 3.331 MB / 0.5151 GB, free: 18.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007211/0.5049, allocations: 3.815 MB / 0.5188 GB, free: 17.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.5175, allocations: 11.91 MB / 0.5305 GB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.5176, allocations: 0 / 0.5305 GB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5176, allocations: 0 / 0.5305 GB, free: 12.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000386/0.518, allocations: 0 / 0.5305 GB, free: 12.98 MB / 382.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.02161/0.5396, allocations: 8.193 MB / 0.5385 GB, free: 7.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.5396, allocations: 7.938 kB / 0.5385 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002476/0.5421, allocations: 1.155 MB / 0.5396 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05189/0.594, allocations: 8.361 MB / 0.5478 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.6092, allocations: 6.085 MB / 0.5537 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004677/0.6097, allocations: 380.5 kB / 0.5541 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.6124, allocations: 0.5125 MB / 0.5546 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03746/0.6499, allocations: 15.4 MB / 0.5696 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002531/0.6502, allocations: 64.28 kB / 0.5697 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001159/0.6513, allocations: 236.4 kB / 0.5699 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004124/0.6555, allocations: 2.552 MB / 0.5724 GB, free: 7.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02743/0.6829, allocations: 12.87 MB / 0.5849 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07374/0.7567, allocations: 57.2 MB / 0.6408 GB, free: 1.355 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01682/0.7736, allocations: 6.31 MB / 0.647 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004429/0.778, allocations: 3.309 MB / 0.6502 GB, free: 7.574 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01775/0.7958, allocations: 11.27 MB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.7959, allocations: 67.47 kB / 0.6613 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=245): time 5.219e-06/0.7959, allocations: 0 / 0.6613 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=338): time 0.1265/0.9224, allocations: 39.91 MB / 0.7003 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.9225, allocations: 247.8 kB / 0.7005 GB, free: 3.723 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.182/1.105, allocations: 5.731 MB / 0.7061 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009782/1.106, allocations: 78.97 kB / 0.7062 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004261/1.11, allocations: 4.454 MB / 0.7105 GB, free: 180 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001997/1.112, allocations: 1.232 MB / 0.7117 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002803/1.115, allocations: 1.632 MB / 0.7133 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.279e-05/1.115, allocations: 302.8 kB / 0.7136 GB, free: 178 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005755/1.121, allocations: 3.764 MB / 0.7173 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008451/1.129, allocations: 8.306 MB / 0.7254 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/1.143, allocations: 13.01 MB / 0.7381 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001758/1.143, allocations: 46.22 kB / 0.7381 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03175/1.175, allocations: 15.46 MB / 0.7532 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003384/1.175, allocations: 72.44 kB / 0.7533 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004106/1.176, allocations: 156.2 kB / 0.7534 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01326/1.189, allocations: 4.111 MB / 0.7575 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006222/1.195, allocations: 1.797 MB / 0.7592 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02395/1.219, allocations: 20.94 MB / 0.7797 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006333/1.226, allocations: 0.489 MB / 0.7801 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/1.227, allocations: 465.4 kB / 0.7806 GB, free: 129.6 MB / 0.5294 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.004681/1.231, allocations: 3.113 MB / 0.7836 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/1.233, allocations: 0.5251 MB / 0.7841 GB, free: 126 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/1.249, allocations: 9.611 MB / 0.7935 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.754e-05/1.249, allocations: 36 kB / 0.7935 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/1.249, allocations: 19.94 kB / 0.7936 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.476e-05/1.249, allocations: 15.94 kB / 0.7936 GB, free: 116.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02966/1.279, allocations: 19.73 MB / 0.8128 GB, free: 96.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/1.279, allocations: 12.16 kB / 0.8129 GB, free: 96.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/1.281, allocations: 495.3 kB / 0.8133 GB, free: 95.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01017/1.291, allocations: 3.666 MB / 0.8169 GB, free: 92.18 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/1.291, allocations: 64 kB / 0.817 GB, free: 92.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/1.311, allocations: 18.42 MB / 0.835 GB, free: 73.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.311, allocations: 11.92 kB / 0.835 GB, free: 73.54 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/1.33, allocations: 14.21 MB / 0.8488 GB, free: 59.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.332, allocations: 0.5683 MB / 0.8494 GB, free: 58.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009433/1.333, allocations: 60 kB / 0.8495 GB, free: 58.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/1.335, allocations: 231.7 kB / 0.8497 GB, free: 58.26 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005606/1.336, allocations: 216.2 kB / 0.8499 GB, free: 58.05 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002235/1.336, allocations: 92 kB / 0.85 GB, free: 57.96 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004465/1.34, allocations: 3.647 MB / 0.8535 GB, free: 54.34 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.34, allocations: 4.938 kB / 0.8535 GB, free: 54.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005641/1.346, allocations: 1.692 MB / 0.8552 GB, free: 52.65 MB / 0.5294 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.01998/1.366, allocations: 14.96 MB / 0.8698 GB, free: 37.49 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01577/1.382, allocations: 12.63 MB / 0.8821 GB, free: 24.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.382, allocations: 0 / 0.8821 GB, free: 24.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003826/1.386, allocations: 3.629 MB / 0.8857 GB, free: 21.25 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004497/1.39, allocations: 0.7738 MB / 0.8864 GB, free: 20.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3099/1.7, allocations: 93.2 MB / 0.9775 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003863/1.704, allocations: 4.823 MB / 0.9822 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005146/1.709, allocations: 2.598 MB / 0.9847 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00283/1.712, allocations: 3.061 MB / 0.9877 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.453e-06/1.712, allocations: 3.281 kB / 0.9877 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5812/2.293, allocations: 133.1 MB / 1.118 GB, free: 173.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/16.67, allocations: 7.938 kB / 1.118 GB, free: 173.4 MB / 0.545 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