Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001741/0.001741, allocations: 117.6 kB / 17.78 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.002035/0.002035, allocations: 200.7 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.476/1.476, 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.2551/0.2551, allocations: 46.12 MB / 344.4 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.002187/0.002187, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3262, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01817/0.3444, allocations: 14.97 MB / 0.5452 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.3568, allocations: 5.015 MB / 0.5501 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003268/0.3601, allocations: 105.1 kB / 0.5502 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008174/0.3684, allocations: 3.999 MB / 0.5541 GB, free: 9.543 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006906/0.3753, allocations: 2.318 MB / 0.5564 GB, free: 7.219 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002992/0.3783, allocations: 1.166 MB / 0.5575 GB, free: 6.051 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.3884, allocations: 6.584 MB / 0.564 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00675/0.3952, allocations: 4.687 MB / 0.5685 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004077/0.3993, allocations: 2.212 MB / 0.5707 GB, free: 8.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004954/0.4043, allocations: 3.01 MB / 0.5736 GB, free: 5.461 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001755/0.4061, allocations: 456 kB / 0.5741 GB, free: 5.016 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00419/0.4103, allocations: 1.533 MB / 0.5756 GB, free: 3.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003843/0.4142, allocations: 2.665 MB / 0.5782 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006251/0.4205, allocations: 3.135 MB / 0.5812 GB, free: 13.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01455/0.4351, allocations: 9.767 MB / 0.5908 GB, free: 3.852 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.4351, allocations: 3.938 kB / 0.5908 GB, free: 3.848 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.4351, allocations: 3.984 kB / 0.5908 GB, free: 3.844 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003312/0.4355, allocations: 0 / 0.5908 GB, free: 3.844 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.01959/0.4551, allocations: 7.164 MB / 0.5978 GB, free: 12.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.4551, allocations: 12.03 kB / 0.5978 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001959/0.4571, allocations: 0.918 MB / 0.5987 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1741/0.6312, allocations: 12.54 MB / 0.6109 GB, free: 15.09 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.6415, allocations: 4.58 MB / 0.6154 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002645/0.6418, allocations: 312.1 kB / 0.6157 GB, free: 10.14 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/0.643, allocations: 427.7 kB / 0.6161 GB, free: 9.723 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02553/0.6685, allocations: 13.69 MB / 0.6295 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000214/0.6687, allocations: 59.53 kB / 0.6295 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/0.6699, allocations: 199.8 kB / 0.6297 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004266/0.6742, allocations: 2.531 MB / 0.6322 GB, free: 8.375 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02437/0.6986, allocations: 11.54 MB / 0.6435 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06815/0.7668, allocations: 52.92 MB / 0.6952 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01633/0.7832, allocations: 5.814 MB / 0.7008 GB, free: 432 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004795/0.788, allocations: 3.388 MB / 0.7041 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2701/1.058, allocations: 14.88 MB / 0.7187 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/1.058, allocations: 60.09 kB / 0.7187 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=227): time 5.37e-06/1.058, allocations: 0 / 0.7187 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264): time 0.07513/1.133, allocations: 26.53 MB / 0.7446 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/1.133, allocations: 257.3 kB / 0.7449 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005507/1.139, allocations: 5.081 MB / 0.7498 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004424/1.139, allocations: 73.64 kB / 0.7499 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001714/1.141, allocations: 4.102 MB / 0.7539 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009612/1.142, allocations: 1.033 MB / 0.7549 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/1.144, allocations: 1.477 MB / 0.7564 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.348e-05/1.144, allocations: 305.1 kB / 0.7567 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003579/1.147, allocations: 2.735 MB / 0.7593 GB, free: 138.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005456/1.153, allocations: 7.074 MB / 0.7662 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009499/1.162, allocations: 10.65 MB / 0.7766 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.162, allocations: 46.5 kB / 0.7767 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01573/1.178, allocations: 10.14 MB / 0.7866 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.647e-05/1.178, allocations: 68 kB / 0.7866 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/1.179, allocations: 152 kB / 0.7868 GB, free: 106 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/1.18, allocations: 0.7127 MB / 0.7875 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005703/1.186, allocations: 1.77 MB / 0.7892 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006238/1.192, allocations: 6.848 MB / 0.7959 GB, free: 96.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005885/1.198, allocations: 411.4 kB / 0.7963 GB, free: 95.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/1.199, allocations: 444 kB / 0.7967 GB, free: 95.53 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (913): * Single equations (assignments): 908 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004571/1.204, allocations: 2.634 MB / 0.7993 GB, free: 92.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/1.205, allocations: 492.7 kB / 0.7998 GB, free: 92.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006536/1.212, allocations: 4.377 MB / 0.804 GB, free: 88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.209e-05/1.212, allocations: 31.36 kB / 0.8041 GB, free: 87.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/1.212, allocations: 4 kB / 0.8041 GB, free: 87.97 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.321e-05/1.212, allocations: 15.95 kB / 0.8041 GB, free: 87.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/1.229, allocations: 10.75 MB / 0.8146 GB, free: 77.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/1.229, allocations: 0 / 0.8146 GB, free: 77.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/1.231, allocations: 0.4953 MB / 0.8151 GB, free: 76.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/1.232, allocations: 489.2 kB / 0.8155 GB, free: 76.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002623/1.233, allocations: 47.98 kB / 0.8156 GB, free: 76.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005134/1.238, allocations: 6.229 MB / 0.8217 GB, free: 69.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/1.238, allocations: 0 / 0.8217 GB, free: 69.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008737/1.247, allocations: 7.655 MB / 0.8291 GB, free: 61.94 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/1.248, allocations: 0.5134 MB / 0.8296 GB, free: 61.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008724/1.248, allocations: 40 kB / 0.8297 GB, free: 61.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002201/1.251, allocations: 163.7 kB / 0.8298 GB, free: 61.21 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/1.251, allocations: 137.8 kB / 0.83 GB, free: 61.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001676/1.251, allocations: 71.98 kB / 0.83 GB, free: 61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003686/1.255, allocations: 3.183 MB / 0.8331 GB, free: 57.83 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.255, allocations: 0 / 0.8331 GB, free: 57.83 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005024/1.26, allocations: 1.285 MB / 0.8344 GB, free: 56.55 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (224): * Single equations (assignments): 219 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008592/1.269, allocations: 8.359 MB / 0.8426 GB, free: 48.11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007948/1.277, allocations: 6.794 MB / 0.8492 GB, free: 41.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/1.277, allocations: 0 / 0.8492 GB, free: 41.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002531/1.279, allocations: 2.379 MB / 0.8515 GB, free: 38.92 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/1.282, allocations: 0.6179 MB / 0.8521 GB, free: 38.31 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07589/1.358, allocations: 59.15 MB / 0.9099 GB, free: 4.195 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005804/1.364, allocations: 4.097 MB / 0.9139 GB, free: 72 kB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006366/1.371, allocations: 2.381 MB / 0.9162 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004641/1.375, allocations: 2.624 MB / 0.9188 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of SimCode: time 7.41e-07/1.375, allocations: 0 / 0.9188 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3985/1.774, allocations: 91.72 MB / 1.008 GB, free: 194.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.9/35.67, allocations: 16.06 kB / 1.008 GB, free: 194.3 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1)