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.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 3.2.3+maint.om/package.mo", uses=false) 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.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(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",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.001703/0.001703, allocations: 114 kB / 17.28 MB, free: 6.219 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.001953/0.001953, allocations: 189.3 kB / 18.2 MB, free: 5.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 224 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 55.92 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.09187, allocations: 46.62 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01385/0.1058, allocations: 14.12 MB / 341 MB, free: 6.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00832/0.1141, allocations: 4.265 MB / 345.3 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002453/0.1166, allocations: 55.88 kB / 345.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.1186, allocations: 0.7282 MB / 346 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003027/0.1217, allocations: 1.231 MB / 347.3 MB, free: 228 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.1227, allocations: 471.2 kB / 347.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003045/0.1258, allocations: 2.567 MB / 350.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.1273, allocations: 1.239 MB / 351.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.1283, allocations: 0.7744 MB / 352.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.1297, allocations: 1.25 MB / 353.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002528/0.1299, allocations: 136 kB / 353.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.1313, allocations: 0.8736 MB / 354.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008388/0.1321, allocations: 1.036 MB / 355.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009437/0.1331, allocations: 1.219 MB / 356.8 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003427/0.1365, allocations: 3.851 MB / 360.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1366, allocations: 0 / 360.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1366, allocations: 0 / 360.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.698e-05/0.1366, allocations: 0 / 360.7 MB, free: 2.766 MB / 302.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.00476/0.1414, allocations: 2.906 MB / 363.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1415, allocations: 8.031 kB / 363.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004704/0.1419, allocations: 450 kB / 364 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005732/0.1477, allocations: 1.651 MB / 365.7 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/0.1508, allocations: 1.776 MB / 367.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.151, allocations: 122.9 kB / 367.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/0.1513, allocations: 151.9 kB / 367.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009169/0.1605, allocations: 6.355 MB / 374.1 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.801e-05/0.1606, allocations: 31.75 kB / 374.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.1609, allocations: 79.89 kB / 374.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00223/0.1631, allocations: 1.441 MB / 375.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1655/0.3286, allocations: 5.667 MB / 381.3 MB, free: 50.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02569/0.3543, allocations: 26.31 MB / 407.6 MB, free: 30.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/0.3581, allocations: 2.266 MB / 409.9 MB, free: 29.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3592, allocations: 1.019 MB / 410.9 MB, free: 28.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.532e-05/0.3593, allocations: 22.61 kB / 410.9 MB, free: 28.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.3593, allocations: 42.38 kB / 410.9 MB, free: 28.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.788e-06/0.3593, allocations: 2.062 kB / 411 MB, free: 28.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01725/0.3766, allocations: 8.636 MB / 419.6 MB, free: 21.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.3766, allocations: 140.5 kB / 419.7 MB, free: 21.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002635/0.3793, allocations: 2.844 MB / 422.6 MB, free: 18.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.3794, allocations: 41.7 kB / 422.6 MB, free: 18.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007317/0.3801, allocations: 2.073 MB / 424.7 MB, free: 16.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000272/0.3804, allocations: 445.3 kB / 425.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007396/0.3812, allocations: 0.8768 MB / 426 MB, free: 14.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.367e-05/0.3812, allocations: 305.1 kB / 426.3 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.3827, allocations: 1.41 MB / 427.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002281/0.385, allocations: 4.23 MB / 431.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004228/0.3893, allocations: 6.134 MB / 438.1 MB, free: 28 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.383e-05/0.3893, allocations: 28.2 kB / 438.1 MB, free: 16 MB / 334.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009267/0.3986, allocations: 6.09 MB / 444.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.78e-05/0.3987, allocations: 48 kB / 444.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.969e-05/0.3988, allocations: 100 kB / 444.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002104/0.4009, allocations: 0.7962 MB / 445.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/0.4034, allocations: 0.9902 MB / 446.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005123/0.4085, allocations: 4.462 MB / 450.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/0.4111, allocations: 251.2 kB / 450.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/0.4114, allocations: 276 kB / 451.1 MB, free: 2.863 MB / 334.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.001572/0.413, allocations: 1.375 MB / 452.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.4133, allocations: 239.3 kB / 452.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/0.4168, allocations: 1.853 MB / 454.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/0.4168, allocations: 12 kB / 454.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.4168, allocations: 8 kB / 454.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.4168, allocations: 3.984 kB / 454.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007467/0.4243, allocations: 4.806 MB / 459.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4243, allocations: 4 kB / 459.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005762/0.4249, allocations: 143.8 kB / 459.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.4268, allocations: 0.6524 MB / 460.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.937e-05/0.4269, allocations: 16 kB / 460.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0045/0.4314, allocations: 3.945 MB / 464.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4314, allocations: 0 / 464.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005163/0.4366, allocations: 3.692 MB / 467.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009245/0.4376, allocations: 445.3 kB / 468.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000239/0.4378, allocations: 12 kB / 468.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008442/0.4387, allocations: 67.97 kB / 468.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.4388, allocations: 55.86 kB / 468.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.5e-05/0.4389, allocations: 28 kB / 468.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002379/0.4413, allocations: 1.778 MB / 470.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4413, allocations: 0 / 470.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003143/0.4444, allocations: 0.642 MB / 470.8 MB, free: 14.82 MB / 366.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.00574/0.4502, allocations: 4.316 MB / 475.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00547/0.4557, allocations: 3.619 MB / 478.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4557, allocations: 480 / 478.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.4569, allocations: 0.9475 MB / 479.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.4586, allocations: 255.9 kB / 480 MB, free: 5.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04442/0.5031, allocations: 33.56 MB / 0.5015 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.5052, allocations: 2.188 MB / 0.5036 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003058/0.5083, allocations: 1.4 MB / 0.505 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/0.5096, allocations: 1.05 MB / 0.506 GB, free: 10.4 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5096, allocations: 0 / 0.506 GB, free: 10.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.209/0.7186, allocations: 44.53 MB / 0.5495 GB, free: 148.1 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.7188, allocations: 228.4 kB / 0.5497 GB, free: 147.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.012/3.731, allocations: 1.531 kB / 0.5497 GB, free: 147.9 MB / 430.1 MB (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 --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) 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches