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.001131/0.001131, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1965/0.1965, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3019, allocations: 62.44 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01138/0.3133, allocations: 11.37 MB / 0.5416 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007927/0.3213, allocations: 4.055 MB / 0.5456 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.3231, allocations: 64.28 kB / 0.5456 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004669/0.3278, allocations: 2.49 MB / 0.5481 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.3323, allocations: 1.828 MB / 0.5499 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.3341, allocations: 0.78 MB / 0.5506 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005586/0.3397, allocations: 4.503 MB / 0.555 GB, free: 8.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003912/0.3436, allocations: 3.337 MB / 0.5583 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.3459, allocations: 1.546 MB / 0.5598 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003059/0.349, allocations: 2.223 MB / 0.562 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009689/0.35, allocations: 336 kB / 0.5623 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002422/0.3524, allocations: 0.9597 MB / 0.5632 GB, free: 120 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002236/0.3547, allocations: 1.917 MB / 0.5651 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003256/0.3579, allocations: 2.237 MB / 0.5673 GB, free: 11.95 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007176/0.3651, allocations: 6.828 MB / 0.5739 GB, free: 5.094 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3652, allocations: 4 kB / 0.5739 GB, free: 5.09 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3652, allocations: 0 / 0.5739 GB, free: 5.09 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002162/0.3654, allocations: 0 / 0.5739 GB, free: 5.09 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.00929/0.3747, allocations: 4.811 MB / 0.5786 GB, free: 212 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3747, allocations: 12.03 kB / 0.5786 GB, free: 200 kB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001331/0.3761, allocations: 0.7319 MB / 0.5794 GB, free: 15.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007031/0.3831, allocations: 1.968 MB / 0.5813 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004779/0.3879, allocations: 2.766 MB / 0.584 GB, free: 10.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.3881, allocations: 258.2 kB / 0.5842 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000584/0.3887, allocations: 335.8 kB / 0.5846 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4041, allocations: 10.23 MB / 0.5945 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.4042, allocations: 43.62 kB / 0.5946 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004234/0.4046, allocations: 159.9 kB / 0.5947 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002539/0.4072, allocations: 1.908 MB / 0.5966 GB, free: 12.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/0.4226, allocations: 8.169 MB / 0.6046 GB, free: 4.738 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04615/0.4688, allocations: 39.24 MB / 0.6429 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/0.4768, allocations: 3.313 MB / 0.6461 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.4783, allocations: 1.06 MB / 0.6472 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008423/0.4868, allocations: 5.981 MB / 0.653 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.4869, allocations: 55.5 kB / 0.6531 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 3.898e-06/0.4869, allocations: 0 / 0.6531 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02196/0.5088, allocations: 9.516 MB / 0.6624 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.509, allocations: 204.8 kB / 0.6625 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005343/0.5144, allocations: 4.055 MB / 0.6665 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.5146, allocations: 49.7 kB / 0.6666 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002252/0.5168, allocations: 3.186 MB / 0.6697 GB, free: 88 kB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007036/0.5175, allocations: 0.6327 MB / 0.6703 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001415/0.519, allocations: 1.214 MB / 0.6715 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.5191, allocations: 301.1 kB / 0.6718 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002458/0.5215, allocations: 1.644 MB / 0.6734 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/0.5266, allocations: 5.518 MB / 0.6788 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008186/0.5348, allocations: 7.769 MB / 0.6863 GB, free: 11.13 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.666e-05/0.5349, allocations: 43.94 kB / 0.6864 GB, free: 11.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01176/0.5467, allocations: 6.886 MB / 0.6931 GB, free: 4.191 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.898e-05/0.5468, allocations: 64 kB / 0.6932 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/0.5469, allocations: 136 kB / 0.6933 GB, free: 3.996 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.5471, allocations: 180 kB / 0.6935 GB, free: 3.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004156/0.5513, allocations: 1.423 MB / 0.6949 GB, free: 2.395 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002022/0.5515, allocations: 275.1 kB / 0.6951 GB, free: 2.125 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003502/0.555, allocations: 303.6 kB / 0.6954 GB, free: 1.828 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005513/0.5556, allocations: 372 kB / 0.6958 GB, free: 1.465 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.002819/0.5584, allocations: 2.033 MB / 0.6978 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005539/0.559, allocations: 351.5 kB / 0.6981 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006654/0.5596, allocations: 414.7 kB / 0.6985 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.289e-05/0.5597, allocations: 16 kB / 0.6985 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.5597, allocations: 4 kB / 0.6985 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.5597, allocations: 7.922 kB / 0.6985 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008865/0.5686, allocations: 5.835 MB / 0.7042 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-05/0.5686, allocations: 24.98 kB / 0.7042 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009725/0.5696, allocations: 287.5 kB / 0.7045 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.238e-05/0.5696, allocations: 24 kB / 0.7045 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/0.5697, allocations: 52 kB / 0.7046 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.468e-05/0.5698, allocations: 35.86 kB / 0.7046 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.555e-05/0.5698, allocations: 27.88 kB / 0.7046 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/0.5736, allocations: 3.309 MB / 0.7079 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007809/0.5744, allocations: 412.5 kB / 0.7083 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/0.5747, allocations: 47.98 kB / 0.7083 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5758, allocations: 67.95 kB / 0.7084 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.576, allocations: 143.4 kB / 0.7085 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-05/0.5761, allocations: 68 kB / 0.7086 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003929/0.58, allocations: 2.52 MB / 0.711 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.41e-07/0.5801, allocations: 0 / 0.711 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00466/0.5847, allocations: 0.8789 MB / 0.7119 GB, free: 332 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.004553/0.5893, allocations: 3.976 MB / 0.7158 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006112/0.5954, allocations: 3.82 MB / 0.7195 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.586e-05/0.5955, allocations: 8.25 kB / 0.7195 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.5966, allocations: 0.7482 MB / 0.7202 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.5998, allocations: 468.7 kB / 0.7207 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2991/0.8988, allocations: 41.59 MB / 0.7613 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/0.9018, allocations: 3.166 MB / 0.7644 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003815/0.9056, allocations: 1.817 MB / 0.7662 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00233/0.908, allocations: 1.866 MB / 0.768 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.182e-06/0.908, allocations: 0 / 0.768 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2266/1.135, allocations: 59.47 MB / 0.8261 GB, free: 87.43 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.95/20.09, allocations: 10.72 kB / 0.8261 GB, free: 87.42 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