Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.001497/0.001497, allocations: 103.1 kB / 21.96 MB, free: 5.219 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.001604/0.001604, allocations: 214 kB / 25.26 MB, free: 3.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 207.7 MB / 236.1 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 59.91 kB / 348 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2345, allocations: 49.15 MB / 397.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.006212/0.2407, allocations: 6.31 MB / 403.4 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004507/0.2452, allocations: 2.989 MB / 406.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.2458, allocations: 34.66 kB / 406.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.2473, allocations: 0.7786 MB / 407.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002437/0.2497, allocations: 1.348 MB / 408.6 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008532/0.2505, allocations: 0.499 MB / 409.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.253, allocations: 2.539 MB / 411.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.254, allocations: 1.093 MB / 412.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.255, allocations: 0.7793 MB / 413.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001592/0.2566, allocations: 1.223 MB / 414.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002897/0.2569, allocations: 135.6 kB / 414.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.2584, allocations: 0.7852 MB / 415.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009438/0.2593, allocations: 1.033 MB / 416.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009595/0.2603, allocations: 0.8645 MB / 417.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00438/0.2647, allocations: 3.998 MB / 421.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2647, allocations: 0 / 421.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2647, allocations: 3.938 kB / 421.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.463e-05/0.2647, allocations: 1.531 kB / 421.5 MB, free: 10.52 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.005184/0.2699, allocations: 2.914 MB / 424.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.27, allocations: 15.98 kB / 424.5 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.152e-05/0.27, allocations: 55.16 kB / 424.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00051/0.2705, allocations: 453.9 kB / 425 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00586/0.2764, allocations: 1.664 MB / 426.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.2794, allocations: 1.742 MB / 428.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.2795, allocations: 118.8 kB / 428.5 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003529/0.2798, allocations: 155.8 kB / 428.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008794/0.2886, allocations: 6.359 MB / 435 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.769e-05/0.2887, allocations: 39.73 kB / 435 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/0.2889, allocations: 79.89 kB / 435.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002472/0.2914, allocations: 1.437 MB / 436.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009672/0.3011, allocations: 5.673 MB / 442.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03002/0.3311, allocations: 25.29 MB / 467.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004053/0.3352, allocations: 1.75 MB / 469.3 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/0.3364, allocations: 0.9402 MB / 470.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.36e-05/0.3365, allocations: 8 kB / 470.2 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.3365, allocations: 46.5 kB / 470.3 MB, free: 8.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.868e-06/0.3365, allocations: 0 / 470.3 MB, free: 8.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.02077/0.3573, allocations: 8.584 MB / 478.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.3574, allocations: 140.5 kB / 479 MB, free: 15.58 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004102/0.3615, allocations: 2.852 MB / 481.8 MB, free: 12.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.3616, allocations: 41.7 kB / 481.9 MB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.3632, allocations: 2.174 MB / 484.1 MB, free: 10.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000461/0.3637, allocations: 460.6 kB / 484.5 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/0.3648, allocations: 0.8815 MB / 485.4 MB, free: 9.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3649, allocations: 301.1 kB / 485.7 MB, free: 8.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.367, allocations: 1.41 MB / 487.1 MB, free: 7.406 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004403/0.3714, allocations: 4.234 MB / 491.3 MB, free: 1.742 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007495/0.3789, allocations: 6.119 MB / 497.5 MB, free: 10.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.095e-05/0.379, allocations: 28 kB / 497.5 MB, free: 10.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01072/0.3897, allocations: 6.094 MB / 0.4918 GB, free: 4.078 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.224e-05/0.3898, allocations: 56.86 kB / 0.4918 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.937e-05/0.3899, allocations: 100 kB / 0.4919 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/0.3921, allocations: 0.7928 MB / 0.4927 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.3948, allocations: 0.9825 MB / 0.4937 GB, free: 2.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005878/0.4006, allocations: 4.334 MB / 0.4979 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/0.4032, allocations: 247.6 kB / 0.4981 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003689/0.4036, allocations: 284 kB / 0.4984 GB, free: 13.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (533): * Single equations (assignments): 529 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001984/0.4056, allocations: 1.371 MB / 0.4997 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.406, allocations: 246.4 kB / 0.5 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003793/0.4097, allocations: 1.853 MB / 0.5018 GB, free: 9.676 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.4098, allocations: 12 kB / 0.5018 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4098, allocations: 7.938 kB / 0.5018 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.4098, allocations: 3.984 kB / 0.5018 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008288/0.4181, allocations: 4.529 MB / 0.5062 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4181, allocations: 0 / 0.5062 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.4187, allocations: 131.8 kB / 0.5063 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.4207, allocations: 0.6483 MB / 0.507 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-05/0.4208, allocations: 27.97 kB / 0.507 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00515/0.4259, allocations: 3.814 MB / 0.5107 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4259, allocations: 0 / 0.5107 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005913/0.4318, allocations: 3.703 MB / 0.5143 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009255/0.4328, allocations: 374.2 kB / 0.5147 GB, free: 12.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.433, allocations: 23.94 kB / 0.5147 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008172/0.4338, allocations: 59.91 kB / 0.5148 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.434, allocations: 67.67 kB / 0.5149 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.4341, allocations: 28 kB / 0.5149 GB, free: 12.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002913/0.437, allocations: 1.77 MB / 0.5166 GB, free: 10.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.437, allocations: 0 / 0.5166 GB, free: 10.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003209/0.4402, allocations: 0.6445 MB / 0.5172 GB, free: 9.629 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (75): * Single equations (assignments): 71 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006252/0.4464, allocations: 4.319 MB / 0.5215 GB, free: 5.273 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005391/0.4518, allocations: 3.296 MB / 0.5247 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4518, allocations: 0 / 0.5247 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.4531, allocations: 0.8577 MB / 0.5255 GB, free: 1.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.4547, allocations: 261.8 kB / 0.5258 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2005/0.6553, allocations: 30.32 MB / 0.5554 GB, free: 150.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/0.6572, allocations: 1.622 MB / 0.557 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002944/0.6602, allocations: 1.396 MB / 0.5583 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.6613, allocations: 1.052 MB / 0.5593 GB, free: 150.1 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6613, allocations: 3.312 kB / 0.5593 GB, free: 150.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07109/0.7324, allocations: 43.57 MB / 0.6019 GB, free: 118.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.27/20, allocations: 11.94 kB / 0.6019 GB, free: 118.7 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.761397698079236]