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.00131/0.00131, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001809/0.001809, allocations: 210.1 kB / 23.74 MB, free: 4.672 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.618/1.618, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 43.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3446, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01603/0.3607, allocations: 10.76 MB / 441.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.371, allocations: 3.919 MB / 445.8 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.3724, allocations: 71.62 kB / 445.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005486/0.3778, allocations: 2.273 MB / 448.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00632/0.3842, allocations: 1.848 MB / 450 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.3857, allocations: 0.7174 MB / 450.7 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006971/0.3926, allocations: 4.312 MB / 455 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003761/0.3964, allocations: 2.454 MB / 457.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002772/0.3992, allocations: 1.487 MB / 459 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003456/0.4026, allocations: 2.255 MB / 461.2 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000547/0.4032, allocations: 292 kB / 461.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.4055, allocations: 0.9596 MB / 462.5 MB, free: 7.352 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001767/0.4073, allocations: 1.846 MB / 464.3 MB, free: 5.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.4101, allocations: 2.081 MB / 466.4 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008542/0.4186, allocations: 6.404 MB / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4186, allocations: 0 / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4186, allocations: 0 / 472.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001549/0.4188, allocations: 0 / 472.8 MB, free: 12.98 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.008213/0.427, allocations: 4.633 MB / 477.5 MB, free: 8.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.4271, allocations: 8.031 kB / 477.5 MB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001475/0.4285, allocations: 0.6873 MB / 478.1 MB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007643/0.4362, allocations: 1.967 MB / 480.1 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.4417, allocations: 2.627 MB / 482.7 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.4419, allocations: 233.6 kB / 483 MB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005184/0.4424, allocations: 291.8 kB / 483.3 MB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.4594, allocations: 9.659 MB / 492.9 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.4595, allocations: 47.62 kB / 493 MB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003419/0.4598, allocations: 147.8 kB / 493.1 MB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003168/0.463, allocations: 1.923 MB / 495 MB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/0.4795, allocations: 7.641 MB / 0.4909 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05019/0.5297, allocations: 37.55 MB / 0.5276 GB, free: 7.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007351/0.537, allocations: 2.34 MB / 0.5298 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.5384, allocations: 0.7948 MB / 0.5306 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007809/0.5463, allocations: 3.09 MB / 0.5336 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.762e-05/0.5463, allocations: 51.22 kB / 0.5337 GB, free: 1.117 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.697e-06/0.5463, allocations: 0 / 0.5337 GB, free: 1.117 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2638/0.8101, allocations: 9.129 MB / 0.5426 GB, free: 98.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.8102, allocations: 148.8 kB / 0.5427 GB, free: 98.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00483/0.815, allocations: 3.938 MB / 0.5466 GB, free: 96.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003962/0.8154, allocations: 48.61 kB / 0.5466 GB, free: 96.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.8169, allocations: 3.21 MB / 0.5498 GB, free: 94.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.8173, allocations: 0.6282 MB / 0.5504 GB, free: 94.17 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009583/0.8183, allocations: 1.168 MB / 0.5515 GB, free: 93.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.8183, allocations: 301.8 kB / 0.5518 GB, free: 93.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.8206, allocations: 1.571 MB / 0.5533 GB, free: 92.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003474/0.8241, allocations: 5.335 MB / 0.5586 GB, free: 87.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005901/0.83, allocations: 7.537 MB / 0.5659 GB, free: 78.69 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.409e-05/0.8301, allocations: 40 kB / 0.566 GB, free: 78.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009631/0.8397, allocations: 6.637 MB / 0.5724 GB, free: 72.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.8398, allocations: 67.94 kB / 0.5725 GB, free: 72.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.935e-05/0.8399, allocations: 133.6 kB / 0.5726 GB, free: 72.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001123/0.84, allocations: 180 kB / 0.5728 GB, free: 71.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003435/0.8434, allocations: 1.365 MB / 0.5741 GB, free: 70.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001186/0.8435, allocations: 267.3 kB / 0.5744 GB, free: 70.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003708/0.8472, allocations: 291.7 kB / 0.5747 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003143/0.8476, allocations: 367.8 kB / 0.575 GB, free: 69.61 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.002787/0.8503, allocations: 1.978 MB / 0.5769 GB, free: 67.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004394/0.8508, allocations: 353.6 kB / 0.5773 GB, free: 67.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000523/0.8513, allocations: 401.6 kB / 0.5777 GB, free: 66.87 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.736e-05/0.8513, allocations: 16 kB / 0.5777 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.163e-05/0.8513, allocations: 4 kB / 0.5777 GB, free: 66.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.8514, allocations: 9.469 kB / 0.5777 GB, free: 66.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007752/0.8591, allocations: 5.726 MB / 0.5833 GB, free: 60.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.8591, allocations: 20 kB / 0.5833 GB, free: 60.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008358/0.86, allocations: 276.2 kB / 0.5836 GB, free: 60.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.649e-05/0.86, allocations: 24 kB / 0.5836 GB, free: 60.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.486e-05/0.86, allocations: 51.98 kB / 0.5836 GB, free: 60.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.667e-05/0.8601, allocations: 35.86 kB / 0.5837 GB, free: 60.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.8601, allocations: 30.25 kB / 0.5837 GB, free: 60.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.8633, allocations: 3.256 MB / 0.5869 GB, free: 56.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006051/0.8639, allocations: 349.5 kB / 0.5872 GB, free: 56.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.8642, allocations: 55.92 kB / 0.5873 GB, free: 56.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009456/0.8651, allocations: 59.95 kB / 0.5873 GB, free: 56.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.8653, allocations: 154.8 kB / 0.5875 GB, free: 56.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/0.8655, allocations: 64 kB / 0.5875 GB, free: 56.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003253/0.8688, allocations: 2.446 MB / 0.5899 GB, free: 53.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8688, allocations: 0 / 0.5899 GB, free: 53.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004717/0.8735, allocations: 0.844 MB / 0.5908 GB, free: 52.96 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.003253/0.8768, allocations: 3.915 MB / 0.5946 GB, free: 48.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005646/0.8824, allocations: 3.527 MB / 0.598 GB, free: 45.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.13e-05/0.8824, allocations: 4.688 kB / 0.598 GB, free: 45.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007555/0.8832, allocations: 0.686 MB / 0.5987 GB, free: 44.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.8857, allocations: 458.3 kB / 0.5991 GB, free: 44.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04801/0.9337, allocations: 40.39 MB / 0.6386 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005114/0.9389, allocations: 3.097 MB / 0.6416 GB, free: 10.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004562/0.9434, allocations: 1.76 MB / 0.6433 GB, free: 8.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002721/0.9461, allocations: 1.792 MB / 0.6451 GB, free: 6.777 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.9461, allocations: 0 / 0.6451 GB, free: 6.777 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6557/1.602, allocations: 61.08 MB / 0.7047 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.56/24.17, allocations: 2.406 kB / 0.7047 GB, free: 10.13 MB / 0.5137 GB " [Timeout remaining time 636] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 27.37344267219305]