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.001474/0.00148, allocations: 118.8 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001892/0.001892, allocations: 198 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3166, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01361/0.3303, allocations: 11.37 MB / 0.5416 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.3405, allocations: 4.058 MB / 0.5456 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/0.3429, allocations: 66 kB / 0.5456 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005446/0.3484, allocations: 2.494 MB / 0.5481 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006051/0.3545, allocations: 1.826 MB / 0.5499 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.3567, allocations: 0.7839 MB / 0.5506 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006916/0.3636, allocations: 4.505 MB / 0.555 GB, free: 8.609 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005456/0.3691, allocations: 3.329 MB / 0.5583 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.3729, allocations: 1.554 MB / 0.5598 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003739/0.3767, allocations: 2.219 MB / 0.562 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001305/0.378, allocations: 336 kB / 0.5623 GB, free: 1.121 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00259/0.3806, allocations: 0.9559 MB / 0.5632 GB, free: 168 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002552/0.3832, allocations: 1.925 MB / 0.5651 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003643/0.3869, allocations: 2.237 MB / 0.5673 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008037/0.3949, allocations: 6.828 MB / 0.5739 GB, free: 5.133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.395, allocations: 0 / 0.5739 GB, free: 5.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.395, allocations: 0 / 0.5739 GB, free: 5.133 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002231/0.3952, allocations: 0 / 0.5739 GB, free: 5.133 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.01058/0.4058, allocations: 4.811 MB / 0.5786 GB, free: 256 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4059, allocations: 12.03 kB / 0.5787 GB, free: 244 kB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001777/0.4077, allocations: 0.7358 MB / 0.5794 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008137/0.4158, allocations: 1.968 MB / 0.5813 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006936/0.4228, allocations: 2.77 MB / 0.584 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/0.4231, allocations: 254.2 kB / 0.5842 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001234/0.4244, allocations: 331.8 kB / 0.5846 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.4443, allocations: 10.23 MB / 0.5946 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.4446, allocations: 55.55 kB / 0.5946 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001223/0.4459, allocations: 155.9 kB / 0.5948 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003149/0.449, allocations: 1.908 MB / 0.5966 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01804/0.4671, allocations: 8.165 MB / 0.6046 GB, free: 4.777 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05183/0.519, allocations: 39.24 MB / 0.6429 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008361/0.5274, allocations: 3.293 MB / 0.6461 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001682/0.5291, allocations: 1.059 MB / 0.6472 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009708/0.5388, allocations: 5.989 MB / 0.653 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/0.5389, allocations: 55.44 kB / 0.6531 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 5.6e-06/0.5389, allocations: 0 / 0.6531 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02356/0.5625, allocations: 9.522 MB / 0.6624 GB, free: 7.746 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.5626, allocations: 196.9 kB / 0.6625 GB, free: 7.508 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006923/0.5696, allocations: 4.063 MB / 0.6665 GB, free: 3.418 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002495/0.5699, allocations: 49.7 kB / 0.6666 GB, free: 3.363 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002401/0.5723, allocations: 3.186 MB / 0.6697 GB, free: 132 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007831/0.5731, allocations: 0.6368 MB / 0.6703 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002004/0.5751, allocations: 1.206 MB / 0.6715 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.5752, allocations: 301.1 kB / 0.6718 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002786/0.578, allocations: 1.644 MB / 0.6734 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005304/0.5833, allocations: 5.518 MB / 0.6788 GB, free: 4.859 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008845/0.5922, allocations: 7.775 MB / 0.6863 GB, free: 11.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001342/0.5924, allocations: 40 kB / 0.6864 GB, free: 11.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01233/0.6047, allocations: 6.878 MB / 0.6931 GB, free: 4.234 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.6049, allocations: 66.34 kB / 0.6932 GB, free: 4.172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002161/0.6051, allocations: 136 kB / 0.6933 GB, free: 4.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.6053, allocations: 184 kB / 0.6935 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004298/0.6096, allocations: 1.428 MB / 0.6949 GB, free: 2.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002429/0.6099, allocations: 267 kB / 0.6951 GB, free: 2.168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00387/0.6138, allocations: 303.5 kB / 0.6954 GB, free: 1.871 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008335/0.6146, allocations: 379.9 kB / 0.6958 GB, free: 1.5 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.004048/0.6187, allocations: 2.029 MB / 0.6978 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000899/0.6196, allocations: 351.5 kB / 0.6981 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.6207, allocations: 414.7 kB / 0.6985 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.15e-05/0.6208, allocations: 20 kB / 0.6985 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.6208, allocations: 0 / 0.6985 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.407e-05/0.6208, allocations: 11.91 kB / 0.6985 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.6324, allocations: 5.84 MB / 0.7042 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.925e-05/0.6325, allocations: 20.06 kB / 0.7042 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.6335, allocations: 283.5 kB / 0.7045 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.75e-05/0.6336, allocations: 24 kB / 0.7045 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.6337, allocations: 48 kB / 0.7046 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.973e-05/0.6337, allocations: 39.86 kB / 0.7046 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.585e-05/0.6337, allocations: 23.88 kB / 0.7046 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004518/0.6383, allocations: 3.303 MB / 0.7079 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009565/0.6392, allocations: 408.9 kB / 0.7083 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005185/0.6398, allocations: 55.98 kB / 0.7083 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.6411, allocations: 67.95 kB / 0.7084 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.6412, allocations: 147.4 kB / 0.7085 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6414, allocations: 67.98 kB / 0.7086 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004237/0.6456, allocations: 2.516 MB / 0.711 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/0.6456, allocations: 0 / 0.711 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00473/0.6504, allocations: 0.8906 MB / 0.7119 GB, free: 368 kB / 0.5606 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.004788/0.6552, allocations: 3.972 MB / 0.7158 GB, free: 12.12 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.006226/0.6614, allocations: 3.82 MB / 0.7195 GB, free: 8.34 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/0.6614, allocations: 4 kB / 0.7195 GB, free: 8.336 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.6626, allocations: 0.7536 MB / 0.7203 GB, free: 7.586 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/0.6659, allocations: 471.8 kB / 0.7207 GB, free: 7.121 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3183/0.9841, allocations: 41.58 MB / 0.7613 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003083/0.9873, allocations: 3.165 MB / 0.7644 GB, free: 150.2 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003753/0.991, allocations: 1.812 MB / 0.7662 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001974/0.993, allocations: 1.873 MB / 0.768 GB, free: 146.6 MB / 0.5763 GB Notification: Performance of SimCode: time 1.192e-06/0.9931, allocations: 0 / 0.768 GB, free: 146.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/1.103, allocations: 59.46 MB / 0.8261 GB, free: 87.47 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/18.98, allocations: 3.984 kB / 0.8261 GB, free: 87.46 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 & /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