Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_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.001666/0.001666, allocations: 105.5 kB / 17.63 MB, free: 5.344 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.001901/0.001901, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2064/0.2064, allocations: 44.19 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 66.78 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1054, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01154/0.117, allocations: 11.39 MB / 480.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008262/0.1253, allocations: 4.053 MB / 484.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002521/0.1279, allocations: 63.81 kB / 484.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005076/0.133, allocations: 2.492 MB / 487.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005209/0.1383, allocations: 1.86 MB / 489.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.14, allocations: 0.7878 MB / 490 MB, free: 9.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00565/0.1457, allocations: 4.417 MB / 494.4 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004371/0.1501, allocations: 3.331 MB / 497.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002417/0.1525, allocations: 1.561 MB / 499.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002979/0.1555, allocations: 2.223 MB / 0.4898 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009767/0.1565, allocations: 336 kB / 0.4901 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.1587, allocations: 0.9831 MB / 0.4911 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002053/0.1608, allocations: 1.929 MB / 0.4929 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00318/0.164, allocations: 2.264 MB / 0.4952 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006868/0.1709, allocations: 6.651 MB / 0.5016 GB, free: 1.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1709, allocations: 7.938 kB / 0.5017 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1709, allocations: 0 / 0.5017 GB, free: 1.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002189/0.1711, allocations: 0 / 0.5017 GB, free: 1.719 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.2678/0.4389, allocations: 4.85 MB / 0.5064 GB, free: 46.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.716e-05/0.439, allocations: 9.797 kB / 0.5064 GB, free: 46.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003171/0.4422, allocations: 0.733 MB / 0.5071 GB, free: 46.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01472/0.4569, allocations: 1.962 MB / 0.509 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.4671, allocations: 2.943 MB / 0.5119 GB, free: 44.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005112/0.4676, allocations: 251.1 kB / 0.5121 GB, free: 44.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002401/0.4701, allocations: 330.2 kB / 0.5125 GB, free: 44.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02923/0.4993, allocations: 10.21 MB / 0.5224 GB, free: 38.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.4995, allocations: 47.38 kB / 0.5225 GB, free: 38.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008148/0.5004, allocations: 159 kB / 0.5226 GB, free: 38.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004116/0.5045, allocations: 1.904 MB / 0.5245 GB, free: 37.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02322/0.5278, allocations: 8.139 MB / 0.5324 GB, free: 29.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05963/0.5874, allocations: 39.42 MB / 0.5709 GB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008128/0.5956, allocations: 3.275 MB / 0.5741 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.5972, allocations: 1.053 MB / 0.5752 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008293/0.6055, allocations: 5.897 MB / 0.5809 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.6056, allocations: 51.56 kB / 0.581 GB, free: 10.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=148): time 3.336e-06/0.6056, allocations: 0 / 0.581 GB, free: 10.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=160): time 0.02215/0.6277, allocations: 9.446 MB / 0.5902 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.372e-05/0.6278, allocations: 149.5 kB / 0.5903 GB, free: 400 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005329/0.6332, allocations: 4.06 MB / 0.5943 GB, free: 12.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001967/0.6334, allocations: 49.7 kB / 0.5943 GB, free: 12.25 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001984/0.6354, allocations: 3.179 MB / 0.5974 GB, free: 9.023 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005398/0.636, allocations: 0.6481 MB / 0.5981 GB, free: 8.367 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/0.6373, allocations: 1.202 MB / 0.5993 GB, free: 7.152 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.6374, allocations: 301.1 kB / 0.5995 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.6398, allocations: 1.64 MB / 0.6011 GB, free: 5.211 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004723/0.6446, allocations: 5.489 MB / 0.6065 GB, free: 13.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009236/0.6538, allocations: 7.775 MB / 0.6141 GB, free: 4.098 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.654, allocations: 36 kB / 0.6141 GB, free: 4.062 MB / 446.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01275/0.6667, allocations: 6.86 MB / 0.6208 GB, free: 13.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.6669, allocations: 71.97 kB / 0.6209 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/0.6671, allocations: 136.2 kB / 0.621 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.6674, allocations: 180 kB / 0.6212 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004344/0.6718, allocations: 1.423 MB / 0.6226 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002542/0.672, allocations: 267 kB / 0.6228 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003843/0.6759, allocations: 299.6 kB / 0.6231 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007541/0.6767, allocations: 376 kB / 0.6235 GB, free: 10.47 MB / 462.1 MB 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.00355/0.6802, allocations: 2.029 MB / 0.6255 GB, free: 8.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008157/0.681, allocations: 351.5 kB / 0.6258 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002717/0.6838, allocations: 1.349 MB / 0.6271 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/0.6838, allocations: 16 kB / 0.6271 GB, free: 6.707 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.6838, allocations: 3.984 kB / 0.6271 GB, free: 6.703 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.6839, allocations: 7.984 kB / 0.6272 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009388/0.6932, allocations: 5.826 MB / 0.6328 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/0.6933, allocations: 16 kB / 0.6329 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000978/0.6943, allocations: 283.5 kB / 0.6331 GB, free: 268 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.65e-05/0.6943, allocations: 27.94 kB / 0.6332 GB, free: 240 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.765e-05/0.6944, allocations: 44 kB / 0.6332 GB, free: 196 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.482e-05/0.6944, allocations: 35.86 kB / 0.6332 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.669e-05/0.6945, allocations: 23.94 kB / 0.6333 GB, free: 136 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003966/0.6984, allocations: 3.279 MB / 0.6365 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009211/0.6994, allocations: 424.4 kB / 0.6369 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003305/0.6997, allocations: 51.97 kB / 0.6369 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.7008, allocations: 63.97 kB / 0.637 GB, free: 12.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.701, allocations: 139.4 kB / 0.6371 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-05/0.7011, allocations: 75.98 kB / 0.6372 GB, free: 11.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003644/0.7048, allocations: 2.516 MB / 0.6396 GB, free: 9.309 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7048, allocations: 0 / 0.6396 GB, free: 9.309 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004691/0.7095, allocations: 0.8996 MB / 0.6405 GB, free: 8.414 MB / 478.1 MB 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.004301/0.7138, allocations: 3.938 MB / 0.6444 GB, free: 4.227 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006773/0.7206, allocations: 3.959 MB / 0.6482 GB, free: 328 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/0.7206, allocations: 7.938 kB / 0.6482 GB, free: 316 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.7218, allocations: 0.7463 MB / 0.649 GB, free: 15.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/0.7249, allocations: 488.6 kB / 0.6494 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0663/0.7912, allocations: 47.27 MB / 0.6956 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004562/0.7958, allocations: 3.173 MB / 0.6987 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00438/0.8002, allocations: 1.816 MB / 0.7005 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002327/0.8025, allocations: 1.862 MB / 0.7023 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of SimCode: time 9.12e-07/0.8025, allocations: 0 / 0.7023 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3027/1.105, allocations: 62.67 MB / 0.7635 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.705/10.81, allocations: 16.34 kB / 0.7635 GB, free: 146.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches