Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.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.001366/0.001366, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.001645/0.001645, allocations: 213.4 kB / 22.99 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 207.7 MB / 233.8 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.25 MB / 330.3 MB, free: 9.324 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002286/0.002286, allocations: 67.91 kB / 467.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1417, allocations: 61.05 MB / 0.5162 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01305/0.1547, allocations: 10.01 MB / 0.5259 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009524/0.1642, allocations: 3.856 MB / 0.5297 GB, free: 9.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002246/0.1665, allocations: 83.56 kB / 0.5298 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005157/0.1716, allocations: 2.441 MB / 0.5322 GB, free: 6.711 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005981/0.1776, allocations: 1.926 MB / 0.5341 GB, free: 4.777 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.1795, allocations: 0.7956 MB / 0.5348 GB, free: 3.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.297/0.4766, allocations: 4.452 MB / 0.5392 GB, free: 11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005216/0.4818, allocations: 2.783 MB / 0.5419 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00387/0.4856, allocations: 1.607 MB / 0.5435 GB, free: 10.69 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005437/0.4911, allocations: 2.277 MB / 0.5457 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001494/0.4926, allocations: 334.5 kB / 0.546 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003239/0.4958, allocations: 0.8844 MB / 0.5469 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003394/0.4992, allocations: 1.992 MB / 0.5488 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003996/0.5032, allocations: 1.699 MB / 0.5505 GB, free: 9.605 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01132/0.5145, allocations: 6.969 MB / 0.5573 GB, free: 7.785 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.5145, allocations: 0 / 0.5573 GB, free: 7.785 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.5145, allocations: 0.5312 kB / 0.5573 GB, free: 7.785 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00034/0.5149, allocations: 2.594 kB / 0.5573 GB, free: 7.785 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01368/0.5286, allocations: 4.925 MB / 0.5621 GB, free: 5.141 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.774e-05/0.5286, allocations: 13.47 kB / 0.5621 GB, free: 5.137 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001603/0.5302, allocations: 0.7355 MB / 0.5628 GB, free: 4.801 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007859/0.5381, allocations: 1.996 MB / 0.5648 GB, free: 4.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00851/0.5466, allocations: 3.236 MB / 0.5679 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002403/0.5468, allocations: 257.5 kB / 0.5682 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/0.548, allocations: 334 kB / 0.5685 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02154/0.5695, allocations: 10.31 MB / 0.5786 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001494/0.5697, allocations: 48.67 kB / 0.5786 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005172/0.5702, allocations: 156.8 kB / 0.5788 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003026/0.5732, allocations: 1.905 MB / 0.5806 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01895/0.5922, allocations: 8.139 MB / 0.5886 GB, free: 6.609 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05459/0.6468, allocations: 37.87 MB / 0.6256 GB, free: 120 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007981/0.6548, allocations: 2.685 MB / 0.6282 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.6563, allocations: 0.9691 MB / 0.6291 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008451/0.6648, allocations: 4.33 MB / 0.6333 GB, free: 8.102 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.6648, allocations: 51.44 kB / 0.6334 GB, free: 8.047 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.308e-06/0.6648, allocations: 0 / 0.6334 GB, free: 8.047 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.0239/0.6887, allocations: 9.644 MB / 0.6428 GB, free: 14.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/0.6889, allocations: 196.9 kB / 0.643 GB, free: 14.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006895/0.6958, allocations: 4.329 MB / 0.6472 GB, free: 9.789 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/0.6959, allocations: 49.7 kB / 0.6473 GB, free: 9.734 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00285/0.6987, allocations: 3.319 MB / 0.6505 GB, free: 6.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007166/0.6995, allocations: 0.6603 MB / 0.6512 GB, free: 5.781 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00173/0.7012, allocations: 1.223 MB / 0.6524 GB, free: 4.547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.7013, allocations: 304.9 kB / 0.6526 GB, free: 4.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002759/0.7041, allocations: 1.635 MB / 0.6542 GB, free: 2.609 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00628/0.7104, allocations: 5.561 MB / 0.6597 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.7207, allocations: 7.753 MB / 0.6672 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/0.7209, allocations: 36 kB / 0.6673 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01356/0.7344, allocations: 6.887 MB / 0.674 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001819/0.7346, allocations: 67.28 kB / 0.6741 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002744/0.7349, allocations: 136 kB / 0.6742 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002856/0.7352, allocations: 180 kB / 0.6744 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004448/0.7396, allocations: 1.42 MB / 0.6758 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003288/0.7399, allocations: 275 kB / 0.676 GB, free: 8.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004558/0.7445, allocations: 291.7 kB / 0.6763 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007724/0.7453, allocations: 379.9 kB / 0.6767 GB, free: 8.051 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (767): * Single equations (assignments): 764 * 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.004784/0.7501, allocations: 2.037 MB / 0.6787 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/0.7513, allocations: 373.5 kB / 0.679 GB, free: 5.637 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004088/0.7554, allocations: 1.352 MB / 0.6803 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.544e-05/0.7554, allocations: 20 kB / 0.6803 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.7555, allocations: 0 / 0.6803 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.643e-05/0.7555, allocations: 7.922 kB / 0.6804 GB, free: 4.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/0.7704, allocations: 5.558 MB / 0.6858 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-05/0.7704, allocations: 16 kB / 0.6858 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.7715, allocations: 279.5 kB / 0.6861 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.628e-05/0.7715, allocations: 28 kB / 0.6861 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.7717, allocations: 51.2 kB / 0.6861 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-05/0.7717, allocations: 35.86 kB / 0.6862 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.366e-05/0.7717, allocations: 23.94 kB / 0.6862 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.7774, allocations: 3.298 MB / 0.6894 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00183/0.7793, allocations: 481.3 kB / 0.6899 GB, free: 9.992 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/0.7803, allocations: 47.61 kB / 0.6899 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/0.7824, allocations: 63.95 kB / 0.69 GB, free: 9.887 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/0.7826, allocations: 151.3 kB / 0.6901 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.7827, allocations: 67.75 kB / 0.6902 GB, free: 9.676 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005693/0.7884, allocations: 2.548 MB / 0.6927 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7884, allocations: 0 / 0.6927 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00616/0.7946, allocations: 0.8945 MB / 0.6936 GB, free: 6.223 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * 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.005972/0.8006, allocations: 3.967 MB / 0.6974 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007744/0.8083, allocations: 3.652 MB / 0.701 GB, free: 14.39 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-05/0.8083, allocations: 4.812 kB / 0.701 GB, free: 14.39 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.8096, allocations: 0.7031 MB / 0.7017 GB, free: 13.69 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00484/0.8145, allocations: 474.2 kB / 0.7021 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09036/0.9048, allocations: 41.89 MB / 0.743 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007102/0.9119, allocations: 2.639 MB / 0.7456 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005308/0.9172, allocations: 1.824 MB / 0.7474 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003905/0.9211, allocations: 1.878 MB / 0.7492 GB, free: 6.52 MB / 0.5919 GB Notification: Performance of SimCode: time 1.863e-06/0.9211, allocations: 3.938 kB / 0.7492 GB, free: 6.516 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3903/1.311, allocations: 59.14 MB / 0.807 GB, free: 207.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.88, allocations: 16.16 kB / 0.807 GB, free: 207.3 MB / 0.6075 GB " [Timeout remaining time 643] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.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.682944723870605]