Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.001441, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2296/0.2296, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002245/0.002245, allocations: 85.58 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1375, allocations: 62.44 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.02027/0.1578, allocations: 17.28 MB / 497.5 MB, free: 3.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/0.1721, allocations: 5.486 MB / 0.4912 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004294/0.1765, allocations: 119.6 kB / 0.4913 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009806/0.1864, allocations: 4.353 MB / 0.4955 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.1969, allocations: 2.704 MB / 0.4982 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004248/0.2012, allocations: 1.459 MB / 0.4996 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3023/0.5035, allocations: 8.641 MB / 0.508 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008093/0.5116, allocations: 5.372 MB / 0.5133 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006192/0.5178, allocations: 2.661 MB / 0.5159 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007512/0.5254, allocations: 3.83 MB / 0.5196 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003362/0.5288, allocations: 0.5344 MB / 0.5202 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006177/0.535, allocations: 1.608 MB / 0.5217 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00538/0.5404, allocations: 3.291 MB / 0.5249 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007162/0.5476, allocations: 3.783 MB / 0.5286 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01449/0.5621, allocations: 11.16 MB / 0.5395 GB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5622, allocations: 3.25 kB / 0.5395 GB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5622, allocations: 0 / 0.5395 GB, free: 3.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004416/0.5626, allocations: 3.656 kB / 0.5395 GB, free: 3.105 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02865/0.5913, allocations: 8.466 MB / 0.5478 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.867e-05/0.5914, allocations: 16.03 kB / 0.5478 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004535/0.5959, allocations: 1.079 MB / 0.5489 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1818/0.7777, allocations: 12.9 MB / 0.5615 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/0.7945, allocations: 6.067 MB / 0.5674 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004032/0.795, allocations: 367.8 kB / 0.5677 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002249/0.7972, allocations: 0.5172 MB / 0.5682 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04792/0.8452, allocations: 16.12 MB / 0.584 GB, free: 7.48 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000355/0.8456, allocations: 84.14 kB / 0.5841 GB, free: 7.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001143/0.8467, allocations: 233 kB / 0.5843 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005676/0.8524, allocations: 2.921 MB / 0.5871 GB, free: 4.375 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03288/0.8853, allocations: 13.46 MB / 0.6003 GB, free: 7.176 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1122/0.9976, allocations: 64.18 MB / 0.663 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02492/1.023, allocations: 7.766 MB / 0.6705 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009029/1.032, allocations: 4.127 MB / 0.6746 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03559/1.067, allocations: 18.8 MB / 0.6929 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.607e-05/1.067, allocations: 70.72 kB / 0.693 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=287): time 5.32e-06/1.067, allocations: 0 / 0.693 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of matching and sorting (n=370): time 0.4139/1.481, allocations: 50.68 MB / 0.7425 GB, free: 183.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.481, allocations: 273.2 kB / 0.7428 GB, free: 183.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008099/1.49, allocations: 6.074 MB / 0.7487 GB, free: 181.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008891/1.49, allocations: 79.48 kB / 0.7488 GB, free: 181.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002792/1.493, allocations: 4.748 MB / 0.7534 GB, free: 177.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001843/1.495, allocations: 1.361 MB / 0.7547 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002587/1.498, allocations: 1.823 MB / 0.7565 GB, free: 175.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.476e-05/1.498, allocations: 301.1 kB / 0.7568 GB, free: 175.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005496/1.503, allocations: 3.933 MB / 0.7606 GB, free: 174.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008114/1.511, allocations: 9.169 MB / 0.7696 GB, free: 164.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.526, allocations: 14.15 MB / 0.7834 GB, free: 147.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002077/1.526, allocations: 60 kB / 0.7835 GB, free: 147.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0367/1.563, allocations: 16.39 MB / 0.7995 GB, free: 131.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000251/1.563, allocations: 80 kB / 0.7995 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002856/1.564, allocations: 184 kB / 0.7997 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01296/1.577, allocations: 4.043 MB / 0.8037 GB, free: 126.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007666/1.584, allocations: 2.06 MB / 0.8057 GB, free: 124.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/1.615, allocations: 23.54 MB / 0.8287 GB, free: 101 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01028/1.626, allocations: 0.5033 MB / 0.8292 GB, free: 100.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002858/1.629, allocations: 0.5246 MB / 0.8297 GB, free: 100 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1088): * Single equations (assignments): 1083 * 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 {(2,44,100.0%), (4,48,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009773/1.638, allocations: 3.115 MB / 0.8327 GB, free: 96.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002835/1.641, allocations: 0.5746 MB / 0.8333 GB, free: 96.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02449/1.666, allocations: 9.831 MB / 0.8429 GB, free: 86.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.768e-05/1.666, allocations: 43.98 kB / 0.8429 GB, free: 86.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.108e-05/1.666, allocations: 16 kB / 0.8429 GB, free: 86.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001164/1.666, allocations: 15.94 kB / 0.8429 GB, free: 86.33 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03686/1.703, allocations: 19.56 MB / 0.8621 GB, free: 66.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.122e-05/1.703, allocations: 0 / 0.8621 GB, free: 66.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003055/1.706, allocations: 0.5344 MB / 0.8626 GB, free: 66.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01118/1.717, allocations: 3.638 MB / 0.8661 GB, free: 62.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007499/1.718, allocations: 64.45 kB / 0.8662 GB, free: 62.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02492/1.743, allocations: 21.38 MB / 0.8871 GB, free: 40.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.743, allocations: 0 / 0.8871 GB, free: 40.77 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02373/1.767, allocations: 14.49 MB / 0.9012 GB, free: 26.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/1.768, allocations: 0.5873 MB / 0.9018 GB, free: 25.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/1.77, allocations: 63.94 kB / 0.9019 GB, free: 25.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002826/1.773, allocations: 199.7 kB / 0.902 GB, free: 25.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007794/1.773, allocations: 230.1 kB / 0.9023 GB, free: 25.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002446/1.774, allocations: 99.97 kB / 0.9024 GB, free: 25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004943/1.779, allocations: 3.795 MB / 0.9061 GB, free: 21.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.779, allocations: 4 kB / 0.9061 GB, free: 21.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007998/1.787, allocations: 1.82 MB / 0.9079 GB, free: 19.39 MB / 0.545 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 (270): * Single equations (assignments): 265 * 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 {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2611/2.048, allocations: 15.25 MB / 0.9227 GB, free: 172.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02664/2.075, allocations: 14.8 MB / 0.9372 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/2.075, allocations: 3.125 kB / 0.9372 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00552/2.08, allocations: 3.949 MB / 0.9411 GB, free: 167.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004945/2.085, allocations: 0.802 MB / 0.9418 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1269/2.212, allocations: 99.79 MB / 1.039 GB, free: 68.92 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00635/2.218, allocations: 4.859 MB / 1.044 GB, free: 64.03 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007335/2.226, allocations: 2.793 MB / 1.047 GB, free: 61.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005082/2.231, allocations: 3.241 MB / 1.05 GB, free: 57.98 MB / 0.545 GB Notification: Performance of SimCode: time 1.433e-06/2.231, allocations: 4 kB / 1.05 GB, free: 57.98 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4285/2.659, allocations: 138.7 MB / 1.185 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/16.54, allocations: 4.781 kB / 1.185 GB, free: 159.3 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1)