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.001689/0.001689, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001977/0.001977, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.546/1.546, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001866/0.001866, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1175, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2335/0.351, allocations: 10.71 MB / 437 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008052/0.359, allocations: 3.903 MB / 440.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001686/0.3607, allocations: 74.38 kB / 441 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004249/0.365, allocations: 2.266 MB / 443.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005489/0.3705, allocations: 1.838 MB / 445.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002159/0.3726, allocations: 0.7129 MB / 445.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007133/0.3798, allocations: 4.315 MB / 450.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004691/0.3845, allocations: 2.495 MB / 452.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003375/0.3878, allocations: 1.486 MB / 454.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003877/0.3917, allocations: 2.261 MB / 456.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.3927, allocations: 293.1 kB / 456.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002373/0.3951, allocations: 0.9501 MB / 457.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.3969, allocations: 1.848 MB / 459.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003029/0.3999, allocations: 2.083 MB / 461.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009691/0.4096, allocations: 6.399 MB / 468 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4096, allocations: 0 / 468 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4096, allocations: 0 / 468 MB, free: 5.449 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001306/0.4098, allocations: 0 / 468 MB, free: 5.449 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01103/0.4208, allocations: 4.707 MB / 472.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4208, allocations: 9.844 kB / 472.7 MB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001106/0.4219, allocations: 0.6915 MB / 473.4 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009041/0.431, allocations: 1.976 MB / 475.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006065/0.437, allocations: 2.688 MB / 478 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.4372, allocations: 233.6 kB / 478.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008741/0.4381, allocations: 291.8 kB / 478.5 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.4587, allocations: 9.661 MB / 488.2 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003482/0.4591, allocations: 43.62 kB / 488.2 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006676/0.4598, allocations: 143.9 kB / 488.4 MB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003504/0.4633, allocations: 1.923 MB / 490.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01901/0.4823, allocations: 7.651 MB / 498 MB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05239/0.5347, allocations: 37.67 MB / 0.5231 GB, free: 1.34 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007621/0.5423, allocations: 2.797 MB / 0.5258 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.5438, allocations: 0.7969 MB / 0.5266 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006529/0.5503, allocations: 3.853 MB / 0.5303 GB, free: 9.527 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.5503, allocations: 51.16 kB / 0.5304 GB, free: 9.465 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 2.865e-06/0.5504, allocations: 0 / 0.5304 GB, free: 9.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02569/0.576, allocations: 9.278 MB / 0.5395 GB, free: 96 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.5761, allocations: 153.5 kB / 0.5396 GB, free: 15.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006827/0.583, allocations: 3.933 MB / 0.5434 GB, free: 12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.5831, allocations: 45.7 kB / 0.5435 GB, free: 11.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002739/0.5859, allocations: 3.205 MB / 0.5466 GB, free: 8.715 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006219/0.5865, allocations: 0.6358 MB / 0.5472 GB, free: 8.074 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/0.5879, allocations: 1.168 MB / 0.5484 GB, free: 6.895 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5881, allocations: 305.1 kB / 0.5487 GB, free: 6.594 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002962/0.591, allocations: 1.573 MB / 0.5502 GB, free: 5.016 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006271/0.5973, allocations: 5.342 MB / 0.5554 GB, free: 13.78 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009766/0.6071, allocations: 7.527 MB / 0.5628 GB, free: 4.371 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-05/0.6072, allocations: 40 kB / 0.5628 GB, free: 4.332 MB / 478.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01369/0.6208, allocations: 6.641 MB / 0.5693 GB, free: 13.69 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.686e-05/0.6209, allocations: 64 kB / 0.5694 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001547/0.6211, allocations: 133.3 kB / 0.5695 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/0.6213, allocations: 180 kB / 0.5697 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004333/0.6256, allocations: 1.372 MB / 0.571 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000215/0.6258, allocations: 263 kB / 0.5712 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003699/0.6295, allocations: 283.7 kB / 0.5715 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004981/0.63, allocations: 372 kB / 0.5719 GB, free: 11.05 MB / 494.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.003457/0.6335, allocations: 1.974 MB / 0.5738 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005743/0.6341, allocations: 357.6 kB / 0.5741 GB, free: 8.711 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007658/0.6348, allocations: 397.6 kB / 0.5745 GB, free: 8.316 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.754e-05/0.6349, allocations: 16 kB / 0.5745 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.6349, allocations: 4 kB / 0.5745 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.6349, allocations: 11.97 kB / 0.5746 GB, free: 8.285 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/0.6457, allocations: 5.761 MB / 0.5802 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-05/0.6457, allocations: 16 kB / 0.5802 GB, free: 2.191 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.6467, allocations: 280.4 kB / 0.5805 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.93e-05/0.6468, allocations: 32 kB / 0.5805 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.993e-05/0.6468, allocations: 47.98 kB / 0.5805 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.833e-05/0.6469, allocations: 35.86 kB / 0.5806 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.183e-05/0.6469, allocations: 35.81 kB / 0.5806 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004491/0.6514, allocations: 3.245 MB / 0.5838 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008024/0.6522, allocations: 418.6 kB / 0.5842 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006626/0.6529, allocations: 51.98 kB / 0.5842 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.654, allocations: 63.95 kB / 0.5843 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.6542, allocations: 151.4 kB / 0.5844 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.6543, allocations: 64 kB / 0.5845 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004325/0.6586, allocations: 2.438 MB / 0.5869 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.6586, allocations: 0 / 0.5869 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004817/0.6635, allocations: 0.8397 MB / 0.5877 GB, free: 10.25 MB / 0.4981 GB 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.005452/0.6689, allocations: 3.932 MB / 0.5915 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007057/0.676, allocations: 3.537 MB / 0.595 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.676, allocations: 0 / 0.595 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001098/0.6771, allocations: 0.6839 MB / 0.5957 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.6802, allocations: 461.8 kB / 0.5961 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2762/0.9565, allocations: 40.37 MB / 0.6355 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004658/0.9611, allocations: 3.096 MB / 0.6385 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003856/0.965, allocations: 1.763 MB / 0.6403 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002505/0.9675, allocations: 1.787 MB / 0.642 GB, free: 167 MB / 0.5294 GB Notification: Performance of SimCode: time 8.11e-07/0.9675, allocations: 0 / 0.642 GB, free: 167 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1011/1.069, allocations: 56.4 MB / 0.6971 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/18.72, allocations: 3.938 kB / 0.6971 GB, free: 126.3 MB / 0.5294 GB " [Timeout remaining time 641] (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: 22.15887000411749]