Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001862/0.001862, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002148/0.002148, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2281/0.2281, allocations: 46.12 MB / 344.4 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002446/0.002446, allocations: 79.86 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3203, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01259/0.3329, allocations: 11.36 MB / 0.5417 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00788/0.3408, allocations: 4.054 MB / 0.5457 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001209/0.3421, allocations: 69.62 kB / 0.5458 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00454/0.3467, allocations: 2.486 MB / 0.5482 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004192/0.3509, allocations: 1.836 MB / 0.55 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.3524, allocations: 0.7722 MB / 0.5507 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005436/0.3579, allocations: 4.507 MB / 0.5551 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003647/0.3615, allocations: 3.336 MB / 0.5584 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.3634, allocations: 1.546 MB / 0.5599 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002714/0.3661, allocations: 2.216 MB / 0.5621 GB, free: 1.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005863/0.3667, allocations: 332 kB / 0.5624 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.3685, allocations: 0.9636 MB / 0.5633 GB, free: 76 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001774/0.3703, allocations: 1.913 MB / 0.5652 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.3725, allocations: 2.237 MB / 0.5674 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007442/0.38, allocations: 6.854 MB / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.38, allocations: 0 / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.38, allocations: 0 / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001154/0.3801, allocations: 4 kB / 0.5741 GB, free: 5.023 MB / 430.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.008252/0.3884, allocations: 4.94 MB / 0.5789 GB, free: 4 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.3885, allocations: 8.078 kB / 0.5789 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008702/0.3893, allocations: 0.7358 MB / 0.5796 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007263/0.3966, allocations: 1.991 MB / 0.5816 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004775/0.4014, allocations: 2.779 MB / 0.5843 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.4016, allocations: 258.2 kB / 0.5845 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005458/0.4022, allocations: 323.8 kB / 0.5848 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.4188, allocations: 10.25 MB / 0.5948 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.4189, allocations: 51.62 kB / 0.5949 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004062/0.4193, allocations: 155.9 kB / 0.595 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002986/0.4223, allocations: 1.908 MB / 0.5969 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0179/0.4402, allocations: 8.169 MB / 0.6049 GB, free: 4.492 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06327/0.5035, allocations: 39.31 MB / 0.6433 GB, free: 12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008451/0.512, allocations: 3.307 MB / 0.6465 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.5138, allocations: 1.059 MB / 0.6475 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008853/0.5226, allocations: 5.998 MB / 0.6534 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.5227, allocations: 59.5 kB / 0.6534 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.128e-06/0.5227, allocations: 0 / 0.6534 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02464/0.5474, allocations: 9.74 MB / 0.663 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5475, allocations: 200.9 kB / 0.6631 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005712/0.5532, allocations: 4.068 MB / 0.6671 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001759/0.5534, allocations: 49.7 kB / 0.6672 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002719/0.5562, allocations: 3.314 MB / 0.6704 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007247/0.5569, allocations: 0.6629 MB / 0.671 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001651/0.5586, allocations: 1.219 MB / 0.6722 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.5587, allocations: 301.1 kB / 0.6725 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0027/0.5614, allocations: 1.644 MB / 0.6741 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006133/0.5676, allocations: 5.518 MB / 0.6795 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009751/0.5773, allocations: 7.769 MB / 0.6871 GB, free: 10.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/0.5775, allocations: 43.98 kB / 0.6872 GB, free: 10.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01344/0.5909, allocations: 6.896 MB / 0.6939 GB, free: 3.508 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.384e-05/0.5911, allocations: 64 kB / 0.6939 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.5912, allocations: 136 kB / 0.6941 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.5914, allocations: 180 kB / 0.6942 GB, free: 3.137 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/0.5956, allocations: 1.431 MB / 0.6956 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002246/0.5958, allocations: 271.1 kB / 0.6959 GB, free: 1.438 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/0.5994, allocations: 307.5 kB / 0.6962 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007133/0.6001, allocations: 380 kB / 0.6966 GB, free: 0.7695 MB / 0.545 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.003492/0.6036, allocations: 2.029 MB / 0.6985 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006748/0.6043, allocations: 377.5 kB / 0.6989 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008366/0.6052, allocations: 410.7 kB / 0.6993 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-05/0.6052, allocations: 16 kB / 0.6993 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/0.6052, allocations: 4 kB / 0.6993 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.6053, allocations: 11.91 kB / 0.6993 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.6154, allocations: 5.841 MB / 0.705 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.652e-05/0.6155, allocations: 20 kB / 0.705 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.6165, allocations: 291.6 kB / 0.7053 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.862e-05/0.6166, allocations: 24 kB / 0.7053 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.139e-05/0.6167, allocations: 48 kB / 0.7054 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.889e-05/0.6167, allocations: 35.86 kB / 0.7054 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.208e-05/0.6167, allocations: 27.88 kB / 0.7055 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.6211, allocations: 3.331 MB / 0.7087 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008327/0.622, allocations: 430.5 kB / 0.7091 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003244/0.6223, allocations: 47.98 kB / 0.7092 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6234, allocations: 67.95 kB / 0.7092 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.6236, allocations: 147.4 kB / 0.7094 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.6237, allocations: 67.98 kB / 0.7094 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004174/0.6279, allocations: 2.516 MB / 0.7119 GB, free: 460 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6279, allocations: 0 / 0.7119 GB, free: 460 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004745/0.6326, allocations: 0.8827 MB / 0.7128 GB, free: 15.57 MB / 0.5762 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.00539/0.638, allocations: 3.994 MB / 0.7167 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006956/0.645, allocations: 3.813 MB / 0.7204 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/0.6451, allocations: 4.312 kB / 0.7204 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.6463, allocations: 0.7566 MB / 0.7211 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.6492, allocations: 474 kB / 0.7216 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2791/0.9283, allocations: 41.76 MB / 0.7624 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/0.931, allocations: 3.173 MB / 0.7655 GB, free: 149.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003362/0.9344, allocations: 1.816 MB / 0.7672 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001724/0.9362, allocations: 1.862 MB / 0.769 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/0.9362, allocations: 0 / 0.769 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08502/1.021, allocations: 58.71 MB / 0.8264 GB, free: 87.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.59/23.61, allocations: 11.98 kB / 0.8264 GB, free: 87.09 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches