Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001887/0.001887, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002435/0.002435, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 59.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1108, allocations: 53.38 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.2467/0.3576, allocations: 9.041 MB / 435.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006573/0.3641, allocations: 2.729 MB / 438.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.3661, allocations: 56.62 kB / 438.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004374/0.3705, allocations: 1.853 MB / 440.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004505/0.375, allocations: 1.351 MB / 441.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009457/0.376, allocations: 219.6 kB / 441.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004647/0.3806, allocations: 2.337 MB / 444 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00367/0.3843, allocations: 1.785 MB / 445.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002775/0.387, allocations: 1.009 MB / 446.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005058/0.3921, allocations: 2.568 MB / 449.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.3933, allocations: 192.6 kB / 449.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002388/0.3957, allocations: 0.5201 MB / 450 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002618/0.3983, allocations: 1.342 MB / 451.4 MB, free: 408 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004499/0.4028, allocations: 1.572 MB / 452.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.4142, allocations: 4.851 MB / 457.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4142, allocations: 0.9375 kB / 457.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4142, allocations: 0 / 457.8 MB, free: 12.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002799/0.4145, allocations: 0 / 457.8 MB, free: 12.06 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.01292/0.4274, allocations: 3.719 MB / 461.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.4274, allocations: 10.19 kB / 461.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001883/0.4293, allocations: 0.5384 MB / 462.1 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007286/0.4366, allocations: 1.719 MB / 463.8 MB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004858/0.4415, allocations: 1.599 MB / 465.4 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.4417, allocations: 153.8 kB / 465.5 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.4428, allocations: 191 kB / 465.7 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/0.4578, allocations: 6.989 MB / 472.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.4579, allocations: 31.7 kB / 472.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008029/0.4587, allocations: 95.89 kB / 472.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002806/0.4615, allocations: 1.559 MB / 474.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/0.4735, allocations: 5.489 MB / 479.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03851/0.512, allocations: 27.18 MB / 0.4952 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003063/0.5151, allocations: 1.583 MB / 0.4967 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007926/0.5159, allocations: 476.2 kB / 0.4972 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005515/0.5214, allocations: 2.702 MB / 0.4998 GB, free: 9.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.5214, allocations: 42.5 kB / 0.4998 GB, free: 9.109 MB / 414.1 MB Notification: Performance of pre-optimization done (n=89): time 4.067e-06/0.5214, allocations: 4 kB / 0.4999 GB, free: 9.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.004637/0.5261, allocations: 1.769 MB / 0.5016 GB, free: 7.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5262, allocations: 217.6 kB / 0.5018 GB, free: 7.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006404/0.5326, allocations: 3.67 MB / 0.5054 GB, free: 3.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.5328, allocations: 33.7 kB / 0.5054 GB, free: 3.371 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/0.5353, allocations: 2.8 MB / 0.5081 GB, free: 0.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005862/0.5359, allocations: 405.1 kB / 0.5085 GB, free: 148 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.5373, allocations: 0.9646 MB / 0.5095 GB, free: 15.17 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5374, allocations: 301.1 kB / 0.5098 GB, free: 14.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/0.5393, allocations: 1.214 MB / 0.5109 GB, free: 13.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004637/0.544, allocations: 4.53 MB / 0.5154 GB, free: 7.422 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007917/0.5519, allocations: 6.277 MB / 0.5215 GB, free: 15.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/0.552, allocations: 36 kB / 0.5215 GB, free: 15.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01137/0.5634, allocations: 5.468 MB / 0.5269 GB, free: 9.965 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.302e-05/0.5635, allocations: 56 kB / 0.5269 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001437/0.5636, allocations: 120 kB / 0.527 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.5638, allocations: 152 kB / 0.5272 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/0.5671, allocations: 1.088 MB / 0.5282 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001912/0.5673, allocations: 232.6 kB / 0.5285 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003921/0.5712, allocations: 0.6981 MB / 0.5291 GB, free: 7.625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008017/0.572, allocations: 320 kB / 0.5294 GB, free: 7.312 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (589): * Single equations (assignments): 585 * Array equations: 4 * 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.003636/0.5756, allocations: 1.712 MB / 0.5311 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000826/0.5765, allocations: 313.8 kB / 0.5314 GB, free: 5.285 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.5779, allocations: 0.493 MB / 0.5319 GB, free: 4.789 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.234e-05/0.578, allocations: 20 kB / 0.5319 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.578, allocations: 3.938 kB / 0.5319 GB, free: 4.766 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.578, allocations: 7.984 kB / 0.5319 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007627/0.5856, allocations: 3.145 MB / 0.535 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.5856, allocations: 4 kB / 0.535 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.5862, allocations: 99.88 kB / 0.5351 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.456e-05/0.5862, allocations: 8 kB / 0.5351 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.287e-05/0.5863, allocations: 23.92 kB / 0.5351 GB, free: 1.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.098e-05/0.5863, allocations: 12.22 kB / 0.5351 GB, free: 1.387 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.5863, allocations: 11.98 kB / 0.5352 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.5892, allocations: 2.231 MB / 0.5373 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.5902, allocations: 442.6 kB / 0.5378 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/0.5905, allocations: 23.92 kB / 0.5378 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009261/0.5915, allocations: 31.97 kB / 0.5378 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.5916, allocations: 35.95 kB / 0.5378 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.819e-05/0.5917, allocations: 39.86 kB / 0.5379 GB, free: 14.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004443/0.5961, allocations: 2.337 MB / 0.5402 GB, free: 12.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5961, allocations: 0 / 0.5402 GB, free: 12.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004601/0.6007, allocations: 0.8031 MB / 0.5409 GB, free: 11.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 2 (prismatic.v,position.s) * 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 (58): * Single equations (assignments): 54 * Array equations: 4 * 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.003523/0.6042, allocations: 2.864 MB / 0.5437 GB, free: 8.461 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005455/0.6097, allocations: 2.703 MB / 0.5464 GB, free: 5.781 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.6097, allocations: 0 / 0.5464 GB, free: 5.781 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006474/0.6103, allocations: 400.5 kB / 0.5468 GB, free: 5.391 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/0.613, allocations: 379.9 kB / 0.5471 GB, free: 5.031 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05584/0.6689, allocations: 33.25 MB / 0.5796 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003357/0.6722, allocations: 2.691 MB / 0.5822 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003567/0.6758, allocations: 1.486 MB / 0.5837 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002433/0.6782, allocations: 1.464 MB / 0.5851 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of SimCode: time 1.252e-06/0.6782, allocations: 4 kB / 0.5851 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3016/0.9799, allocations: 47.74 MB / 0.6317 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.07/18.05, allocations: 5.891 kB / 0.6317 GB, free: 179.3 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Surfaces.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Surfaces/Surfaces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable prismatic.s in file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv. Warning: Get data of variable prismatic.s from file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.868126339046285]