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.001115/0.00112, allocations: 97.33 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.0002474, allocations: 4 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1179, allocations: 51.5 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.3168/0.4348, allocations: 66.4 MB / 424.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04652/0.4813, allocations: 14.03 MB / 438.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01847/0.4998, allocations: 327.1 kB / 439.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0126/0.5125, allocations: 3.413 MB / 442.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03139/0.5439, allocations: 10.19 MB / 452.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006319/0.5502, allocations: 1.283 MB / 453.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.08721/0.6375, allocations: 64.71 MB / 0.5065 GB, free: 11.24 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01189/0.6494, allocations: 6.373 MB / 0.5127 GB, free: 4.809 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005815/0.6553, allocations: 2.254 MB / 0.5149 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007058/0.6624, allocations: 3.677 MB / 0.5185 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00205/0.6645, allocations: 248 kB / 0.5187 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003959/0.6685, allocations: 1.182 MB / 0.5199 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004976/0.6735, allocations: 2.973 MB / 0.5228 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003076/0.6766, allocations: 1.314 MB / 0.5241 GB, free: 9.129 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.6909, allocations: 8.849 MB / 0.5327 GB, free: 264 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.346e-05/0.691, allocations: 4 kB / 0.5327 GB, free: 260 kB / 446.1 MB Notification: Performance of FrontEnd: time 6.252e-06/0.691, allocations: 4 kB / 0.5327 GB, free: 256 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.00072/0.6918, allocations: 0 / 0.5327 GB, free: 256 kB / 446.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.2693/0.9611, allocations: 7.167 MB / 0.5397 GB, free: 82.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.9611, allocations: 8.156 kB / 0.5397 GB, free: 82.78 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003224/0.9644, allocations: 1.079 MB / 0.5408 GB, free: 82.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1313/1.096, allocations: 13.25 MB / 0.5537 GB, free: 81.99 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0138/1.11, allocations: 5.961 MB / 0.5596 GB, free: 80.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003658/1.11, allocations: 369.4 kB / 0.5599 GB, free: 79.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0021/1.112, allocations: 0.5119 MB / 0.5604 GB, free: 79.63 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03385/1.146, allocations: 16.14 MB / 0.5762 GB, free: 66.85 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002446/1.146, allocations: 86.83 kB / 0.5763 GB, free: 66.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008244/1.147, allocations: 235.2 kB / 0.5765 GB, free: 66.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003699/1.151, allocations: 2.928 MB / 0.5793 GB, free: 64.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0247/1.175, allocations: 13.46 MB / 0.5925 GB, free: 54.82 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.08471/1.26, allocations: 64.14 MB / 0.6551 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/1.283, allocations: 7.863 MB / 0.6628 GB, free: 5.363 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006891/1.29, allocations: 4.133 MB / 0.6668 GB, free: 1.215 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03177/1.321, allocations: 18.78 MB / 0.6852 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/1.321, allocations: 70.72 kB / 0.6852 GB, free: 13.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=287): time 6.292e-06/1.321, allocations: 0 / 0.6852 GB, free: 13.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=370): time 0.3706/1.692, allocations: 51.38 MB / 0.7354 GB, free: 195.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/1.692, allocations: 275 kB / 0.7357 GB, free: 195.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008477/1.701, allocations: 6.04 MB / 0.7416 GB, free: 193.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009384/1.702, allocations: 86.38 kB / 0.7417 GB, free: 193 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002832/1.705, allocations: 4.742 MB / 0.7463 GB, free: 189.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00192/1.706, allocations: 1.362 MB / 0.7476 GB, free: 188.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007146/1.707, allocations: 190.1 kB / 0.7478 GB, free: 188.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0004211/1.708, allocations: 0.6914 MB / 0.7485 GB, free: 187.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006154/1.714, allocations: 3.906 MB / 0.7523 GB, free: 186.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008674/1.723, allocations: 9.137 MB / 0.7612 GB, free: 177 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008469/1.731, allocations: 5.768 MB / 0.7668 GB, free: 171.4 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/1.731, allocations: 52 kB / 0.7669 GB, free: 171.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03258/1.764, allocations: 16.37 MB / 0.7829 GB, free: 154.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/1.764, allocations: 84 kB / 0.783 GB, free: 154.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001956/1.764, allocations: 184.1 kB / 0.7831 GB, free: 154.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01159/1.776, allocations: 4.113 MB / 0.7871 GB, free: 150.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006761/1.783, allocations: 2.063 MB / 0.7892 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02859/1.811, allocations: 21.96 MB / 0.8106 GB, free: 126.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007853/1.819, allocations: 0.5072 MB / 0.8111 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.821, allocations: 0.5312 MB / 0.8116 GB, free: 125.2 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.006149/1.827, allocations: 3.113 MB / 0.8147 GB, free: 122.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/1.829, allocations: 0.576 MB / 0.8152 GB, free: 121.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01935/1.848, allocations: 9.864 MB / 0.8249 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.943e-05/1.848, allocations: 42.42 kB / 0.8249 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-05/1.848, allocations: 16 kB / 0.8249 GB, free: 111.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.828e-05/1.848, allocations: 19.92 kB / 0.8249 GB, free: 111.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0434/1.892, allocations: 19.58 MB / 0.8441 GB, free: 91.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.284e-05/1.892, allocations: 0 / 0.8441 GB, free: 91.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002962/1.895, allocations: 0.5344 MB / 0.8446 GB, free: 91.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01162/1.906, allocations: 3.666 MB / 0.8482 GB, free: 87.64 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009189/1.907, allocations: 65.16 kB / 0.8482 GB, free: 87.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02665/1.934, allocations: 19.87 MB / 0.8676 GB, free: 67.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.934, allocations: 3.562 kB / 0.8676 GB, free: 67.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02581/1.96, allocations: 14.5 MB / 0.8818 GB, free: 52.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.962, allocations: 0.5912 MB / 0.8824 GB, free: 52.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002708/1.965, allocations: 61.47 kB / 0.8824 GB, free: 52.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004873/1.97, allocations: 212.6 kB / 0.8826 GB, free: 51.99 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001307/1.971, allocations: 230 kB / 0.8828 GB, free: 51.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006409/1.972, allocations: 93.7 kB / 0.8829 GB, free: 51.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.007598/1.98, allocations: 3.768 MB / 0.8866 GB, free: 47.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.31e-07/1.98, allocations: 7.938 kB / 0.8866 GB, free: 47.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01235/1.992, allocations: 1.839 MB / 0.8884 GB, free: 46.07 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.02771/2.02, allocations: 15.28 MB / 0.9033 GB, free: 30.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2203/2.24, allocations: 9.965 MB / 0.9131 GB, free: 189.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/2.24, allocations: 1.797 kB / 0.9131 GB, free: 189.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.007137/2.247, allocations: 3.948 MB / 0.9169 GB, free: 188.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006527/2.254, allocations: 0.767 MB / 0.9177 GB, free: 188.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1173/2.371, allocations: 66.85 MB / 0.983 GB, free: 139 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0049/2.376, allocations: 4.863 MB / 0.9877 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006728/2.383, allocations: 2.796 MB / 0.9904 GB, free: 131.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004451/2.387, allocations: 3.249 MB / 0.9936 GB, free: 128.1 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/2.387, allocations: 0 / 0.9936 GB, free: 128.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4315/2.819, allocations: 141.8 MB / 1.132 GB, free: 165.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002484/2.819, allocations: 232.4 kB / 1.132 GB, free: 165.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.755/9.574, allocations: 2.25 kB / 1.132 GB, free: 165.5 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