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.001011/0.001011, allocations: 97.05 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 207.5 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1968/0.1968, allocations: 45.91 MB / 344 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002356, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1108, allocations: 63.45 MB / 481.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02862/0.1395, allocations: 29.79 MB / 0.4993 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2665/0.406, allocations: 7.782 MB / 0.5069 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005663/0.4118, allocations: 148.4 kB / 0.5071 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005307/0.4171, allocations: 1.435 MB / 0.5085 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0152/0.4323, allocations: 4.337 MB / 0.5127 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002466/0.4348, allocations: 0.5669 MB / 0.5133 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03327/0.4681, allocations: 24.7 MB / 0.5374 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003712/0.4719, allocations: 2.973 MB / 0.5403 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.4733, allocations: 0.93 MB / 0.5412 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.4745, allocations: 1.279 MB / 0.5424 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002954/0.4748, allocations: 124 kB / 0.5426 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.4763, allocations: 0.9234 MB / 0.5435 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.4774, allocations: 1.375 MB / 0.5448 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006701/0.478, allocations: 0.7251 MB / 0.5455 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004482/0.4825, allocations: 4.836 MB / 0.5502 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4825, allocations: 0 / 0.5502 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.4826, allocations: 4.922 kB / 0.5502 GB, free: 11.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000169/0.4827, allocations: 4 kB / 0.5502 GB, free: 11.38 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.008131/0.4909, allocations: 3.702 MB / 0.5539 GB, free: 7.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4909, allocations: 8.031 kB / 0.5539 GB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001257/0.4922, allocations: 0.6259 MB / 0.5545 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08279/0.575, allocations: 8.292 MB / 0.5626 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007338/0.5824, allocations: 2.438 MB / 0.5649 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.5827, allocations: 192.8 kB / 0.5651 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001747/0.5845, allocations: 274.5 kB / 0.5654 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/0.6039, allocations: 8.597 MB / 0.5738 GB, free: 6.699 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/0.6042, allocations: 45.62 kB / 0.5738 GB, free: 6.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004233/0.6046, allocations: 124.2 kB / 0.574 GB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002855/0.6075, allocations: 1.741 MB / 0.5757 GB, free: 5.125 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.6225, allocations: 7.239 MB / 0.5827 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04373/0.6663, allocations: 34.04 MB / 0.616 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008954/0.6753, allocations: 3.477 MB / 0.6194 GB, free: 7.586 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0126/0.6879, allocations: 7.379 MB / 0.6266 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.688, allocations: 47.5 kB / 0.6266 GB, free: 15.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=151): time 3.997e-06/0.688, allocations: 0 / 0.6266 GB, free: 15.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=188): time 0.06108/0.7491, allocations: 19.64 MB / 0.6458 GB, free: 12.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.7493, allocations: 197.2 kB / 0.646 GB, free: 11.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005256/0.7545, allocations: 3.851 MB / 0.6497 GB, free: 8.027 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003375/0.7549, allocations: 49.7 kB / 0.6498 GB, free: 7.973 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/0.7569, allocations: 2.829 MB / 0.6526 GB, free: 5.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007678/0.7576, allocations: 0.7126 MB / 0.6533 GB, free: 4.453 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.7579, allocations: 118.6 kB / 0.6534 GB, free: 4.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003141/0.7582, allocations: 0.5536 MB / 0.6539 GB, free: 3.781 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.7612, allocations: 2.084 MB / 0.6559 GB, free: 1.691 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005317/0.7665, allocations: 5.616 MB / 0.6614 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004804/0.7713, allocations: 3.345 MB / 0.6647 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.439e-05/0.7714, allocations: 36 kB / 0.6647 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01814/0.7896, allocations: 8.704 MB / 0.6732 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.7897, allocations: 60 kB / 0.6733 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/0.7899, allocations: 124 kB / 0.6734 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005231/0.7951, allocations: 1.453 MB / 0.6748 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004522/0.7997, allocations: 1.298 MB / 0.6761 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/0.8126, allocations: 8.885 MB / 0.6848 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004319/0.817, allocations: 303.5 kB / 0.6851 GB, free: 1.977 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008344/0.8178, allocations: 359.5 kB / 0.6854 GB, free: 1.629 MB / 0.5137 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.003518/0.8214, allocations: 1.901 MB / 0.6873 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007067/0.8221, allocations: 335.5 kB / 0.6876 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008368/0.8305, allocations: 3.805 MB / 0.6913 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/0.8305, allocations: 24 kB / 0.6913 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.8306, allocations: 9.641 kB / 0.6913 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.8306, allocations: 7.969 kB / 0.6913 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01834/0.8489, allocations: 8.244 MB / 0.6994 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-05/0.849, allocations: 0 / 0.6994 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.8505, allocations: 259.6 kB / 0.6996 GB, free: 3.004 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00474/0.8553, allocations: 1.202 MB / 0.7008 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003163/0.8556, allocations: 29.75 kB / 0.7008 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/0.8676, allocations: 8.171 MB / 0.7088 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.8676, allocations: 7.891 kB / 0.7088 GB, free: 9.465 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/0.8789, allocations: 6.396 MB / 0.7151 GB, free: 3.035 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.88, allocations: 384.6 kB / 0.7154 GB, free: 2.637 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004394/0.8805, allocations: 32 kB / 0.7155 GB, free: 2.605 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.8818, allocations: 83.91 kB / 0.7155 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002871/0.8821, allocations: 113.2 kB / 0.7156 GB, free: 2.414 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.8822, allocations: 51.98 kB / 0.7157 GB, free: 2.363 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.2486/1.131, allocations: 2.406 MB / 0.718 GB, free: 192.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.1e-07/1.131, allocations: 0 / 0.718 GB, free: 192.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006965/1.138, allocations: 0.9763 MB / 0.719 GB, free: 192.4 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.01757/1.155, allocations: 7.282 MB / 0.7261 GB, free: 191.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01165/1.167, allocations: 5.198 MB / 0.7312 GB, free: 189.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/1.167, allocations: 4.562 kB / 0.7312 GB, free: 189.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003997/1.171, allocations: 1.753 MB / 0.7329 GB, free: 188.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003271/1.175, allocations: 368.4 kB / 0.7333 GB, free: 188.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07956/1.254, allocations: 118.7 MB / 0.8492 GB, free: 79.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002628/1.257, allocations: 3.048 MB / 0.8521 GB, free: 77.61 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00406/1.261, allocations: 1.815 MB / 0.8539 GB, free: 76.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/1.263, allocations: 1.659 MB / 0.8555 GB, free: 74.61 MB / 0.545 GB Notification: Performance of SimCode: time 7.02e-07/1.263, allocations: 0 / 0.8555 GB, free: 74.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09957/1.362, allocations: 74.45 MB / 0.9282 GB, free: 0.543 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002637/1.363, allocations: 197.6 kB / 0.9284 GB, free: 312 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.935/5.298, allocations: 0 / 0.9284 GB, free: 312 kB / 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