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.001574/0.001579, allocations: 122.2 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.001811/0.001811, 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.433/1.433, allocations: 227.4 MB / 247 MB, free: 10.42 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.218/0.218, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002233/0.002233, allocations: 79.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3343, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01261/0.3469, allocations: 11.36 MB / 0.5417 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008853/0.3558, allocations: 4.061 MB / 0.5457 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002694/0.3586, allocations: 69.62 kB / 0.5457 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005197/0.3638, allocations: 2.482 MB / 0.5482 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00548/0.3693, allocations: 1.833 MB / 0.5499 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.3716, allocations: 0.7838 MB / 0.5507 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.3785, allocations: 4.51 MB / 0.5551 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004627/0.3832, allocations: 3.32 MB / 0.5584 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003134/0.3863, allocations: 1.557 MB / 0.5599 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00344/0.3898, allocations: 2.223 MB / 0.5621 GB, free: 1.359 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001051/0.3909, allocations: 332 kB / 0.5624 GB, free: 1.035 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.3932, allocations: 0.9558 MB / 0.5633 GB, free: 80 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.3953, allocations: 1.909 MB / 0.5652 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002723/0.398, allocations: 2.237 MB / 0.5674 GB, free: 11.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007549/0.4055, allocations: 6.861 MB / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4056, allocations: 0 / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4056, allocations: 0 / 0.5741 GB, free: 5.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001426/0.4057, allocations: 0 / 0.5741 GB, free: 5.027 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.009022/0.4148, allocations: 4.94 MB / 0.5789 GB, free: 8 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.4148, allocations: 8.031 kB / 0.5789 GB, free: 0 / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00093/0.4157, allocations: 0.7358 MB / 0.5796 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007475/0.4232, allocations: 1.987 MB / 0.5815 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005579/0.4288, allocations: 2.783 MB / 0.5843 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.4291, allocations: 258.2 kB / 0.5845 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007079/0.4298, allocations: 327.8 kB / 0.5848 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.4471, allocations: 10.24 MB / 0.5948 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.4473, allocations: 47.56 kB / 0.5949 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004099/0.4477, allocations: 163.9 kB / 0.595 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002904/0.4506, allocations: 1.908 MB / 0.5969 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01672/0.4673, allocations: 8.169 MB / 0.6049 GB, free: 4.492 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04698/0.5143, allocations: 39.3 MB / 0.6432 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00831/0.5227, allocations: 3.295 MB / 0.6465 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.5244, allocations: 1.067 MB / 0.6475 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008436/0.5329, allocations: 6.001 MB / 0.6534 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.533, allocations: 55.5 kB / 0.6534 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 3.778e-06/0.533, allocations: 0 / 0.6534 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02341/0.5564, allocations: 9.74 MB / 0.6629 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.5566, allocations: 200.9 kB / 0.6631 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005992/0.5626, allocations: 4.072 MB / 0.6671 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.5628, allocations: 45.7 kB / 0.6671 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002419/0.5652, allocations: 3.314 MB / 0.6704 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006322/0.5659, allocations: 0.6629 MB / 0.671 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00143/0.5673, allocations: 1.211 MB / 0.6722 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5674, allocations: 305.1 kB / 0.6725 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002638/0.5701, allocations: 1.651 MB / 0.6741 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005576/0.5757, allocations: 5.514 MB / 0.6795 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009585/0.5853, allocations: 7.773 MB / 0.6871 GB, free: 10.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/0.5854, allocations: 44 kB / 0.6871 GB, free: 10.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01273/0.5981, allocations: 6.899 MB / 0.6939 GB, free: 3.508 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.522e-05/0.5983, allocations: 65 kB / 0.6939 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001706/0.5984, allocations: 136 kB / 0.6941 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.5986, allocations: 184 kB / 0.6942 GB, free: 3.133 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004373/0.603, allocations: 1.423 MB / 0.6956 GB, free: 1.707 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002526/0.6033, allocations: 267 kB / 0.6959 GB, free: 1.445 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003774/0.6071, allocations: 299.6 kB / 0.6962 GB, free: 1.152 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007687/0.6079, allocations: 379.9 kB / 0.6965 GB, free: 0.7812 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.003262/0.6111, allocations: 2.041 MB / 0.6985 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006064/0.6117, allocations: 365.5 kB / 0.6989 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007144/0.6125, allocations: 418.7 kB / 0.6993 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.022e-05/0.6125, allocations: 16 kB / 0.6993 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.6125, allocations: 0 / 0.6993 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.6126, allocations: 19.91 kB / 0.6993 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009943/0.6225, allocations: 5.844 MB / 0.705 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-05/0.6226, allocations: 16 kB / 0.705 GB, free: 7.746 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.6237, allocations: 283.5 kB / 0.7053 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.313e-05/0.6237, allocations: 28 kB / 0.7053 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.6238, allocations: 48 kB / 0.7054 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-05/0.6239, allocations: 35.86 kB / 0.7054 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.126e-05/0.6239, allocations: 28.31 kB / 0.7054 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004742/0.6287, allocations: 3.328 MB / 0.7087 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.6297, allocations: 438.5 kB / 0.7091 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003797/0.6301, allocations: 47.98 kB / 0.7091 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.6312, allocations: 67.95 kB / 0.7092 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.6314, allocations: 147.4 kB / 0.7094 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6315, allocations: 71.94 kB / 0.7094 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004403/0.6359, allocations: 2.512 MB / 0.7119 GB, free: 460 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.636, allocations: 0 / 0.7119 GB, free: 460 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00533/0.6413, allocations: 0.8828 MB / 0.7127 GB, free: 15.56 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.005112/0.6465, allocations: 3.998 MB / 0.7166 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006536/0.653, allocations: 3.822 MB / 0.7204 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/0.6531, allocations: 0 / 0.7204 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.6542, allocations: 0.7505 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.002853/0.6571, allocations: 474.2 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.2992/0.9564, allocations: 41.76 MB / 0.7623 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002774/0.9592, allocations: 3.174 MB / 0.7654 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003766/0.963, allocations: 1.816 MB / 0.7672 GB, free: 147 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002277/0.9653, allocations: 1.861 MB / 0.769 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of SimCode: time 6.62e-07/0.9653, allocations: 0 / 0.769 GB, free: 145.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0914/1.057, allocations: 58.72 MB / 0.8264 GB, free: 86.87 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.29/19.35, allocations: 14.36 kB / 0.8264 GB, free: 86.86 MB / 0.5762 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)