Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.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.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001971/0.001971, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002624/0.002624, allocations: 202 kB / 18.73 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.498/1.498, allocations: 227.4 MB / 247 MB, free: 10.45 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.226/0.226, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.00251/0.00251, allocations: 79.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3493, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.01397/0.3633, allocations: 10.24 MB / 0.5406 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009174/0.3726, allocations: 3.795 MB / 0.5443 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.3749, allocations: 57.38 kB / 0.5444 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004784/0.3798, allocations: 1.938 MB / 0.5463 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005713/0.3855, allocations: 1.631 MB / 0.5479 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002039/0.3876, allocations: 0.6145 MB / 0.5485 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00636/0.394, allocations: 3.357 MB / 0.5517 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004606/0.3986, allocations: 2.579 MB / 0.5543 GB, free: 9.414 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.4014, allocations: 1.234 MB / 0.5555 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003126/0.4045, allocations: 1.666 MB / 0.5571 GB, free: 6.504 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.4057, allocations: 252 kB / 0.5573 GB, free: 6.258 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.4087, allocations: 1.018 MB / 0.5583 GB, free: 5.238 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002326/0.4111, allocations: 1.543 MB / 0.5598 GB, free: 3.691 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003646/0.4147, allocations: 1.817 MB / 0.5616 GB, free: 1.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009542/0.4243, allocations: 5.816 MB / 0.5673 GB, free: 12.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.4244, allocations: 0 / 0.5673 GB, free: 12.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4244, allocations: 3.938 kB / 0.5673 GB, free: 12.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000241/0.4246, allocations: 0 / 0.5673 GB, free: 12.02 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.01143/0.4361, allocations: 4.121 MB / 0.5713 GB, free: 7.824 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.368e-05/0.4362, allocations: 8.031 kB / 0.5713 GB, free: 7.816 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002002/0.4382, allocations: 0.612 MB / 0.5719 GB, free: 7.195 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007545/0.4457, allocations: 1.804 MB / 0.5737 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005066/0.4509, allocations: 2.155 MB / 0.5758 GB, free: 3.172 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.4511, allocations: 197 kB / 0.576 GB, free: 2.977 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/0.4522, allocations: 251.9 kB / 0.5762 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.4697, allocations: 8.459 MB / 0.5845 GB, free: 9.602 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/0.47, allocations: 35.69 kB / 0.5845 GB, free: 9.566 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008606/0.4708, allocations: 123.9 kB / 0.5846 GB, free: 9.445 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.474, allocations: 1.703 MB / 0.5863 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.4886, allocations: 7.11 MB / 0.5932 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0432/0.5319, allocations: 34.08 MB / 0.6265 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007733/0.5396, allocations: 3.3 MB / 0.6297 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00216/0.5418, allocations: 1.47 MB / 0.6312 GB, free: 8.613 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007394/0.5493, allocations: 4.446 MB / 0.6355 GB, free: 3.945 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.5494, allocations: 51 kB / 0.6356 GB, free: 3.887 MB / 494.1 MB Notification: Performance of pre-optimization done (n=121): time 4.057e-06/0.5494, allocations: 0 / 0.6356 GB, free: 3.887 MB / 494.1 MB Notification: Performance of matching and sorting (n=129): time 0.03258/0.582, allocations: 11.75 MB / 0.647 GB, free: 8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.5822, allocations: 166.9 kB / 0.6472 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006389/0.5886, allocations: 3.73 MB / 0.6508 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002619/0.5889, allocations: 45.7 kB / 0.6509 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002427/0.5913, allocations: 2.858 MB / 0.6537 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007428/0.5921, allocations: 0.5545 MB / 0.6542 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001666/0.5937, allocations: 1.08 MB / 0.6553 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.5939, allocations: 305.1 kB / 0.6556 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.5966, allocations: 1.697 MB / 0.6572 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005822/0.6024, allocations: 5.127 MB / 0.6622 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009279/0.6117, allocations: 7.406 MB / 0.6695 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.954e-05/0.6119, allocations: 36.28 kB / 0.6695 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01314/0.625, allocations: 6.721 MB / 0.6761 GB, free: 6.75 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.6252, allocations: 68.06 kB / 0.6761 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/0.6254, allocations: 123.9 kB / 0.6762 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007349/0.6262, allocations: 316.7 kB / 0.6765 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004035/0.6302, allocations: 1.244 MB / 0.6778 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.6332, allocations: 2.493 MB / 0.6802 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003758/0.637, allocations: 291.6 kB / 0.6805 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008414/0.6378, allocations: 336 kB / 0.6808 GB, free: 1.762 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003288/0.6411, allocations: 1.787 MB / 0.6825 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007069/0.6419, allocations: 329.8 kB / 0.6828 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005276/0.6472, allocations: 2.374 MB / 0.6852 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/0.6472, allocations: 12 kB / 0.6852 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.6473, allocations: 4 kB / 0.6852 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.6473, allocations: 7.984 kB / 0.6852 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.6613, allocations: 5.914 MB / 0.691 GB, free: 7.242 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.6614, allocations: 3.938 kB / 0.691 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009168/0.6623, allocations: 179.7 kB / 0.6911 GB, free: 7.062 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002402/0.6648, allocations: 0.7108 MB / 0.6918 GB, free: 6.348 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002147/0.665, allocations: 20 kB / 0.6918 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006629/0.6716, allocations: 4.825 MB / 0.6966 GB, free: 1.359 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6717, allocations: 0 / 0.6966 GB, free: 1.359 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007961/0.6797, allocations: 4.361 MB / 0.7008 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009453/0.6806, allocations: 382.8 kB / 0.7012 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008487/0.6815, allocations: 19.94 kB / 0.7012 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.6831, allocations: 71.91 kB / 0.7013 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/0.6835, allocations: 76.48 kB / 0.7013 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.6836, allocations: 28 kB / 0.7014 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004748/0.6884, allocations: 2.331 MB / 0.7036 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6884, allocations: 0 / 0.7036 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00506/0.6935, allocations: 0.8007 MB / 0.7044 GB, free: 9.258 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008899/0.7024, allocations: 4.987 MB / 0.7093 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007408/0.7099, allocations: 4.041 MB / 0.7132 GB, free: 208 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.7099, allocations: 0 / 0.7132 GB, free: 208 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.712, allocations: 1.115 MB / 0.7143 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003393/0.7154, allocations: 398.4 kB / 0.7147 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3435/1.059, allocations: 37.72 MB / 0.7516 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/1.062, allocations: 2.788 MB / 0.7543 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003469/1.065, allocations: 1.659 MB / 0.7559 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/1.068, allocations: 1.526 MB / 0.7574 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.102e-06/1.068, allocations: 0 / 0.7574 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09823/1.166, allocations: 57.55 MB / 0.8136 GB, free: 99.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.06/25.23, allocations: 12.02 kB / 0.8136 GB, free: 99.11 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1)