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.001262/0.001262, 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.001327/0.001327, 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.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2257/0.2257, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.002256/0.002256, allocations: 85.88 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1281, 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.0146/0.1427, allocations: 11.36 MB / 491.6 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.153, allocations: 4.05 MB / 495.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003305/0.1564, allocations: 67.75 kB / 495.7 MB, free: 5.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005848/0.1623, allocations: 2.492 MB / 498.2 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005986/0.1684, allocations: 1.828 MB / 0.4883 GB, free: 1.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002488/0.1709, allocations: 0.7839 MB / 0.4891 GB, free: 488 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008128/0.179, allocations: 4.499 MB / 0.4934 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005667/0.1848, allocations: 3.331 MB / 0.4967 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003028/0.1878, allocations: 1.55 MB / 0.4982 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003666/0.1915, allocations: 2.216 MB / 0.5004 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001161/0.1927, allocations: 332 kB / 0.5007 GB, free: 4.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.1952, allocations: 0.9597 MB / 0.5016 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002565/0.1978, allocations: 1.913 MB / 0.5035 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2309/0.4288, allocations: 2.235 MB / 0.5057 GB, free: 18.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.4395, allocations: 6.589 MB / 0.5121 GB, free: 17.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4395, allocations: 0 / 0.5121 GB, free: 17.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4395, allocations: 0 / 0.5121 GB, free: 17.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002671/0.4398, allocations: 0.6562 kB / 0.5121 GB, free: 17.68 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.01468/0.4545, allocations: 4.809 MB / 0.5168 GB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4545, allocations: 13.38 kB / 0.5168 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002216/0.4568, allocations: 0.7305 MB / 0.5175 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008332/0.4651, allocations: 1.969 MB / 0.5195 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006161/0.4713, allocations: 2.725 MB / 0.5221 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.4716, allocations: 254.4 kB / 0.5224 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.4728, allocations: 329.5 kB / 0.5227 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01861/0.4914, allocations: 10.23 MB / 0.5327 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/0.4916, allocations: 50.22 kB / 0.5327 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005714/0.4922, allocations: 155.6 kB / 0.5329 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002498/0.4947, allocations: 1.907 MB / 0.5347 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.5099, allocations: 8.176 MB / 0.5427 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0531/0.563, allocations: 39.41 MB / 0.5812 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009097/0.5722, allocations: 3.293 MB / 0.5844 GB, free: 9.797 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.5743, allocations: 1.058 MB / 0.5855 GB, free: 8.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.5844, allocations: 5.985 MB / 0.5913 GB, free: 2.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.5844, allocations: 51.03 kB / 0.5913 GB, free: 2.355 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 5.04e-06/0.5845, allocations: 0 / 0.5913 GB, free: 2.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.02549/0.61, allocations: 9.521 MB / 0.6006 GB, free: 8.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.6101, allocations: 148.2 kB / 0.6008 GB, free: 8.574 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006618/0.6167, allocations: 4.051 MB / 0.6047 GB, free: 4.496 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002673/0.617, allocations: 49.7 kB / 0.6048 GB, free: 4.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002673/0.6197, allocations: 3.18 MB / 0.6079 GB, free: 1.262 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008247/0.6206, allocations: 0.6371 MB / 0.6085 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001772/0.6223, allocations: 1.202 MB / 0.6097 GB, free: 15.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.6225, allocations: 305.1 kB / 0.61 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002996/0.6255, allocations: 1.644 MB / 0.6116 GB, free: 13.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006211/0.6317, allocations: 5.505 MB / 0.617 GB, free: 6.094 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009999/0.6417, allocations: 7.786 MB / 0.6246 GB, free: 12.95 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-05/0.6419, allocations: 40 kB / 0.6246 GB, free: 12.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01498/0.6569, allocations: 6.878 MB / 0.6313 GB, free: 6.199 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.657, allocations: 66.97 kB / 0.6314 GB, free: 6.137 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001958/0.6572, allocations: 136 kB / 0.6315 GB, free: 6.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.6574, allocations: 180 kB / 0.6317 GB, free: 5.828 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004952/0.6624, allocations: 1.424 MB / 0.6331 GB, free: 4.402 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002426/0.6626, allocations: 274.9 kB / 0.6333 GB, free: 4.133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004687/0.6673, allocations: 295.6 kB / 0.6336 GB, free: 3.844 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00123/0.6686, allocations: 375.9 kB / 0.634 GB, free: 3.477 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.005781/0.6744, allocations: 2.037 MB / 0.636 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000981/0.6754, allocations: 359.3 kB / 0.6363 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.6767, allocations: 414.7 kB / 0.6367 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.874e-05/0.6767, allocations: 20 kB / 0.6367 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.6768, allocations: 0 / 0.6367 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.6768, allocations: 7.969 kB / 0.6367 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.6894, allocations: 5.847 MB / 0.6424 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/0.6895, allocations: 20 kB / 0.6425 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.6906, allocations: 283.5 kB / 0.6427 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.969e-05/0.6906, allocations: 24 kB / 0.6428 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.6908, allocations: 55.19 kB / 0.6428 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.423e-05/0.6908, allocations: 36.7 kB / 0.6428 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.368e-05/0.6908, allocations: 28.25 kB / 0.6429 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004603/0.6954, allocations: 3.314 MB / 0.6461 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.6965, allocations: 412.5 kB / 0.6465 GB, free: 6.086 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003949/0.6969, allocations: 47.98 kB / 0.6465 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.6981, allocations: 67.95 kB / 0.6466 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001989/0.6983, allocations: 143.4 kB / 0.6467 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6985, allocations: 71.98 kB / 0.6468 GB, free: 5.762 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00463/0.7031, allocations: 2.512 MB / 0.6493 GB, free: 3.238 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7031, allocations: 0 / 0.6493 GB, free: 3.238 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005349/0.7085, allocations: 0.8775 MB / 0.6501 GB, free: 2.363 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.005299/0.7138, allocations: 3.974 MB / 0.654 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007771/0.7216, allocations: 3.972 MB / 0.6579 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.433e-05/0.7217, allocations: 4 kB / 0.6579 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.7231, allocations: 0.7582 MB / 0.6586 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003306/0.7264, allocations: 473.7 kB / 0.6591 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07812/0.8045, allocations: 47.29 MB / 0.7053 GB, free: 1.297 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2099/1.014, allocations: 3.166 MB / 0.7084 GB, free: 199.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005716/1.02, allocations: 1.812 MB / 0.7101 GB, free: 199.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00322/1.023, allocations: 1.866 MB / 0.712 GB, free: 199.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/1.023, allocations: 2 kB / 0.712 GB, free: 199.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.127, allocations: 62.55 MB / 0.773 GB, free: 152.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/11.23, allocations: 12.19 kB / 0.773 GB, free: 152.6 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 & 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)