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.001584/0.001584, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001979/0.001979, 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.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.00148, allocations: 79.88 kB / 480.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3217, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01319/0.3349, allocations: 11.37 MB / 0.5416 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008974/0.3439, allocations: 4.055 MB / 0.5456 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.3464, allocations: 64.66 kB / 0.5456 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005326/0.3517, allocations: 2.49 MB / 0.5481 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005434/0.3572, allocations: 1.877 MB / 0.5499 GB, free: 13.83 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.3591, allocations: 0.78 MB / 0.5507 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006134/0.3652, allocations: 4.511 MB / 0.5551 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004816/0.3701, allocations: 3.328 MB / 0.5583 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003142/0.3733, allocations: 1.557 MB / 0.5598 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003461/0.3768, allocations: 2.216 MB / 0.562 GB, free: 1.367 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001314/0.3781, allocations: 340 kB / 0.5623 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.3807, allocations: 0.9558 MB / 0.5633 GB, free: 80 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00264/0.3834, allocations: 1.921 MB / 0.5651 GB, free: 14.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004254/0.3877, allocations: 2.241 MB / 0.5673 GB, free: 11.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01035/0.398, allocations: 6.857 MB / 0.574 GB, free: 5.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3981, allocations: 0 / 0.574 GB, free: 5.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3981, allocations: 0 / 0.574 GB, free: 5.016 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002998/0.3984, allocations: 0 / 0.574 GB, free: 5.016 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.01119/0.4096, allocations: 4.944 MB / 0.5789 GB, free: 15.99 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4097, allocations: 8.031 kB / 0.5789 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/0.4114, allocations: 0.7319 MB / 0.5796 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00807/0.4195, allocations: 1.991 MB / 0.5815 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006578/0.4261, allocations: 2.779 MB / 0.5842 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.4264, allocations: 266.2 kB / 0.5845 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/0.4276, allocations: 323.8 kB / 0.5848 GB, free: 9.828 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.4475, allocations: 10.24 MB / 0.5948 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000195/0.4478, allocations: 55.58 kB / 0.5948 GB, free: 14.73 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009757/0.4488, allocations: 159.8 kB / 0.595 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002996/0.4518, allocations: 1.896 MB / 0.5969 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01731/0.4691, allocations: 8.177 MB / 0.6048 GB, free: 4.48 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05091/0.52, allocations: 39.31 MB / 0.6432 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008098/0.5282, allocations: 3.302 MB / 0.6464 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.5298, allocations: 1.059 MB / 0.6475 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008831/0.5386, allocations: 5.994 MB / 0.6533 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.5387, allocations: 59.44 kB / 0.6534 GB, free: 1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.207e-06/0.5387, allocations: 0 / 0.6534 GB, free: 1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02265/0.5614, allocations: 9.746 MB / 0.6629 GB, free: 7.172 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.654e-05/0.5615, allocations: 196.9 kB / 0.6631 GB, free: 6.934 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005203/0.5667, allocations: 4.068 MB / 0.6671 GB, free: 2.84 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002205/0.567, allocations: 49.98 kB / 0.6671 GB, free: 2.785 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002119/0.5691, allocations: 3.314 MB / 0.6704 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007053/0.5698, allocations: 0.659 MB / 0.671 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.5712, allocations: 1.227 MB / 0.6722 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.444e-05/0.5713, allocations: 301.1 kB / 0.6725 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.5737, allocations: 1.648 MB / 0.6741 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004904/0.5786, allocations: 5.522 MB / 0.6795 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009698/0.5883, allocations: 7.767 MB / 0.6871 GB, free: 10.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/0.5885, allocations: 40 kB / 0.6871 GB, free: 10.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01313/0.6017, allocations: 6.902 MB / 0.6938 GB, free: 3.488 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.09e-05/0.6018, allocations: 64 kB / 0.6939 GB, free: 3.426 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.6019, allocations: 136 kB / 0.694 GB, free: 3.293 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001782/0.6021, allocations: 180 kB / 0.6942 GB, free: 3.117 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004215/0.6064, allocations: 1.428 MB / 0.6956 GB, free: 1.688 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001878/0.6066, allocations: 267 kB / 0.6959 GB, free: 1.426 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003969/0.6105, allocations: 303.4 kB / 0.6961 GB, free: 1.133 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004971/0.611, allocations: 376 kB / 0.6965 GB, free: 0.7656 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.003042/0.6141, allocations: 2.044 MB / 0.6985 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005899/0.6147, allocations: 365.5 kB / 0.6989 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/0.6153, allocations: 414.7 kB / 0.6992 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.607e-05/0.6154, allocations: 16 kB / 0.6993 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.6154, allocations: 3.938 kB / 0.6993 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.6154, allocations: 11.97 kB / 0.6993 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008967/0.6244, allocations: 5.837 MB / 0.705 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.066e-05/0.6244, allocations: 24.03 kB / 0.705 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/0.6254, allocations: 291.5 kB / 0.7053 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-05/0.6255, allocations: 28 kB / 0.7053 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.54e-05/0.6256, allocations: 44 kB / 0.7053 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.602e-05/0.6256, allocations: 35.86 kB / 0.7054 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.951e-05/0.6256, allocations: 23.94 kB / 0.7054 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.6295, allocations: 3.324 MB / 0.7087 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009015/0.6304, allocations: 438.5 kB / 0.7091 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.6308, allocations: 47.98 kB / 0.7091 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6319, allocations: 67.95 kB / 0.7092 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.6321, allocations: 155.4 kB / 0.7093 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.547e-05/0.6322, allocations: 64 kB / 0.7094 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00375/0.6359, allocations: 2.512 MB / 0.7118 GB, free: 452 kB / 0.5606 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6359, allocations: 0 / 0.7118 GB, free: 452 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004647/0.6406, allocations: 0.8828 MB / 0.7127 GB, free: 15.55 MB / 0.5763 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.004491/0.6451, allocations: 3.996 MB / 0.7166 GB, free: 11.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.006433/0.6516, allocations: 3.82 MB / 0.7203 GB, free: 7.52 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.446e-05/0.6516, allocations: 0 / 0.7203 GB, free: 7.52 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.6528, allocations: 0.7497 MB / 0.7211 GB, free: 6.773 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00298/0.6557, allocations: 477.1 kB / 0.7215 GB, free: 6.305 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3354/0.9911, allocations: 41.77 MB / 0.7623 GB, free: 152.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/0.994, allocations: 3.165 MB / 0.7654 GB, free: 148.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00348/0.9975, allocations: 1.816 MB / 0.7672 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/0.9995, allocations: 1.866 MB / 0.769 GB, free: 145.2 MB / 0.5763 GB Notification: Performance of SimCode: time 1.553e-06/0.9995, allocations: 0 / 0.769 GB, free: 145.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08529/1.085, allocations: 58.7 MB / 0.8263 GB, free: 86.88 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.26/19.35, allocations: 7.609 kB / 0.8263 GB, free: 86.87 MB / 0.5763 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.csv","/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