Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001232/0.001232, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.001297/0.001297, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.321/1.321, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 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.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 43.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2236, allocations: 53.36 MB / 431.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01145/0.2351, allocations: 9.302 MB / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007341/0.2424, allocations: 3.686 MB / 444.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007736/0.2432, allocations: 75.62 kB / 444.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003951/0.2472, allocations: 2.172 MB / 447.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003617/0.2508, allocations: 1.856 MB / 449 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001287/0.2521, allocations: 0.7136 MB / 449.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004912/0.257, allocations: 4.312 MB / 454 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/0.2597, allocations: 2.451 MB / 456.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001783/0.2615, allocations: 1.491 MB / 457.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00272/0.2642, allocations: 2.255 MB / 460.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005053/0.2647, allocations: 299.9 kB / 460.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.2662, allocations: 0.827 MB / 461.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001646/0.2678, allocations: 1.846 MB / 463.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001643/0.2695, allocations: 1.561 MB / 464.7 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006344/0.2758, allocations: 6.415 MB / 471.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2758, allocations: 0 / 471.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2758, allocations: 0 / 471.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.278e-05/0.2759, allocations: 0 / 471.1 MB, free: 15.37 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007518/0.2834, allocations: 4.637 MB / 475.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.2835, allocations: 12.03 kB / 475.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001076/0.2836, allocations: 101.9 kB / 475.9 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000796/0.2844, allocations: 0.699 MB / 476.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006876/0.2913, allocations: 1.956 MB / 478.5 MB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004833/0.2961, allocations: 2.639 MB / 481.2 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/0.2963, allocations: 229.6 kB / 481.4 MB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005264/0.2968, allocations: 295.8 kB / 481.7 MB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/0.3112, allocations: 9.676 MB / 491.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.3114, allocations: 59.5 kB / 491.4 MB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004315/0.3118, allocations: 143.8 kB / 491.6 MB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002849/0.3147, allocations: 1.919 MB / 493.5 MB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01484/0.3295, allocations: 7.637 MB / 0.4894 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04517/0.3747, allocations: 36.25 MB / 0.5248 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006468/0.3811, allocations: 2.341 MB / 0.527 GB, free: 8.656 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.3825, allocations: 0.7948 MB / 0.5278 GB, free: 7.852 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005725/0.3882, allocations: 2.891 MB / 0.5306 GB, free: 4.934 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.3882, allocations: 47.16 kB / 0.5307 GB, free: 4.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.088e-06/0.3882, allocations: 0 / 0.5307 GB, free: 4.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.1929/0.5812, allocations: 9.136 MB / 0.5396 GB, free: 101 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.5812, allocations: 144.2 kB / 0.5397 GB, free: 100.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004716/0.5859, allocations: 3.938 MB / 0.5436 GB, free: 99.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.619e-05/0.586, allocations: 45.7 kB / 0.5436 GB, free: 99.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.5873, allocations: 3.208 MB / 0.5468 GB, free: 97.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003158/0.5876, allocations: 0.632 MB / 0.5474 GB, free: 96.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009438/0.5886, allocations: 1.17 MB / 0.5485 GB, free: 96.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.891e-05/0.5886, allocations: 310.2 kB / 0.5488 GB, free: 95.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.5903, allocations: 1.567 MB / 0.5504 GB, free: 95.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002688/0.593, allocations: 5.337 MB / 0.5556 GB, free: 89.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004757/0.5978, allocations: 7.536 MB / 0.5629 GB, free: 81.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.47e-05/0.5978, allocations: 40 kB / 0.563 GB, free: 81.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006957/0.6048, allocations: 6.65 MB / 0.5695 GB, free: 75.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.437e-05/0.6048, allocations: 60 kB / 0.5695 GB, free: 75.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.602e-05/0.6049, allocations: 136 kB / 0.5696 GB, free: 75.72 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001038/0.605, allocations: 176 kB / 0.5698 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002989/0.608, allocations: 1.369 MB / 0.5712 GB, free: 74.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000107/0.6081, allocations: 266 kB / 0.5714 GB, free: 73.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/0.6109, allocations: 291.8 kB / 0.5717 GB, free: 73.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002716/0.6112, allocations: 367.3 kB / 0.572 GB, free: 73.28 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001782/0.613, allocations: 1.966 MB / 0.574 GB, free: 71.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/0.6133, allocations: 361.4 kB / 0.5743 GB, free: 70.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004655/0.6137, allocations: 401.6 kB / 0.5747 GB, free: 70.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/0.6138, allocations: 20 kB / 0.5747 GB, free: 70.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.6138, allocations: 0 / 0.5747 GB, free: 70.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.6138, allocations: 11.97 kB / 0.5747 GB, free: 70.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005662/0.6194, allocations: 5.429 MB / 0.58 GB, free: 64.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.6195, allocations: 24.06 kB / 0.58 GB, free: 64.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007814/0.6202, allocations: 279.5 kB / 0.5803 GB, free: 64.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.46e-05/0.6203, allocations: 24 kB / 0.5803 GB, free: 64.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.195e-05/0.6203, allocations: 55.27 kB / 0.5804 GB, free: 64.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.487e-05/0.6203, allocations: 39.86 kB / 0.5804 GB, free: 64.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.6203, allocations: 31.81 kB / 0.5804 GB, free: 64.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.6227, allocations: 3.245 MB / 0.5836 GB, free: 60.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.6231, allocations: 349.5 kB / 0.5839 GB, free: 60.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.6233, allocations: 52.73 kB / 0.584 GB, free: 60.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009434/0.6243, allocations: 59.95 kB / 0.5841 GB, free: 60.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.6244, allocations: 155.1 kB / 0.5842 GB, free: 60.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.871e-05/0.6245, allocations: 68 kB / 0.5843 GB, free: 60.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002204/0.6267, allocations: 2.442 MB / 0.5867 GB, free: 57.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6267, allocations: 0 / 0.5867 GB, free: 57.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003319/0.63, allocations: 0.8436 MB / 0.5875 GB, free: 56.95 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002629/0.6326, allocations: 3.915 MB / 0.5913 GB, free: 52.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003737/0.6364, allocations: 3.527 MB / 0.5947 GB, free: 49.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.6364, allocations: 4.25 kB / 0.5947 GB, free: 49.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006524/0.637, allocations: 0.6948 MB / 0.5954 GB, free: 48.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.6391, allocations: 442.7 kB / 0.5958 GB, free: 48.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03433/0.6734, allocations: 40.39 MB / 0.6353 GB, free: 1.469 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/0.6761, allocations: 2.548 MB / 0.6378 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003655/0.6797, allocations: 1.768 MB / 0.6395 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002047/0.6818, allocations: 1.784 MB / 0.6413 GB, free: 11.32 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6818, allocations: 4 kB / 0.6413 GB, free: 11.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/0.7889, allocations: 58.27 MB / 0.6982 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.03/20.82, allocations: 4.062 kB / 0.6982 GB, free: 1.91 MB / 0.4981 GB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.23054029897321]