Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_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.001372/0.001372, allocations: 94.12 kB / 16.99 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 200.8 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1314, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2184/0.3499, allocations: 62.62 MB / 420.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03677/0.3867, allocations: 14.68 MB / 435.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01422/0.401, allocations: 319.2 kB / 435.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0109/0.4119, allocations: 3.083 MB / 438.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03407/0.446, allocations: 8.934 MB / 447.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005776/0.4518, allocations: 1.26 MB / 449.1 MB, free: 360 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.07319/0.5251, allocations: 50.02 MB / 499.1 MB, free: 14.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01097/0.5361, allocations: 6.34 MB / 0.4936 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005098/0.5412, allocations: 1.849 MB / 0.4954 GB, free: 6.031 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0053/0.5466, allocations: 2.652 MB / 0.498 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00225/0.5489, allocations: 248 kB / 0.4982 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004127/0.5531, allocations: 1.151 MB / 0.4994 GB, free: 1.977 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006409/0.5595, allocations: 2.763 MB / 0.5021 GB, free: 15.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00326/0.5628, allocations: 1.322 MB / 0.5034 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0128/0.5756, allocations: 8.838 MB / 0.512 GB, free: 5.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.5757, allocations: 0 / 0.512 GB, free: 5.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.5757, allocations: 0 / 0.512 GB, free: 5.016 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003858/0.5761, allocations: 0 / 0.512 GB, free: 5.016 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01938/0.5955, allocations: 7.358 MB / 0.5192 GB, free: 13.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.5956, allocations: 8.031 kB / 0.5192 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003331/0.5989, allocations: 1.087 MB / 0.5202 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4023/1.001, allocations: 15.09 MB / 0.535 GB, free: 79.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/1.017, allocations: 5.573 MB / 0.5404 GB, free: 79.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004486/1.017, allocations: 367.7 kB / 0.5408 GB, free: 79.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002558/1.02, allocations: 0.5141 MB / 0.5413 GB, free: 79.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02919/1.049, allocations: 16.36 MB / 0.5573 GB, free: 76.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002778/1.049, allocations: 76.78 kB / 0.5573 GB, free: 76.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/1.05, allocations: 239.1 kB / 0.5576 GB, free: 76.24 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004162/1.055, allocations: 2.927 MB / 0.5604 GB, free: 76.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02638/1.081, allocations: 13.71 MB / 0.5738 GB, free: 69.45 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.07326/1.154, allocations: 64.45 MB / 0.6367 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01958/1.174, allocations: 7.882 MB / 0.6444 GB, free: 8.035 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02839/1.202, allocations: 18.97 MB / 0.663 GB, free: 4.598 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/1.202, allocations: 71.94 kB / 0.663 GB, free: 4.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 5.13e-06/1.202, allocations: 0 / 0.663 GB, free: 4.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.1674/1.37, allocations: 51.65 MB / 0.7135 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/1.37, allocations: 273.2 kB / 0.7137 GB, free: 496 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1989/1.569, allocations: 6.504 MB / 0.7201 GB, free: 197.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.57, allocations: 81.67 kB / 0.7202 GB, free: 197.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003638/1.573, allocations: 4.75 MB / 0.7248 GB, free: 194 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001848/1.575, allocations: 1.356 MB / 0.7261 GB, free: 193 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006977/1.576, allocations: 185 kB / 0.7263 GB, free: 192.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0005241/1.576, allocations: 0.6966 MB / 0.727 GB, free: 192.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007101/1.584, allocations: 3.905 MB / 0.7308 GB, free: 191.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009823/1.593, allocations: 9.103 MB / 0.7397 GB, free: 182.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008638/1.602, allocations: 5.768 MB / 0.7453 GB, free: 180.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000266/1.602, allocations: 50.34 kB / 0.7454 GB, free: 180.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03292/1.635, allocations: 16.37 MB / 0.7613 GB, free: 174.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000137/1.636, allocations: 80 kB / 0.7614 GB, free: 174.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000272/1.636, allocations: 184 kB / 0.7616 GB, free: 174.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01246/1.648, allocations: 4.104 MB / 0.7656 GB, free: 171.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007829/1.656, allocations: 2.07 MB / 0.7676 GB, free: 169.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02789/1.684, allocations: 22.74 MB / 0.7898 GB, free: 146.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008737/1.693, allocations: 0.5099 MB / 0.7903 GB, free: 146.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001962/1.695, allocations: 0.5273 MB / 0.7909 GB, free: 145.6 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007171/1.702, allocations: 3.121 MB / 0.7939 GB, free: 142.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/1.704, allocations: 0.5785 MB / 0.7945 GB, free: 141.9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01868/1.722, allocations: 9.855 MB / 0.8041 GB, free: 132 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.393e-05/1.722, allocations: 40.72 kB / 0.8041 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-05/1.722, allocations: 20 kB / 0.8041 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.218e-05/1.723, allocations: 19.94 kB / 0.8042 GB, free: 131.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03919/1.762, allocations: 19.61 MB / 0.8233 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.714e-05/1.762, allocations: 0 / 0.8233 GB, free: 112.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/1.765, allocations: 0.546 MB / 0.8239 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01152/1.776, allocations: 3.659 MB / 0.8274 GB, free: 108 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008513/1.777, allocations: 61.16 kB / 0.8275 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0248/1.802, allocations: 20.65 MB / 0.8477 GB, free: 86.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.802, allocations: 0 / 0.8477 GB, free: 86.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0233/1.825, allocations: 14.62 MB / 0.8619 GB, free: 72.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001972/1.827, allocations: 0.6069 MB / 0.8625 GB, free: 71.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/1.829, allocations: 63.98 kB / 0.8626 GB, free: 71.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003149/1.832, allocations: 224.4 kB / 0.8628 GB, free: 71.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007852/1.833, allocations: 222.2 kB / 0.863 GB, free: 71.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002615/1.833, allocations: 95.97 kB / 0.8631 GB, free: 71.05 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005675/1.839, allocations: 4.135 MB / 0.8671 GB, free: 66.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.91e-07/1.839, allocations: 0 / 0.8671 GB, free: 66.92 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.009636/1.848, allocations: 1.864 MB / 0.869 GB, free: 65.06 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02536/1.874, allocations: 15.54 MB / 0.8841 GB, free: 49.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01474/1.889, allocations: 9.962 MB / 0.8939 GB, free: 39.46 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/1.889, allocations: 0 / 0.8939 GB, free: 39.46 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005228/1.894, allocations: 3.949 MB / 0.8977 GB, free: 35.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004353/1.898, allocations: 0.7157 MB / 0.8984 GB, free: 34.77 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3514/2.25, allocations: 192.9 MB / 1.087 GB, free: 26.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006643/2.256, allocations: 5.011 MB / 1.092 GB, free: 22.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006957/2.263, allocations: 2.806 MB / 1.094 GB, free: 20.07 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004803/2.268, allocations: 3.249 MB / 1.098 GB, free: 16.82 MB / 0.4981 GB Notification: Performance of SimCode: time 1.603e-06/2.268, allocations: 4 kB / 1.098 GB, free: 16.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7098/2.978, allocations: 142.9 MB / 1.237 GB, free: 81.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/2.978, allocations: 231.8 kB / 1.237 GB, free: 81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.09/9.068, allocations: 4 kB / 1.237 GB, free: 81 MB / 0.4981 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat