Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.001083/0.001083, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009468/0.0009468, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9032/0.9032, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.InitSpringConstant,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.097e-05/1.269e-05, allocations: 6.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.006461/0.006474, allocations: 9.002 MB / 333.6 MB, free: 6.883 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004064/0.01054, allocations: 3.623 MB / 337.2 MB, free: 3.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004499/0.01099, allocations: 63.69 kB / 337.3 MB, free: 3.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.01285, allocations: 1.997 MB / 339.3 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.0146, allocations: 1.727 MB / 341 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006313/0.01524, allocations: 0.6625 MB / 341.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002304/0.01754, allocations: 3.753 MB / 345.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.01899, allocations: 2.371 MB / 347.8 MB, free: 8.598 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.02023, allocations: 1.894 MB / 349.7 MB, free: 6.699 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.02171, allocations: 1.816 MB / 351.5 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.02193, allocations: 260 kB / 351.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008409/0.02277, allocations: 0.9594 MB / 352.7 MB, free: 3.664 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008037/0.02358, allocations: 1.667 MB / 354.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006685/0.02424, allocations: 1.032 MB / 355.4 MB, free: 0.957 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003575/0.02782, allocations: 5.817 MB / 361.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.02782, allocations: 0 / 361.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.02782, allocations: 0 / 361.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.58e-05/0.02786, allocations: 7.938 kB / 361.2 MB, free: 11.11 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.003785/0.03164, allocations: 4.057 MB / 365.3 MB, free: 7.004 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.03168, allocations: 12.03 kB / 365.3 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007736/0.03246, allocations: 0.6082 MB / 365.9 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003151/0.03561, allocations: 1.835 MB / 367.7 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001897/0.0375, allocations: 1.95 MB / 369.7 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-05/0.03759, allocations: 196.8 kB / 369.9 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.03787, allocations: 251.8 kB / 370.1 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006983/0.04485, allocations: 8.468 MB / 378.6 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.98e-05/0.04491, allocations: 47.62 kB / 378.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002109/0.04512, allocations: 123.9 kB / 378.8 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00161/0.04673, allocations: 1.695 MB / 380.5 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007336/0.05407, allocations: 7.086 MB / 387.5 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0205/0.07457, allocations: 32.98 MB / 420.5 MB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004177/0.07875, allocations: 2.821 MB / 423.3 MB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.07986, allocations: 1.361 MB / 424.7 MB, free: 9.773 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003291/0.08315, allocations: 3.514 MB / 428.2 MB, free: 6.227 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.08317, allocations: 51.09 kB / 428.3 MB, free: 6.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=121): time 2.274e-06/0.08318, allocations: 4 kB / 428.3 MB, free: 6.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.01614/0.09932, allocations: 11.93 MB / 440.2 MB, free: 10.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.09937, allocations: 145.1 kB / 440.3 MB, free: 9.988 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.1025, allocations: 4.11 MB / 444.5 MB, free: 5.883 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.1026, allocations: 41.7 kB / 444.5 MB, free: 5.836 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.104, allocations: 2.831 MB / 447.3 MB, free: 2.977 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.1043, allocations: 0.5351 MB / 447.9 MB, free: 2.438 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008267/0.1052, allocations: 1.06 MB / 448.9 MB, free: 1.367 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.1052, allocations: 305.1 kB / 449.2 MB, free: 1.066 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1892/0.2945, allocations: 1.698 MB / 450.9 MB, free: 113.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004154/0.2986, allocations: 5.122 MB / 456 MB, free: 108.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004994/0.3036, allocations: 7.411 MB / 463.4 MB, free: 102.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/0.3037, allocations: 32.62 kB / 463.5 MB, free: 102.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.006461/0.3101, allocations: 6.724 MB / 470.2 MB, free: 99.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.3102, allocations: 56 kB / 470.3 MB, free: 99.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.876e-05/0.3102, allocations: 122.6 kB / 470.4 MB, free: 99.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004243/0.3107, allocations: 325.9 kB / 470.7 MB, free: 99.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.3125, allocations: 1.239 MB / 471.9 MB, free: 98.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.3141, allocations: 2.377 MB / 474.3 MB, free: 95.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.3161, allocations: 321.7 kB / 474.6 MB, free: 95.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.3164, allocations: 336.2 kB / 475 MB, free: 95.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[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 (664): * Single equations (assignments): 660 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001975/0.3183, allocations: 1.785 MB / 476.7 MB, free: 93.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.3186, allocations: 329.8 kB / 477.1 MB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002478/0.3211, allocations: 2.362 MB / 479.4 MB, free: 91.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.3211, allocations: 16 kB / 479.4 MB, free: 91.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3211, allocations: 4 kB / 479.4 MB, free: 91.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3211, allocations: 7.734 kB / 479.5 MB, free: 91.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005594/0.3267, allocations: 5.717 MB / 485.2 MB, free: 86.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3267, allocations: 0 / 485.2 MB, free: 86.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.3271, allocations: 179.7 kB / 485.3 MB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/0.3282, allocations: 0.7147 MB / 486.1 MB, free: 85.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.046e-05/0.3282, allocations: 20 kB / 486.1 MB, free: 85.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003279/0.3315, allocations: 4.729 MB / 490.8 MB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3315, allocations: 0 / 490.8 MB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.3351, allocations: 4.343 MB / 495.2 MB, free: 76.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.3354, allocations: 331.2 kB / 495.5 MB, free: 75.97 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.3355, allocations: 26.58 kB / 495.5 MB, free: 75.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006089/0.3362, allocations: 99.78 kB / 495.6 MB, free: 75.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.3363, allocations: 72.52 kB / 495.7 MB, free: 75.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.218e-05/0.3363, allocations: 36 kB / 495.7 MB, free: 75.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001811/0.3381, allocations: 2.455 MB / 498.2 MB, free: 73.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3381, allocations: 3.938 kB / 498.2 MB, free: 73.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002238/0.3404, allocations: 0.8754 MB / 499 MB, free: 72.43 MB / 410.7 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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004003/0.3444, allocations: 5.01 MB / 0.4922 GB, free: 67.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003302/0.3477, allocations: 3.876 MB / 0.496 GB, free: 63.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3477, allocations: 8.25 kB / 0.496 GB, free: 63.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.3485, allocations: 1.035 MB / 0.497 GB, free: 62.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.3498, allocations: 392.6 kB / 0.4974 GB, free: 62.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02899/0.3788, allocations: 38.15 MB / 0.5347 GB, free: 18.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/0.3804, allocations: 2.229 MB / 0.5369 GB, free: 16.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002013/0.3824, allocations: 1.66 MB / 0.5385 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/0.3835, allocations: 1.531 MB / 0.54 GB, free: 13.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.3835, allocations: 0 / 0.54 GB, free: 13.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/0.4864, allocations: 59.53 MB / 0.5981 GB, free: 2.492 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.131/9.617, allocations: 15.12 kB / 0.5981 GB, free: 2.48 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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: 11.669196680188179]