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.001628/0.001629, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247 MB, free: 10.46 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.2259/0.2259, allocations: 46.11 MB / 344.3 MB, free: 11.45 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.002329/0.002329, allocations: 87.8 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3413, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01311/0.3545, allocations: 11.36 MB / 0.5417 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3646, allocations: 4.046 MB / 0.5457 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.3675, allocations: 72.62 kB / 0.5457 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005341/0.3729, allocations: 2.483 MB / 0.5482 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005495/0.3784, allocations: 1.846 MB / 0.55 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002046/0.3805, allocations: 0.776 MB / 0.5507 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007146/0.3876, allocations: 4.504 MB / 0.5551 GB, free: 8.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004611/0.3923, allocations: 3.337 MB / 0.5584 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.3952, allocations: 1.546 MB / 0.5599 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003651/0.3989, allocations: 2.216 MB / 0.562 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.4, allocations: 332 kB / 0.5624 GB, free: 1.082 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.4026, allocations: 0.9636 MB / 0.5633 GB, free: 120 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002538/0.4051, allocations: 1.905 MB / 0.5652 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003493/0.4087, allocations: 2.237 MB / 0.5673 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009531/0.4182, allocations: 6.864 MB / 0.5741 GB, free: 5.066 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.4183, allocations: 0 / 0.5741 GB, free: 5.066 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4183, allocations: 0 / 0.5741 GB, free: 5.066 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002232/0.4185, allocations: 0 / 0.5741 GB, free: 5.066 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.01017/0.4287, allocations: 4.94 MB / 0.5789 GB, free: 48 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4288, allocations: 12.03 kB / 0.5789 GB, free: 36 kB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001354/0.4301, allocations: 0.7241 MB / 0.5796 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00754/0.4377, allocations: 1.999 MB / 0.5815 GB, free: 13.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005643/0.4433, allocations: 2.775 MB / 0.5843 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.4436, allocations: 254.2 kB / 0.5845 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009594/0.4446, allocations: 331.8 kB / 0.5848 GB, free: 9.887 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01946/0.4641, allocations: 10.24 MB / 0.5948 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/0.4642, allocations: 43.64 kB / 0.5949 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005277/0.4648, allocations: 163.8 kB / 0.595 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.4678, allocations: 1.908 MB / 0.5969 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.4854, allocations: 8.165 MB / 0.6049 GB, free: 4.543 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04885/0.5343, allocations: 39.31 MB / 0.6432 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008408/0.5428, allocations: 3.302 MB / 0.6465 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001755/0.5446, allocations: 1.057 MB / 0.6475 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009143/0.5538, allocations: 5.994 MB / 0.6534 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.5538, allocations: 51.48 kB / 0.6534 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 4.629e-06/0.5539, allocations: 4 kB / 0.6534 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02439/0.5783, allocations: 9.751 MB / 0.6629 GB, free: 7.23 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/0.5784, allocations: 196.9 kB / 0.6631 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006314/0.5848, allocations: 4.076 MB / 0.6671 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000249/0.585, allocations: 45.7 kB / 0.6671 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00276/0.5878, allocations: 3.306 MB / 0.6704 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007767/0.5886, allocations: 0.6707 MB / 0.671 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00171/0.5903, allocations: 1.215 MB / 0.6722 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.5905, allocations: 301.1 kB / 0.6725 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002768/0.5932, allocations: 1.644 MB / 0.6741 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00626/0.5995, allocations: 5.518 MB / 0.6795 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009793/0.6094, allocations: 7.772 MB / 0.6871 GB, free: 10.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001151/0.6095, allocations: 40 kB / 0.6871 GB, free: 10.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01393/0.6235, allocations: 6.902 MB / 0.6939 GB, free: 3.559 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.6236, allocations: 64 kB / 0.6939 GB, free: 3.496 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001925/0.6238, allocations: 140 kB / 0.6941 GB, free: 3.359 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.624, allocations: 180 kB / 0.6942 GB, free: 3.184 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0046/0.6286, allocations: 1.423 MB / 0.6956 GB, free: 1.758 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002528/0.6289, allocations: 270.9 kB / 0.6959 GB, free: 1.492 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/0.633, allocations: 307.7 kB / 0.6962 GB, free: 1.191 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009923/0.634, allocations: 376 kB / 0.6965 GB, free: 0.8242 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.003847/0.6379, allocations: 2.037 MB / 0.6985 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007056/0.6386, allocations: 374 kB / 0.6989 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009822/0.6396, allocations: 418.7 kB / 0.6993 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.124e-05/0.6397, allocations: 20 kB / 0.6993 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.6397, allocations: 0 / 0.6993 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.6397, allocations: 7.922 kB / 0.6993 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.6506, allocations: 5.848 MB / 0.705 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.009e-05/0.6507, allocations: 19.98 kB / 0.705 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.6517, allocations: 280.4 kB / 0.7053 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.682e-05/0.6517, allocations: 24 kB / 0.7053 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.6519, allocations: 56 kB / 0.7054 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.423e-05/0.6519, allocations: 35.86 kB / 0.7054 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.946e-05/0.6519, allocations: 31.86 kB / 0.7054 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004471/0.6564, allocations: 3.317 MB / 0.7087 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009355/0.6574, allocations: 434.5 kB / 0.7091 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004956/0.6579, allocations: 55.97 kB / 0.7091 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.6592, allocations: 67.95 kB / 0.7092 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.6595, allocations: 143.4 kB / 0.7093 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.6596, allocations: 68 kB / 0.7094 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004347/0.664, allocations: 2.52 MB / 0.7119 GB, free: 500 kB / 0.5606 GB Notification: Performance of sort global known variables: time 3.11e-07/0.664, allocations: 0 / 0.7119 GB, free: 500 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004629/0.6686, allocations: 0.875 MB / 0.7127 GB, free: 15.61 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.004932/0.6736, allocations: 3.998 MB / 0.7166 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006709/0.6803, allocations: 3.812 MB / 0.7203 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/0.6804, allocations: 4.75 kB / 0.7204 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001193/0.6816, allocations: 0.7565 MB / 0.7211 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/0.6846, allocations: 480.8 kB / 0.7216 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3066/0.9911, allocations: 41.76 MB / 0.7623 GB, free: 152.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003913/0.9951, allocations: 3.172 MB / 0.7654 GB, free: 149.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003875/0.999, allocations: 1.808 MB / 0.7672 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.001, allocations: 1.862 MB / 0.769 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.292e-06/1.001, allocations: 7.938 kB / 0.769 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09059/1.092, allocations: 58.71 MB / 0.8264 GB, free: 87.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.27/19.36, allocations: 12.59 kB / 0.8264 GB, free: 87.07 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1)