Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 51.92 kB / 365.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09809, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01264/0.1107, allocations: 10.33 MB / 428.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008328/0.1191, allocations: 3.901 MB / 432 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.1206, allocations: 55.81 kB / 432.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0045/0.1251, allocations: 2.098 MB / 434.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00486/0.13, allocations: 1.681 MB / 435.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.1318, allocations: 0.6979 MB / 436.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005365/0.1372, allocations: 3.361 MB / 439.9 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00374/0.1409, allocations: 2.298 MB / 442.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.1436, allocations: 1.265 MB / 443.5 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003376/0.147, allocations: 1.9 MB / 445.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000996/0.148, allocations: 268 kB / 445.6 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1849/0.3329, allocations: 1.152 MB / 446.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001551/0.3344, allocations: 1.617 MB / 448.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00147/0.3359, allocations: 1.865 MB / 450.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006249/0.3422, allocations: 5.975 MB / 456.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3422, allocations: 0.7969 kB / 456.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3422, allocations: 0 / 456.2 MB, free: 9.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001461/0.3423, allocations: 1.75 kB / 456.2 MB, free: 9.969 MB / 366.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.007971/0.3503, allocations: 4.244 MB / 460.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3503, allocations: 9.906 kB / 460.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009757/0.3513, allocations: 0.6429 MB / 461.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006087/0.3574, allocations: 1.891 MB / 463 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004798/0.3622, allocations: 2.223 MB / 465.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3623, allocations: 206.9 kB / 465.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005129/0.3628, allocations: 271.3 kB / 465.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/0.3791, allocations: 9.977 MB / 475.7 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.591e-05/0.3792, allocations: 37.64 kB / 475.7 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003649/0.3795, allocations: 133.8 kB / 475.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002483/0.382, allocations: 1.856 MB / 477.7 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01442/0.3964, allocations: 8.544 MB / 486.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04536/0.4418, allocations: 36.76 MB / 0.5108 GB, free: 9.996 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009373/0.4512, allocations: 3.758 MB / 0.5144 GB, free: 6.055 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002584/0.4538, allocations: 1.693 MB / 0.5161 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01296/0.4667, allocations: 7.539 MB / 0.5235 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.245e-05/0.4668, allocations: 54.5 kB / 0.5235 GB, free: 12.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.319e-06/0.4668, allocations: 4 kB / 0.5235 GB, free: 12.53 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05162/0.5184, allocations: 17.61 MB / 0.5407 GB, free: 10.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.5185, allocations: 145.5 kB / 0.5408 GB, free: 10.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005402/0.5239, allocations: 3.498 MB / 0.5443 GB, free: 7.211 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/0.5243, allocations: 49.7 kB / 0.5443 GB, free: 7.156 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002189/0.5265, allocations: 2.85 MB / 0.5471 GB, free: 4.324 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009019/0.5274, allocations: 0.6724 MB / 0.5477 GB, free: 3.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/0.529, allocations: 1.12 MB / 0.5488 GB, free: 2.531 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5291, allocations: 301.1 kB / 0.5491 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/0.5323, allocations: 1.939 MB / 0.551 GB, free: 296 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006115/0.5384, allocations: 5.365 MB / 0.5563 GB, free: 9.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01045/0.5488, allocations: 7.919 MB / 0.564 GB, free: 144 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.927e-05/0.5489, allocations: 35.84 kB / 0.564 GB, free: 112 kB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.0172/0.5662, allocations: 8.151 MB / 0.572 GB, free: 8.094 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.5663, allocations: 60 kB / 0.572 GB, free: 8.035 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/0.5664, allocations: 120 kB / 0.5722 GB, free: 7.918 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004093/0.5705, allocations: 1.302 MB / 0.5734 GB, free: 6.613 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004123/0.5746, allocations: 1.255 MB / 0.5747 GB, free: 5.355 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.5847, allocations: 6.552 MB / 0.5811 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/0.589, allocations: 305.9 kB / 0.5813 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001048/0.5901, allocations: 344 kB / 0.5817 GB, free: 14.06 MB / 494.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.004177/0.5943, allocations: 1.8 MB / 0.5834 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007259/0.595, allocations: 321.8 kB / 0.5837 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007783/0.6028, allocations: 3.358 MB / 0.587 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.033e-05/0.6028, allocations: 16 kB / 0.587 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.6028, allocations: 8 kB / 0.587 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.6029, allocations: 7.969 kB / 0.587 GB, free: 8.527 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.6199, allocations: 7.559 MB / 0.5944 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.6199, allocations: 3.938 kB / 0.5944 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.6211, allocations: 236.5 kB / 0.5947 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003631/0.6248, allocations: 1.128 MB / 0.5958 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/0.6249, allocations: 28 kB / 0.5958 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009154/0.6341, allocations: 6.172 MB / 0.6018 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.6341, allocations: 0 / 0.6018 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.6446, allocations: 5.711 MB / 0.6074 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009791/0.6455, allocations: 370.8 kB / 0.6077 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/0.6461, allocations: 28 kB / 0.6078 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.6476, allocations: 89.98 kB / 0.6079 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.6478, allocations: 84.88 kB / 0.6079 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.648, allocations: 51.92 kB / 0.608 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004069/0.6521, allocations: 2.15 MB / 0.6101 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6521, allocations: 0 / 0.6101 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004791/0.6569, allocations: 0.914 MB / 0.611 GB, free: 15.79 MB / 0.5137 GB 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.01065/0.6675, allocations: 6.363 MB / 0.6172 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008195/0.6757, allocations: 4.582 MB / 0.6217 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.6757, allocations: 0 / 0.6217 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002499/0.6782, allocations: 1.441 MB / 0.6231 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.6807, allocations: 353.7 kB / 0.6234 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2531/0.9338, allocations: 41.2 MB / 0.6636 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/0.9361, allocations: 2.855 MB / 0.6664 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003224/0.9393, allocations: 1.702 MB / 0.6681 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/0.9409, allocations: 1.583 MB / 0.6696 GB, free: 150 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.9409, allocations: 0 / 0.6696 GB, free: 150 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.04/1.981, allocations: 60.75 MB / 0.729 GB, free: 90.24 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.31/22.29, allocations: 22.06 kB / 0.729 GB, free: 90.22 MB / 0.5137 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 25.492654118221253]