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.001445/0.001445, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001473/0.001473, allocations: 190.7 kB / 24.49 MB, free: 3.941 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.288/1.288, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 55.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2032, allocations: 52.18 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01028/0.2135, allocations: 9.008 MB / 432.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006385/0.2199, allocations: 3.663 MB / 436 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006262/0.2205, allocations: 63.69 kB / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003464/0.224, allocations: 2.032 MB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003225/0.2272, allocations: 1.685 MB / 439.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.2286, allocations: 0.6979 MB / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003903/0.2325, allocations: 3.369 MB / 443.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002445/0.2349, allocations: 2.215 MB / 446.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.2364, allocations: 1.289 MB / 447.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002234/0.2386, allocations: 1.9 MB / 449.3 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004354/0.239, allocations: 260 kB / 449.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.2407, allocations: 1.038 MB / 450.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.2422, allocations: 1.612 MB / 452.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.2436, allocations: 1.382 MB / 453.6 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005909/0.2495, allocations: 6.003 MB / 459.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2495, allocations: 0 / 459.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2495, allocations: 0 / 459.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.312e-05/0.2496, allocations: 0 / 459.6 MB, free: 10.02 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.006595/0.2562, allocations: 4.164 MB / 463.7 MB, free: 5.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2562, allocations: 11.97 kB / 463.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.186e-05/0.2563, allocations: 89.52 kB / 463.8 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007349/0.257, allocations: 0.6452 MB / 464.5 MB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006086/0.2631, allocations: 1.89 MB / 466.4 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003552/0.2667, allocations: 2.161 MB / 468.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.2668, allocations: 209.2 kB / 468.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004579/0.2673, allocations: 267.8 kB / 469 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01515/0.2824, allocations: 10.03 MB / 479 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.075e-05/0.2825, allocations: 43.62 kB / 479.1 MB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/0.2829, allocations: 131.9 kB / 479.2 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002883/0.2857, allocations: 1.856 MB / 481.1 MB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01504/0.3008, allocations: 8.532 MB / 489.6 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0368/0.3376, allocations: 35.44 MB / 0.5127 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008549/0.3461, allocations: 3.071 MB / 0.5157 GB, free: 3.594 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002202/0.3483, allocations: 1.694 MB / 0.5174 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009534/0.3579, allocations: 6.251 MB / 0.5235 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.3579, allocations: 51.5 kB / 0.5235 GB, free: 11.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.278e-06/0.3579, allocations: 3.938 kB / 0.5235 GB, free: 11.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2225/0.5804, allocations: 17.44 MB / 0.5406 GB, free: 108.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.5805, allocations: 145.7 kB / 0.5407 GB, free: 108.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003533/0.584, allocations: 3.484 MB / 0.5441 GB, free: 107.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.5842, allocations: 54.91 kB / 0.5442 GB, free: 107.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.5852, allocations: 2.856 MB / 0.547 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003977/0.5856, allocations: 0.672 MB / 0.5476 GB, free: 105 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001355/0.587, allocations: 1.127 MB / 0.5487 GB, free: 104.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/0.587, allocations: 305.1 kB / 0.549 GB, free: 104.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/0.5891, allocations: 1.943 MB / 0.5509 GB, free: 103.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003067/0.5922, allocations: 5.362 MB / 0.5561 GB, free: 97.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005442/0.5976, allocations: 7.928 MB / 0.5639 GB, free: 88.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.436e-05/0.5977, allocations: 32.75 kB / 0.5639 GB, free: 88.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01075/0.6084, allocations: 8.143 MB / 0.5719 GB, free: 80.26 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.473e-05/0.6085, allocations: 56 kB / 0.5719 GB, free: 80.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.295e-05/0.6085, allocations: 121.1 kB / 0.572 GB, free: 80.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003337/0.6119, allocations: 1.301 MB / 0.5733 GB, free: 78.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/0.6148, allocations: 1.259 MB / 0.5745 GB, free: 77.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006437/0.6212, allocations: 6.386 MB / 0.5808 GB, free: 71.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/0.6244, allocations: 299.7 kB / 0.5811 GB, free: 70.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003343/0.6248, allocations: 343.5 kB / 0.5814 GB, free: 70.4 MB / 446.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.001865/0.6266, allocations: 1.803 MB / 0.5831 GB, free: 68.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004005/0.627, allocations: 317.8 kB / 0.5834 GB, free: 68.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005472/0.6325, allocations: 3.36 MB / 0.5867 GB, free: 64.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/0.6325, allocations: 23.17 kB / 0.5867 GB, free: 64.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.6325, allocations: 8 kB / 0.5868 GB, free: 64.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.6325, allocations: 7.984 kB / 0.5868 GB, free: 64.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.643, allocations: 7.243 MB / 0.5938 GB, free: 57.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.643, allocations: 0 / 0.5938 GB, free: 57.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.6441, allocations: 243.7 kB / 0.5941 GB, free: 57.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003158/0.6472, allocations: 1.124 MB / 0.5952 GB, free: 56.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.6473, allocations: 27.98 kB / 0.5952 GB, free: 56.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006159/0.6535, allocations: 6.015 MB / 0.6011 GB, free: 50.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6535, allocations: 0 / 0.6011 GB, free: 50.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007368/0.6609, allocations: 5.713 MB / 0.6066 GB, free: 44.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005751/0.6614, allocations: 293.7 kB / 0.6069 GB, free: 44.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.6617, allocations: 24 kB / 0.6069 GB, free: 44.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.6629, allocations: 91.88 kB / 0.607 GB, free: 43.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.6631, allocations: 96.81 kB / 0.6071 GB, free: 43.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.6632, allocations: 44 kB / 0.6072 GB, free: 43.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0022/0.6654, allocations: 2.154 MB / 0.6093 GB, free: 41.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6654, allocations: 0 / 0.6093 GB, free: 41.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003447/0.6688, allocations: 0.9139 MB / 0.6102 GB, free: 40.75 MB / 446.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.007456/0.6763, allocations: 6.355 MB / 0.6164 GB, free: 34.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005288/0.6816, allocations: 4.579 MB / 0.6208 GB, free: 29.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6816, allocations: 0 / 0.6208 GB, free: 29.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.6832, allocations: 1.443 MB / 0.6223 GB, free: 28.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.6849, allocations: 358.3 kB / 0.6226 GB, free: 28.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0482/0.7331, allocations: 41.27 MB / 0.6629 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002778/0.7359, allocations: 2.305 MB / 0.6651 GB, free: 11.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003523/0.7394, allocations: 1.703 MB / 0.6668 GB, free: 9.402 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/0.7413, allocations: 1.585 MB / 0.6684 GB, free: 7.816 MB / 478.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7413, allocations: 4 kB / 0.6684 GB, free: 7.812 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8559/1.597, allocations: 63.01 MB / 0.7299 GB, free: 9.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.13/21.73, allocations: 14.83 kB / 0.7299 GB, free: 9.488 MB / 0.5294 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.56521344196517]