Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001413/0.001413, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.001589/0.001589, allocations: 212 kB / 24.47 MB, free: 3.547 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.517/1.517, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",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.002036/0.002036, allocations: 55.92 kB / 347.2 MB, free: 9.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2946, allocations: 49.16 MB / 396.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009656/0.3043, allocations: 9.079 MB / 405.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008092/0.3124, allocations: 3.689 MB / 409.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002314/0.3147, allocations: 65.88 kB / 409.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004643/0.3193, allocations: 2.027 MB / 411.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005567/0.3249, allocations: 1.692 MB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002117/0.327, allocations: 0.6952 MB / 413.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005689/0.3327, allocations: 3.384 MB / 417 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.3364, allocations: 2.223 MB / 419.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.3391, allocations: 1.298 MB / 420.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.3424, allocations: 1.798 MB / 422.3 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001057/0.3435, allocations: 264.1 kB / 422.6 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00281/0.3463, allocations: 1.014 MB / 423.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002293/0.3486, allocations: 1.616 MB / 425.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002805/0.3514, allocations: 1.394 MB / 426.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008265/0.3596, allocations: 6.008 MB / 432.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3597, allocations: 0 / 432.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3597, allocations: 0 / 432.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002046/0.3599, allocations: 0 / 432.6 MB, free: 14.78 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009477/0.3693, allocations: 4.187 MB / 436.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3694, allocations: 15.98 kB / 436.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001371/0.3708, allocations: 0.6374 MB / 437.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006937/0.3777, allocations: 1.89 MB / 439.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00577/0.3835, allocations: 2.31 MB / 441.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.3837, allocations: 213.2 kB / 441.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009684/0.3847, allocations: 271.8 kB / 442.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0208/0.4055, allocations: 10.03 MB / 452.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.4056, allocations: 35.69 kB / 452.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007794/0.4064, allocations: 131.9 kB / 452.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003418/0.4098, allocations: 1.86 MB / 454.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01978/0.4296, allocations: 8.517 MB / 462.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04743/0.477, allocations: 35.45 MB / 498.1 MB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009517/0.4865, allocations: 3.059 MB / 0.4894 GB, free: 8.293 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002531/0.489, allocations: 1.693 MB / 0.4911 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01191/0.501, allocations: 6.27 MB / 0.4972 GB, free: 276 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.519e-05/0.501, allocations: 47.56 kB / 0.4973 GB, free: 220 kB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.568e-06/0.501, allocations: 7.938 kB / 0.4973 GB, free: 212 kB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05391/0.5549, allocations: 17.51 MB / 0.5144 GB, free: 14.64 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.555, allocations: 149.5 kB / 0.5145 GB, free: 14.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005238/0.5602, allocations: 3.704 MB / 0.5181 GB, free: 10.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.5604, allocations: 53.7 kB / 0.5182 GB, free: 10.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00205/0.5625, allocations: 2.846 MB / 0.521 GB, free: 7.832 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000639/0.5631, allocations: 0.6746 MB / 0.5216 GB, free: 7.152 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001458/0.5646, allocations: 1.123 MB / 0.5227 GB, free: 6.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5647, allocations: 305.1 kB / 0.523 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003065/0.5678, allocations: 1.947 MB / 0.5249 GB, free: 3.766 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005828/0.5736, allocations: 5.37 MB / 0.5302 GB, free: 12.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009769/0.5834, allocations: 7.912 MB / 0.5379 GB, free: 3.059 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.379e-05/0.5834, allocations: 32 kB / 0.5379 GB, free: 3.027 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01566/0.5991, allocations: 8.157 MB / 0.5459 GB, free: 10.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/0.5992, allocations: 56 kB / 0.5459 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.5993, allocations: 120 kB / 0.546 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004129/0.6034, allocations: 1.296 MB / 0.5473 GB, free: 9.387 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003878/0.6073, allocations: 1.267 MB / 0.5485 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009763/0.6171, allocations: 6.391 MB / 0.5548 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/0.6212, allocations: 299.7 kB / 0.5551 GB, free: 1.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006665/0.6218, allocations: 344 kB / 0.5554 GB, free: 0.9883 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.1935/0.8154, allocations: 1.804 MB / 0.5572 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000714/0.8161, allocations: 321.8 kB / 0.5575 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007388/0.8235, allocations: 3.36 MB / 0.5608 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-05/0.8235, allocations: 19.22 kB / 0.5608 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.8235, allocations: 5.031 kB / 0.5608 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.8235, allocations: 9.344 kB / 0.5608 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/0.8378, allocations: 7.241 MB / 0.5679 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.8378, allocations: 1.25 kB / 0.5679 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.839, allocations: 241 kB / 0.5681 GB, free: 139.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003731/0.8428, allocations: 1.125 MB / 0.5692 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.8429, allocations: 27.72 kB / 0.5692 GB, free: 139.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007784/0.8507, allocations: 6.016 MB / 0.5751 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.8507, allocations: 1.531 kB / 0.5751 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008749/0.8594, allocations: 5.713 MB / 0.5807 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/0.8613, allocations: 0.5117 MB / 0.5812 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004311/0.8617, allocations: 27.88 kB / 0.5812 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.863, allocations: 86 kB / 0.5813 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.8632, allocations: 93.14 kB / 0.5814 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.8633, allocations: 43.02 kB / 0.5814 GB, free: 134.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002814/0.8662, allocations: 2.169 MB / 0.5835 GB, free: 133.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8662, allocations: 0 / 0.5835 GB, free: 133.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004051/0.8702, allocations: 0.9081 MB / 0.5844 GB, free: 133.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008252/0.8785, allocations: 6.357 MB / 0.5906 GB, free: 129.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006201/0.8847, allocations: 4.598 MB / 0.5951 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.8847, allocations: 0 / 0.5951 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.8865, allocations: 1.429 MB / 0.5965 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.8886, allocations: 370.9 kB / 0.5969 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0458/0.9344, allocations: 41.34 MB / 0.6372 GB, free: 76.67 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/0.9366, allocations: 2.309 MB / 0.6395 GB, free: 74.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003264/0.9398, allocations: 1.696 MB / 0.6411 GB, free: 72.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/0.9415, allocations: 1.589 MB / 0.6427 GB, free: 71.04 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9415, allocations: 0 / 0.6427 GB, free: 71.04 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.978/3.919, allocations: 61.1 MB / 0.7024 GB, free: 9.781 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.52/24.43, allocations: 7.766 kB / 0.7024 GB, free: 9.773 MB / 478.1 MB " [Timeout remaining time 635] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: 27.85915376385674]