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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 103.2 kB / 17.58 MB, free: 5.422 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.001152/0.001152, allocations: 187.9 kB / 18.5 MB, free: 4.516 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.389/1.389, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.00127/0.00127, allocations: 60.12 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09518, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01108/0.1063, allocations: 10.32 MB / 337.7 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007752/0.1141, allocations: 3.863 MB / 341.6 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/0.1161, allocations: 59.81 kB / 341.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004408/0.1205, allocations: 2.075 MB / 343.7 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004937/0.1255, allocations: 1.638 MB / 345.3 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002235/0.1278, allocations: 0.6939 MB / 346 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005502/0.1333, allocations: 3.385 MB / 349.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004545/0.1379, allocations: 2.697 MB / 352.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.1409, allocations: 1.265 MB / 353.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00316/0.1441, allocations: 1.768 MB / 355.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.1454, allocations: 260 kB / 355.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.1485, allocations: 1.112 MB / 356.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002329/0.1509, allocations: 1.574 MB / 358.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003483/0.1544, allocations: 1.875 MB / 360 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008707/0.1631, allocations: 5.736 MB / 365.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.1631, allocations: 0 / 365.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1632, allocations: 4 kB / 365.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002685/0.1634, allocations: 0 / 365.7 MB, free: 13.88 MB / 318.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.01292/0.1764, allocations: 4.157 MB / 369.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.1764, allocations: 15.97 kB / 369.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001879/0.1783, allocations: 0.6373 MB / 370.5 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00702/0.1854, allocations: 1.875 MB / 372.4 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004504/0.1899, allocations: 2.323 MB / 374.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.1901, allocations: 209.2 kB / 374.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007829/0.1909, allocations: 267.9 kB / 375.2 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1939/0.3847, allocations: 9.974 MB / 385.1 MB, free: 46.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.3849, allocations: 38.91 kB / 385.2 MB, free: 46.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004386/0.3854, allocations: 132.5 kB / 385.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003814/0.3892, allocations: 1.855 MB / 387.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4068, allocations: 8.536 MB / 395.7 MB, free: 43.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03482/0.4417, allocations: 36.86 MB / 432.6 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008805/0.4506, allocations: 3.877 MB / 436.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00224/0.4528, allocations: 1.811 MB / 438.3 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01214/0.465, allocations: 7.536 MB / 445.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.536e-05/0.4652, allocations: 51.56 kB / 445.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 6.652e-06/0.4652, allocations: 0 / 445.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.05727/0.5225, allocations: 17.49 MB / 463.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.895e-05/0.5226, allocations: 145.5 kB / 463.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005671/0.5283, allocations: 3.494 MB / 467 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003123/0.5286, allocations: 45.7 kB / 467 MB, free: 4.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002065/0.5307, allocations: 2.744 MB / 469.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.5317, allocations: 0.6441 MB / 470.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002095/0.5338, allocations: 1.107 MB / 471.5 MB, free: 340 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.534, allocations: 301.1 kB / 471.8 MB, free: 36 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003452/0.5374, allocations: 1.947 MB / 473.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006192/0.5436, allocations: 5.365 MB / 479.1 MB, free: 7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009846/0.5535, allocations: 7.918 MB / 487 MB, free: 13.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/0.5537, allocations: 36 kB / 487.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01718/0.5709, allocations: 8.165 MB / 495.2 MB, free: 5.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.5711, allocations: 56 kB / 495.3 MB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002432/0.5714, allocations: 120 kB / 495.4 MB, free: 5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004465/0.5758, allocations: 1.304 MB / 496.7 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004225/0.5801, allocations: 1.252 MB / 498 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009374/0.5895, allocations: 6.554 MB / 0.4927 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004459/0.594, allocations: 299.6 kB / 0.493 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00098/0.595, allocations: 344 kB / 0.4933 GB, free: 11.11 MB / 398.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.003853/0.5988, allocations: 1.807 MB / 0.4951 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008788/0.5997, allocations: 304.1 kB / 0.4954 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007542/0.6073, allocations: 3.366 MB / 0.4986 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.75e-05/0.6074, allocations: 32.38 kB / 0.4987 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.6074, allocations: 4 kB / 0.4987 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/0.6074, allocations: 3.984 kB / 0.4987 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0169/0.6243, allocations: 7.613 MB / 0.5061 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/0.6244, allocations: 0 / 0.5061 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.6256, allocations: 243.6 kB / 0.5064 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003887/0.6295, allocations: 1.12 MB / 0.5074 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002442/0.6298, allocations: 32 kB / 0.5075 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009135/0.6389, allocations: 6.17 MB / 0.5135 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.639, allocations: 4.031 kB / 0.5135 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.6496, allocations: 5.709 MB / 0.5191 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/0.6515, allocations: 0.5672 MB / 0.5196 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008593/0.6523, allocations: 27.98 kB / 0.5197 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.6545, allocations: 91.88 kB / 0.5197 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.6549, allocations: 92.83 kB / 0.5198 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/0.6551, allocations: 47.92 kB / 0.5199 GB, free: 15.58 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004473/0.6596, allocations: 2.162 MB / 0.522 GB, free: 13.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6596, allocations: 0 / 0.522 GB, free: 13.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005161/0.6648, allocations: 0.9129 MB / 0.5229 GB, free: 12.52 MB / 430.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.01105/0.6758, allocations: 6.365 MB / 0.5291 GB, free: 6.121 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01042/0.6863, allocations: 5.533 MB / 0.5345 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.6864, allocations: 0 / 0.5345 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1735/0.8599, allocations: 1.526 MB / 0.536 GB, free: 150.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.8625, allocations: 355.7 kB / 0.5363 GB, free: 150.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06141/0.9239, allocations: 45.49 MB / 0.5808 GB, free: 114.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/0.9265, allocations: 2.855 MB / 0.5835 GB, free: 111.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00348/0.93, allocations: 1.703 MB / 0.5852 GB, free: 110.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001502/0.9315, allocations: 1.593 MB / 0.5868 GB, free: 108.6 MB / 430.1 MB Notification: Performance of SimCode: time 5.41e-07/0.9315, allocations: 0 / 0.5868 GB, free: 108.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09565/1.027, allocations: 63.76 MB / 0.649 GB, free: 44.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.68, allocations: 7.812 kB / 0.649 GB, free: 44.66 MB / 430.1 MB (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 --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) 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) Reference file matches