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.001597/0.001597, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001933, allocations: 199.8 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, 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.2231/0.2231, allocations: 46.11 MB / 344.3 MB, free: 11.49 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.002207/0.002207, allocations: 80.14 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3336, allocations: 62.45 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.01974/0.3534, allocations: 17.27 MB / 0.5475 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.3671, allocations: 5.491 MB / 0.5528 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003894/0.3711, allocations: 115.6 kB / 0.553 GB, free: 10.81 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009164/0.3803, allocations: 4.353 MB / 0.5572 GB, free: 6.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007947/0.3883, allocations: 2.711 MB / 0.5599 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003529/0.3918, allocations: 1.447 MB / 0.5613 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01258/0.4044, allocations: 8.658 MB / 0.5697 GB, free: 9.598 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007411/0.4119, allocations: 5.365 MB / 0.575 GB, free: 4.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004743/0.4167, allocations: 2.667 MB / 0.5776 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005811/0.4225, allocations: 3.832 MB / 0.5813 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001887/0.4244, allocations: 0.539 MB / 0.5818 GB, free: 13.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004024/0.4285, allocations: 1.604 MB / 0.5834 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00424/0.4327, allocations: 3.296 MB / 0.5866 GB, free: 8.191 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006134/0.4389, allocations: 3.768 MB / 0.5903 GB, free: 4.402 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/0.4549, allocations: 11.55 MB / 0.6016 GB, free: 8.805 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.759e-06/0.4549, allocations: 3.984 kB / 0.6016 GB, free: 8.801 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4549, allocations: 0 / 0.6016 GB, free: 8.801 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004735/0.4554, allocations: 4 kB / 0.6016 GB, free: 8.797 MB / 462.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.0251/0.4805, allocations: 8.675 MB / 0.6101 GB, free: 24 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.4806, allocations: 16.03 kB / 0.6101 GB, free: 8 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002979/0.4836, allocations: 1.076 MB / 0.6111 GB, free: 14.92 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1812/0.6648, allocations: 12.94 MB / 0.6238 GB, free: 1.961 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01503/0.6799, allocations: 6.206 MB / 0.6298 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004284/0.6804, allocations: 365.9 kB / 0.6302 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002192/0.6826, allocations: 0.5152 MB / 0.6307 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03332/0.7159, allocations: 16.12 MB / 0.6464 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003198/0.7163, allocations: 75.42 kB / 0.6465 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001492/0.7178, allocations: 239.8 kB / 0.6467 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00515/0.7229, allocations: 2.927 MB / 0.6496 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03196/0.7549, allocations: 13.45 MB / 0.6627 GB, free: 8.898 MB / 0.5137 GB 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.3316/1.087, allocations: 64.01 MB / 0.7252 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02127/1.108, allocations: 7.755 MB / 0.7328 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004946/1.113, allocations: 4.139 MB / 0.7368 GB, free: 122.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02406/1.137, allocations: 18.83 MB / 0.7552 GB, free: 111.8 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/1.137, allocations: 62.55 kB / 0.7553 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=287): time 4.969e-06/1.137, allocations: 0 / 0.7553 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=370): time 0.1549/1.292, allocations: 51.06 MB / 0.8051 GB, free: 63.25 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/1.292, allocations: 265.8 kB / 0.8054 GB, free: 62.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007402/1.299, allocations: 6.085 MB / 0.8113 GB, free: 56.95 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008388/1.3, allocations: 81.7 kB / 0.8114 GB, free: 56.86 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002481/1.303, allocations: 4.927 MB / 0.8162 GB, free: 52.28 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.304, allocations: 1.421 MB / 0.8176 GB, free: 50.88 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00275/1.307, allocations: 1.835 MB / 0.8194 GB, free: 49.03 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.682e-05/1.307, allocations: 305.1 kB / 0.8197 GB, free: 48.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004692/1.312, allocations: 3.926 MB / 0.8235 GB, free: 44.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006719/1.319, allocations: 9.169 MB / 0.8325 GB, free: 33.14 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01299/1.332, allocations: 14.16 MB / 0.8463 GB, free: 16.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.332, allocations: 53.97 kB / 0.8463 GB, free: 16.54 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02899/1.361, allocations: 16.43 MB / 0.8624 GB, free: 60 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/1.361, allocations: 86.86 kB / 0.8625 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002253/1.361, allocations: 180 kB / 0.8626 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01341/1.375, allocations: 4.03 MB / 0.8666 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007263/1.382, allocations: 2.063 MB / 0.8686 GB, free: 9.695 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03749/1.419, allocations: 23.54 MB / 0.8916 GB, free: 1.883 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007432/1.427, allocations: 0.5108 MB / 0.8921 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/1.429, allocations: 0.5234 MB / 0.8926 GB, free: 0.8516 MB / 0.5919 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.007245/1.436, allocations: 3.117 MB / 0.8956 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001534/1.438, allocations: 0.6014 MB / 0.8962 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02331/1.461, allocations: 9.829 MB / 0.9058 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.182e-05/1.461, allocations: 39.94 kB / 0.9059 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.955e-05/1.461, allocations: 20 kB / 0.9059 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.797e-05/1.461, allocations: 31.86 kB / 0.9059 GB, free: 3.133 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04521/1.506, allocations: 19.41 MB / 0.9249 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.624e-05/1.507, allocations: 0 / 0.9249 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003038/1.51, allocations: 0.5421 MB / 0.9254 GB, free: 15.15 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0128/1.522, allocations: 3.614 MB / 0.9289 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007522/1.523, allocations: 71.81 kB / 0.929 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03387/1.557, allocations: 21.39 MB / 0.9499 GB, free: 5.785 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.557, allocations: 0 / 0.9499 GB, free: 5.785 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03015/1.587, allocations: 14.52 MB / 0.964 GB, free: 7.188 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.589, allocations: 0.6141 MB / 0.9646 GB, free: 6.551 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00189/1.591, allocations: 63.98 kB / 0.9647 GB, free: 6.488 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00381/1.595, allocations: 199.7 kB / 0.9649 GB, free: 6.293 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00122/1.596, allocations: 226.1 kB / 0.9651 GB, free: 6.07 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004362/1.597, allocations: 98.33 kB / 0.9652 GB, free: 5.977 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.007496/1.604, allocations: 3.795 MB / 0.9689 GB, free: 2.188 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.91e-07/1.604, allocations: 4 kB / 0.9689 GB, free: 2.184 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.009348/1.614, allocations: 1.824 MB / 0.9707 GB, free: 368 kB / 0.67 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.3142/1.928, allocations: 15.29 MB / 0.9856 GB, free: 249.1 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01402/1.942, allocations: 10.02 MB / 0.9954 GB, free: 245.5 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/1.942, allocations: 0 / 0.9954 GB, free: 245.5 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004937/1.947, allocations: 3.956 MB / 0.9993 GB, free: 243.8 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/1.951, allocations: 0.8053 MB / 1 GB, free: 243.4 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1147/2.066, allocations: 83.51 MB / 1.082 GB, free: 159.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007185/2.073, allocations: 4.855 MB / 1.086 GB, free: 154.3 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.006395/2.08, allocations: 2.797 MB / 1.089 GB, free: 151.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004401/2.084, allocations: 3.245 MB / 1.092 GB, free: 148.3 MB / 0.67 GB Notification: Performance of SimCode: time 1.343e-06/2.084, allocations: 0 / 1.092 GB, free: 148.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.447/2.531, allocations: 133.4 MB / 1.223 GB, free: 231.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 46.15/48.69, allocations: 12.02 kB / 1.223 GB, free: 231.4 MB / 0.67 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)