Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007785/0.0007785, allocations: 96 kB / 17 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008162/0.0008162, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2022/0.2022, allocations: 45.92 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002686, allocations: 8 kB / 418.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1215, allocations: 63.47 MB / 481.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03137/0.1529, allocations: 31.52 MB / 0.5011 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2586/0.4116, allocations: 7.503 MB / 0.5085 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006228/0.4179, allocations: 148.2 kB / 0.5086 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006207/0.4241, allocations: 1.581 MB / 0.5101 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01786/0.442, allocations: 4.882 MB / 0.5149 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00305/0.4451, allocations: 0.5851 MB / 0.5155 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03854/0.4836, allocations: 32.08 MB / 0.5468 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004925/0.4886, allocations: 2.984 MB / 0.5497 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.491, allocations: 1.13 MB / 0.5508 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002841/0.4939, allocations: 1.785 MB / 0.5526 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005131/0.4944, allocations: 124 kB / 0.5527 GB, free: 8.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.4964, allocations: 0.9516 MB / 0.5536 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001622/0.4981, allocations: 1.489 MB / 0.5551 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009469/0.499, allocations: 0.7243 MB / 0.5558 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005765/0.5048, allocations: 4.837 MB / 0.5605 GB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.5048, allocations: 0 / 0.5605 GB, free: 1.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5048, allocations: 0 / 0.5605 GB, free: 1.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001607/0.505, allocations: 0 / 0.5605 GB, free: 1.973 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01104/0.516, allocations: 3.665 MB / 0.5641 GB, free: 14.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.5161, allocations: 8.031 kB / 0.5641 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001941/0.5181, allocations: 0.6315 MB / 0.5647 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08952/0.6076, allocations: 7.215 MB / 0.5717 GB, free: 7.172 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009659/0.6173, allocations: 2.529 MB / 0.5742 GB, free: 5.176 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004096/0.6178, allocations: 199.4 kB / 0.5744 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001751/0.6196, allocations: 270.8 kB / 0.5747 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.023/0.6426, allocations: 8.531 MB / 0.583 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/0.6429, allocations: 47.58 kB / 0.583 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001389/0.6443, allocations: 128.2 kB / 0.5832 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003476/0.6478, allocations: 1.738 MB / 0.5849 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01562/0.6634, allocations: 7.159 MB / 0.5918 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05119/0.7147, allocations: 33.96 MB / 0.625 GB, free: 1.832 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008927/0.7236, allocations: 3.476 MB / 0.6284 GB, free: 14.22 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002658/0.7264, allocations: 1.639 MB / 0.63 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/0.7391, allocations: 7.318 MB / 0.6372 GB, free: 5.02 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/0.7392, allocations: 47.5 kB / 0.6372 GB, free: 4.965 MB / 478.1 MB Notification: Performance of pre-optimization done (n=151): time 5.881e-06/0.7393, allocations: 4 kB / 0.6372 GB, free: 4.961 MB / 478.1 MB Notification: Performance of matching and sorting (n=188): time 0.06307/0.8023, allocations: 19.39 MB / 0.6561 GB, free: 1.438 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.8025, allocations: 201.2 kB / 0.6563 GB, free: 1.199 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006225/0.8088, allocations: 3.728 MB / 0.66 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004452/0.8092, allocations: 53.7 kB / 0.66 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002233/0.8115, allocations: 2.82 MB / 0.6628 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.8126, allocations: 0.7185 MB / 0.6635 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002715/0.8129, allocations: 116 kB / 0.6636 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0003956/0.8133, allocations: 0.5516 MB / 0.6641 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003458/0.8168, allocations: 2.092 MB / 0.6662 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006292/0.8231, allocations: 5.632 MB / 0.6717 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005716/0.8288, allocations: 3.349 MB / 0.6749 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.754e-05/0.8289, allocations: 36 kB / 0.675 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.022/0.8509, allocations: 8.699 MB / 0.6835 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002975/0.8513, allocations: 63.98 kB / 0.6835 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004246/0.8518, allocations: 124.8 kB / 0.6837 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005861/0.8577, allocations: 1.449 MB / 0.6851 GB, free: 2.008 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004805/0.8625, allocations: 1.298 MB / 0.6863 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.8768, allocations: 8.592 MB / 0.6947 GB, free: 7.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00476/0.8816, allocations: 307.5 kB / 0.695 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/0.8828, allocations: 353.6 kB / 0.6954 GB, free: 7.344 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (695): * Single equations (assignments): 691 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004302/0.8872, allocations: 1.901 MB / 0.6972 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008955/0.8881, allocations: 331.6 kB / 0.6975 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009455/0.8975, allocations: 3.805 MB / 0.7012 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.028e-05/0.8976, allocations: 23.05 kB / 0.7013 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.207e-05/0.8977, allocations: 8 kB / 0.7013 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.302e-05/0.8977, allocations: 11.97 kB / 0.7013 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/0.9163, allocations: 8.237 MB / 0.7093 GB, free: 8.988 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.9164, allocations: 12 kB / 0.7093 GB, free: 8.977 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.9177, allocations: 252.1 kB / 0.7096 GB, free: 8.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004376/0.9221, allocations: 1.201 MB / 0.7108 GB, free: 7.527 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/0.9224, allocations: 37.31 kB / 0.7108 GB, free: 7.492 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2639/1.186, allocations: 7.876 MB / 0.7185 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.186, allocations: 6.469 kB / 0.7185 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/1.199, allocations: 6.313 MB / 0.7246 GB, free: 193.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009819/1.2, allocations: 382.5 kB / 0.725 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004344/1.2, allocations: 31.86 kB / 0.725 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001284/1.202, allocations: 90.09 kB / 0.7251 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/1.202, allocations: 115.7 kB / 0.7252 GB, free: 193.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/1.202, allocations: 51.7 kB / 0.7253 GB, free: 193.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004424/1.207, allocations: 2.312 MB / 0.7275 GB, free: 192.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.61e-07/1.207, allocations: 1.094 kB / 0.7275 GB, free: 192.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00581/1.213, allocations: 0.964 MB / 0.7285 GB, free: 192.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0138/1.226, allocations: 7.023 MB / 0.7353 GB, free: 189.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008861/1.235, allocations: 5.201 MB / 0.7404 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/1.235, allocations: 0 / 0.7404 GB, free: 187.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00224/1.238, allocations: 1.76 MB / 0.7421 GB, free: 187.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/1.24, allocations: 391.3 kB / 0.7425 GB, free: 187 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05196/1.292, allocations: 32.72 MB / 0.7745 GB, free: 159.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002826/1.295, allocations: 2.957 MB / 0.7774 GB, free: 156.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004033/1.299, allocations: 1.819 MB / 0.7791 GB, free: 154.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/1.301, allocations: 1.647 MB / 0.7807 GB, free: 153.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.513e-06/1.301, allocations: 0 / 0.7807 GB, free: 153.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.403, allocations: 73.86 MB / 0.8529 GB, free: 79.71 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/1.403, allocations: 202.6 kB / 0.8531 GB, free: 79.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.587/5.99, allocations: 3.938 kB / 0.8531 GB, free: 79.47 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat