Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001277/0.001277, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2343/0.2343, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002444/0.002444, allocations: 86.8 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1154, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01424/0.1297, allocations: 11.36 MB / 491.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.1405, allocations: 4.057 MB / 495.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.1428, allocations: 67.81 kB / 495.7 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005305/0.1482, allocations: 2.484 MB / 498.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005115/0.1534, allocations: 1.839 MB / 0.4883 GB, free: 1.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.1555, allocations: 0.7722 MB / 0.489 GB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007382/0.1629, allocations: 4.509 MB / 0.4935 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005489/0.1684, allocations: 3.331 MB / 0.4967 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003039/0.1715, allocations: 1.546 MB / 0.4982 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.1752, allocations: 2.22 MB / 0.5004 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001366/0.1766, allocations: 332 kB / 0.5007 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.1795, allocations: 0.9558 MB / 0.5016 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002943/0.1824, allocations: 1.913 MB / 0.5035 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2466/0.4291, allocations: 2.241 MB / 0.5057 GB, free: 18.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009857/0.439, allocations: 6.582 MB / 0.5121 GB, free: 17.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.439, allocations: 0 / 0.5121 GB, free: 17.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4391, allocations: 1.062 kB / 0.5121 GB, free: 17.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003542/0.4394, allocations: 0 / 0.5121 GB, free: 17.74 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.017/0.4564, allocations: 4.814 MB / 0.5168 GB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.4565, allocations: 14.28 kB / 0.5168 GB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002947/0.4595, allocations: 0.7315 MB / 0.5175 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009372/0.4688, allocations: 1.964 MB / 0.5195 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008186/0.4771, allocations: 2.733 MB / 0.5221 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004526/0.4776, allocations: 253.3 kB / 0.5224 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002003/0.4796, allocations: 329 kB / 0.5227 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02001/0.4996, allocations: 10.23 MB / 0.5327 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.4998, allocations: 43.69 kB / 0.5327 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005967/0.5004, allocations: 160.5 kB / 0.5329 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002502/0.5029, allocations: 1.913 MB / 0.5347 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01596/0.5189, allocations: 8.171 MB / 0.5427 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05604/0.575, allocations: 39.4 MB / 0.5812 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008829/0.5839, allocations: 3.304 MB / 0.5844 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.5857, allocations: 1.059 MB / 0.5855 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009512/0.5952, allocations: 5.985 MB / 0.5913 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/0.5953, allocations: 51.56 kB / 0.5913 GB, free: 2.355 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 6.542e-06/0.5953, allocations: 4 kB / 0.5914 GB, free: 2.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02617/0.6215, allocations: 9.523 MB / 0.6007 GB, free: 8.746 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.6217, allocations: 144.9 kB / 0.6008 GB, free: 8.574 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007489/0.6292, allocations: 4.055 MB / 0.6048 GB, free: 4.492 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003058/0.6295, allocations: 45.7 kB / 0.6048 GB, free: 4.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002854/0.6324, allocations: 3.178 MB / 0.6079 GB, free: 1.262 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009095/0.6333, allocations: 0.636 MB / 0.6085 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00183/0.6351, allocations: 1.21 MB / 0.6097 GB, free: 15.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6353, allocations: 305.1 kB / 0.61 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002847/0.6382, allocations: 1.644 MB / 0.6116 GB, free: 13.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006668/0.6448, allocations: 5.503 MB / 0.617 GB, free: 6.098 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01016/0.655, allocations: 7.78 MB / 0.6246 GB, free: 12.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/0.6552, allocations: 40 kB / 0.6246 GB, free: 12.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01557/0.6708, allocations: 6.875 MB / 0.6313 GB, free: 6.227 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.671, allocations: 64.03 kB / 0.6314 GB, free: 6.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002657/0.6713, allocations: 140 kB / 0.6315 GB, free: 6.027 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/0.6715, allocations: 180 kB / 0.6317 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005127/0.6767, allocations: 1.431 MB / 0.6331 GB, free: 4.418 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000325/0.677, allocations: 267 kB / 0.6333 GB, free: 4.156 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00449/0.6815, allocations: 297.9 kB / 0.6336 GB, free: 3.867 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009933/0.6825, allocations: 375.9 kB / 0.634 GB, free: 3.5 MB / 478.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.004597/0.6871, allocations: 2.029 MB / 0.636 GB, free: 1.457 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008894/0.688, allocations: 355.3 kB / 0.6363 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.6896, allocations: 414.7 kB / 0.6367 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.314e-05/0.6896, allocations: 34.12 kB / 0.6367 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.6897, allocations: 0 / 0.6367 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-05/0.6897, allocations: 7.969 kB / 0.6367 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.7041, allocations: 5.844 MB / 0.6424 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-05/0.7042, allocations: 24.06 kB / 0.6425 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.7053, allocations: 287.5 kB / 0.6427 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.001e-05/0.7053, allocations: 24 kB / 0.6428 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.913e-05/0.7054, allocations: 44 kB / 0.6428 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.09e-05/0.7054, allocations: 35.86 kB / 0.6428 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.577e-05/0.7055, allocations: 27.88 kB / 0.6429 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004609/0.7101, allocations: 3.317 MB / 0.6461 GB, free: 6.543 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.7114, allocations: 416.5 kB / 0.6465 GB, free: 6.113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004415/0.7118, allocations: 47.98 kB / 0.6465 GB, free: 6.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.7131, allocations: 67.95 kB / 0.6466 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.7133, allocations: 147.4 kB / 0.6468 GB, free: 5.855 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.7134, allocations: 68 kB / 0.6468 GB, free: 5.789 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005225/0.7186, allocations: 2.516 MB / 0.6493 GB, free: 3.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7187, allocations: 0 / 0.6493 GB, free: 3.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005943/0.7246, allocations: 0.8858 MB / 0.6501 GB, free: 2.379 MB / 494.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.005138/0.7298, allocations: 3.971 MB / 0.654 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007453/0.7372, allocations: 3.968 MB / 0.6579 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.7373, allocations: 0 / 0.6579 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001374/0.7386, allocations: 0.7587 MB / 0.6586 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/0.742, allocations: 472.4 kB / 0.6591 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08648/0.8285, allocations: 47.29 MB / 0.7053 GB, free: 1.32 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2096/1.038, allocations: 3.172 MB / 0.7084 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006053/1.044, allocations: 1.809 MB / 0.7101 GB, free: 200.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/1.047, allocations: 1.865 MB / 0.7119 GB, free: 200.2 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/1.047, allocations: 0 / 0.7119 GB, free: 200.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09665/1.143, allocations: 62.56 MB / 0.773 GB, free: 152.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.936/11.08, allocations: 16.17 kB / 0.7731 GB, free: 152.7 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1)