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.001457/0.001457, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 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.001602/0.001602, allocations: 211.5 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001477/0.001477, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2218, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01108/0.2329, allocations: 8.989 MB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007165/0.24, allocations: 3.61 MB / 443.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.2411, allocations: 67.69 kB / 443.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003577/0.2446, allocations: 1.9 MB / 445.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.2482, allocations: 1.677 MB / 447.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.2495, allocations: 0.6199 MB / 447.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004185/0.2537, allocations: 3.356 MB / 451.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002574/0.2563, allocations: 2.114 MB / 453.4 MB, free: 188 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.258, allocations: 1.25 MB / 454.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002427/0.2604, allocations: 1.826 MB / 456.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004775/0.2609, allocations: 252 kB / 456.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.2626, allocations: 0.9323 MB / 457.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001502/0.2641, allocations: 1.593 MB / 459.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.2655, allocations: 1.335 MB / 460.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006172/0.2717, allocations: 5.828 MB / 466.4 MB, free: 3.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2717, allocations: 4 kB / 466.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2717, allocations: 0 / 466.4 MB, free: 3.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.2718, allocations: 4 kB / 466.4 MB, free: 3.117 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.007238/0.2791, allocations: 4.038 MB / 470.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2791, allocations: 8.031 kB / 470.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007318/0.2798, allocations: 0.6043 MB / 471.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005899/0.2857, allocations: 1.808 MB / 472.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004576/0.2903, allocations: 2.117 MB / 475 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.2905, allocations: 192.8 kB / 475.2 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005237/0.291, allocations: 251.8 kB / 475.4 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01262/0.3036, allocations: 8.468 MB / 483.9 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.111e-05/0.3037, allocations: 43.62 kB / 484 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003117/0.304, allocations: 127.9 kB / 484.1 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.3067, allocations: 1.699 MB / 485.8 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.3188, allocations: 7.082 MB / 492.9 MB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03838/0.3572, allocations: 32.81 MB / 0.5133 GB, free: 6.082 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007163/0.3644, allocations: 2.731 MB / 0.516 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3663, allocations: 1.353 MB / 0.5173 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006992/0.3733, allocations: 3.357 MB / 0.5206 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.3734, allocations: 43.22 kB / 0.5207 GB, free: 14.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=121): time 4.068e-06/0.3734, allocations: 0 / 0.5207 GB, free: 14.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=129): time 0.02944/0.4028, allocations: 11.58 MB / 0.532 GB, free: 2.855 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.474e-05/0.4029, allocations: 145.1 kB / 0.5321 GB, free: 2.684 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.211/0.6138, allocations: 3.923 MB / 0.5359 GB, free: 101.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000286/0.6141, allocations: 43.69 kB / 0.536 GB, free: 101.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/0.6161, allocations: 2.864 MB / 0.5388 GB, free: 100.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006477/0.6167, allocations: 0.5376 MB / 0.5393 GB, free: 99.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/0.6183, allocations: 1.089 MB / 0.5404 GB, free: 99.22 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.497e-05/0.6184, allocations: 302.8 kB / 0.5406 GB, free: 98.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/0.6213, allocations: 1.7 MB / 0.5423 GB, free: 98.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003682/0.6249, allocations: 5.125 MB / 0.5473 GB, free: 93.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005822/0.6308, allocations: 7.408 MB / 0.5545 GB, free: 86.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.212e-05/0.6308, allocations: 37.38 kB / 0.5546 GB, free: 86.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.008587/0.6394, allocations: 6.723 MB / 0.5611 GB, free: 82.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.031e-05/0.6395, allocations: 56 kB / 0.5612 GB, free: 82.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.468e-05/0.6396, allocations: 124 kB / 0.5613 GB, free: 82.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005334/0.6401, allocations: 325 kB / 0.5616 GB, free: 82.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.6433, allocations: 1.239 MB / 0.5628 GB, free: 81.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/0.6453, allocations: 2.379 MB / 0.5652 GB, free: 78.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003551/0.6488, allocations: 286.3 kB / 0.5654 GB, free: 78.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004355/0.6492, allocations: 335.4 kB / 0.5658 GB, free: 78.32 MB / 446.1 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.002131/0.6514, allocations: 1.783 MB / 0.5675 GB, free: 76.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005607/0.6519, allocations: 329.9 kB / 0.5678 GB, free: 76.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003807/0.6557, allocations: 2.357 MB / 0.5701 GB, free: 74.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.6558, allocations: 23.5 kB / 0.5701 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.6558, allocations: 4 kB / 0.5701 GB, free: 74.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.6558, allocations: 7.969 kB / 0.5701 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009565/0.6654, allocations: 5.643 MB / 0.5757 GB, free: 68.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.6654, allocations: 0 / 0.5757 GB, free: 68.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007711/0.6661, allocations: 175.8 kB / 0.5758 GB, free: 68.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001948/0.6681, allocations: 0.7187 MB / 0.5765 GB, free: 67.72 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.6682, allocations: 24 kB / 0.5765 GB, free: 67.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004558/0.6727, allocations: 4.667 MB / 0.5811 GB, free: 62.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.6727, allocations: 4.031 kB / 0.5811 GB, free: 62.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005595/0.6783, allocations: 4.35 MB / 0.5854 GB, free: 58.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.6794, allocations: 293.7 kB / 0.5856 GB, free: 58.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004348/0.6799, allocations: 27.98 kB / 0.5857 GB, free: 58.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.681, allocations: 63.91 kB / 0.5857 GB, free: 58.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.6812, allocations: 68.53 kB / 0.5858 GB, free: 58.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-05/0.6813, allocations: 39.36 kB / 0.5858 GB, free: 58.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002691/0.684, allocations: 2.315 MB / 0.5881 GB, free: 55.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.684, allocations: 4 kB / 0.5881 GB, free: 55.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004167/0.6882, allocations: 0.8078 MB / 0.5889 GB, free: 54.94 MB / 446.1 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.00583/0.694, allocations: 4.986 MB / 0.5937 GB, free: 49.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005238/0.6992, allocations: 3.892 MB / 0.5975 GB, free: 46.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.6992, allocations: 4.062 kB / 0.5976 GB, free: 46.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.7005, allocations: 1.033 MB / 0.5986 GB, free: 45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/0.7037, allocations: 383 kB / 0.5989 GB, free: 44.63 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04853/0.7523, allocations: 37.77 MB / 0.6358 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003591/0.7559, allocations: 2.236 MB / 0.638 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003906/0.7598, allocations: 1.652 MB / 0.6396 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/0.7623, allocations: 1.526 MB / 0.6411 GB, free: 12.22 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/0.7623, allocations: 0 / 0.6411 GB, free: 12.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8047/1.567, allocations: 60.32 MB / 0.7 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.72/17.29, allocations: 7.844 kB / 0.7 GB, free: 0.6445 MB / 0.4981 GB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/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: 20.69528959301533]