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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 105 kB / 16.4 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 189.5 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1838/0.1838, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 69.47 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09323, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.0114/0.1047, allocations: 11.46 MB / 0.4986 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007778/0.1125, allocations: 4.039 MB / 0.5025 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.1141, allocations: 63.81 kB / 0.5026 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004257/0.1184, allocations: 2.495 MB / 0.505 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004092/0.1225, allocations: 1.879 MB / 0.5069 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.124, allocations: 0.7839 MB / 0.5076 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004958/0.129, allocations: 4.457 MB / 0.512 GB, free: 3.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003873/0.1329, allocations: 3.339 MB / 0.5152 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.1354, allocations: 1.581 MB / 0.5168 GB, free: 14.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002889/0.1383, allocations: 2.227 MB / 0.519 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008505/0.1392, allocations: 340 kB / 0.5193 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.1412, allocations: 0.9792 MB / 0.5202 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001888/0.1431, allocations: 1.952 MB / 0.5222 GB, free: 8.543 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002656/0.1458, allocations: 2.264 MB / 0.5244 GB, free: 6.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2003/0.346, allocations: 6.903 MB / 0.5311 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.3461, allocations: 0 / 0.5311 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3461, allocations: 0 / 0.5311 GB, free: 15.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002611/0.3464, allocations: 1.469 kB / 0.5311 GB, free: 15.96 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.009975/0.3564, allocations: 4.88 MB / 0.5359 GB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3564, allocations: 13.73 kB / 0.5359 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.3576, allocations: 0.7302 MB / 0.5366 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007648/0.3652, allocations: 1.964 MB / 0.5385 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006843/0.3721, allocations: 3.281 MB / 0.5417 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/0.3724, allocations: 257.5 kB / 0.542 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.3736, allocations: 330.5 kB / 0.5423 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01894/0.3926, allocations: 10.2 MB / 0.5522 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001533/0.3928, allocations: 45.94 kB / 0.5523 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005342/0.3933, allocations: 165.8 kB / 0.5524 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002635/0.3959, allocations: 1.905 MB / 0.5543 GB, free: 9.875 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.4106, allocations: 8.142 MB / 0.5623 GB, free: 7.586 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03926/0.4499, allocations: 39.29 MB / 0.6006 GB, free: 2.902 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007579/0.4575, allocations: 3.266 MB / 0.6038 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001446/0.459, allocations: 1.056 MB / 0.6048 GB, free: 14.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/0.4668, allocations: 5.913 MB / 0.6106 GB, free: 8.195 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.4668, allocations: 48.66 kB / 0.6107 GB, free: 8.145 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 3.697e-06/0.4668, allocations: 0 / 0.6107 GB, free: 8.145 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02275/0.4896, allocations: 9.559 MB / 0.62 GB, free: 14.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.4897, allocations: 196.9 kB / 0.6202 GB, free: 14.27 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005723/0.4954, allocations: 4.09 MB / 0.6242 GB, free: 10.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001702/0.4956, allocations: 51.73 kB / 0.6242 GB, free: 10.11 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001974/0.4976, allocations: 3.195 MB / 0.6274 GB, free: 6.926 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005826/0.4982, allocations: 0.6318 MB / 0.628 GB, free: 6.301 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001447/0.4997, allocations: 1.21 MB / 0.6292 GB, free: 5.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.4998, allocations: 306.7 kB / 0.6294 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.5022, allocations: 1.639 MB / 0.631 GB, free: 3.137 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004624/0.5068, allocations: 5.507 MB / 0.6364 GB, free: 11.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/0.5143, allocations: 7.762 MB / 0.644 GB, free: 2.621 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.546e-05/0.5144, allocations: 40 kB / 0.644 GB, free: 2.582 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01017/0.5246, allocations: 6.859 MB / 0.6507 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.5247, allocations: 64 kB / 0.6508 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001216/0.5248, allocations: 139.1 kB / 0.6509 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.525, allocations: 184 kB / 0.6511 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/0.5288, allocations: 1.419 MB / 0.6525 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001734/0.529, allocations: 267 kB / 0.6528 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003355/0.5323, allocations: 299.7 kB / 0.653 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/0.5328, allocations: 371.9 kB / 0.6534 GB, free: 9.137 MB / 0.4981 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.002767/0.5355, allocations: 2.039 MB / 0.6554 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005067/0.5361, allocations: 351.5 kB / 0.6557 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.5381, allocations: 1.347 MB / 0.657 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/0.5381, allocations: 20 kB / 0.6571 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5381, allocations: 0 / 0.6571 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.5381, allocations: 7.969 kB / 0.6571 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008245/0.5464, allocations: 5.83 MB / 0.6628 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-05/0.5464, allocations: 20 kB / 0.6628 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009798/0.5474, allocations: 280.4 kB / 0.663 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.236e-05/0.5475, allocations: 24 kB / 0.6631 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-05/0.5475, allocations: 48 kB / 0.6631 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.523e-05/0.5476, allocations: 39.86 kB / 0.6631 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.469e-05/0.5476, allocations: 23.88 kB / 0.6632 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003603/0.5512, allocations: 3.288 MB / 0.6664 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.5523, allocations: 0.5258 MB / 0.6669 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.5527, allocations: 47.98 kB / 0.6669 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.5539, allocations: 67.86 kB / 0.667 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.554, allocations: 143.5 kB / 0.6671 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.24e-05/0.5541, allocations: 68 kB / 0.6672 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003536/0.5577, allocations: 2.54 MB / 0.6697 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5577, allocations: 0 / 0.6697 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004685/0.5624, allocations: 0.8984 MB / 0.6706 GB, free: 6.973 MB / 0.5137 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.004444/0.5668, allocations: 3.953 MB / 0.6744 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006095/0.573, allocations: 3.813 MB / 0.6781 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.811e-05/0.573, allocations: 4 kB / 0.6782 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.5741, allocations: 0.7454 MB / 0.6789 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/0.5773, allocations: 481.2 kB / 0.6793 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05419/0.6315, allocations: 41.7 MB / 0.7201 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003147/0.6347, allocations: 3.185 MB / 0.7232 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003827/0.6385, allocations: 1.816 MB / 0.7249 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002192/0.6407, allocations: 1.874 MB / 0.7268 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of SimCode: time 6.92e-07/0.6407, allocations: 1.312 kB / 0.7268 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/0.9279, allocations: 59.88 MB / 0.7852 GB, free: 199.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.61/18.53, allocations: 0 / 0.7852 GB, free: 199.9 MB / 0.5919 GB (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 --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) 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) Reference file matches