Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 195.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009634/0.0009632, allocations: 90.86 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1907/0.1907, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.024e-05, allocations: 8 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 63.25 MB / 0.5115 GB, free: 6.695 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.531, allocations: 115.4 MB / 0.6241 GB, free: 10.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.5312, allocations: 74.03 kB / 0.6242 GB, free: 10.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6369/1.168, allocations: 143.2 MB / 0.764 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.653e-06/1.168, allocations: 3.594 kB / 0.764 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000541/1.169, allocations: 129.4 kB / 0.7641 GB, free: 110.1 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.0257/1.194, allocations: 7.077 MB / 0.7711 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/1.195, allocations: 12.47 kB / 0.7711 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004574/1.199, allocations: 1.142 MB / 0.7722 GB, free: 107.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03106/1.23, allocations: 7.559 MB / 0.7796 GB, free: 107 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02234/1.253, allocations: 8.315 MB / 0.7877 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005743/1.253, allocations: 483.6 kB / 0.7881 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003907/1.257, allocations: 0.6532 MB / 0.7888 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04129/1.298, allocations: 16.57 MB / 0.805 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006227/1.299, allocations: 94.66 kB / 0.8051 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003471/1.303, allocations: 320.3 kB / 0.8054 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002475/1.305, allocations: 1.577 MB / 0.8069 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0295/1.335, allocations: 13.5 MB / 0.8201 GB, free: 101 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08966/1.424, allocations: 74.25 MB / 0.8926 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02072/1.445, allocations: 7.654 MB / 0.9001 GB, free: 36.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004989/1.45, allocations: 3.917 MB / 0.9039 GB, free: 32.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02678/1.477, allocations: 18.56 MB / 0.922 GB, free: 16.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/1.477, allocations: 68.5 kB / 0.9221 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 5.841e-06/1.477, allocations: 4 kB / 0.9221 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.4062/1.883, allocations: 38.59 MB / 0.9598 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.883, allocations: 270.7 kB / 0.96 GB, free: 117.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01001/1.893, allocations: 5.265 MB / 0.9652 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008326/1.894, allocations: 85.77 kB / 0.9653 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003261/1.898, allocations: 4.763 MB / 0.9699 GB, free: 115.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00173/1.899, allocations: 1.336 MB / 0.9712 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004446/1.9, allocations: 185.5 kB / 0.9714 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004396/1.9, allocations: 0.6977 MB / 0.9721 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005616/1.906, allocations: 3.639 MB / 0.9756 GB, free: 114.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006893/1.913, allocations: 8.839 MB / 0.9843 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006463/1.919, allocations: 5.555 MB / 0.9897 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.791e-05/1.919, allocations: 52.16 kB / 0.9897 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.02981/1.949, allocations: 15.86 MB / 1.005 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/1.949, allocations: 87.02 kB / 1.005 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/1.949, allocations: 182.6 kB / 1.005 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01273/1.962, allocations: 4.023 MB / 1.009 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007128/1.969, allocations: 2.039 MB / 1.011 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02839/1.998, allocations: 20.81 MB / 1.032 GB, free: 97.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008265/2.006, allocations: 0.5457 MB / 1.032 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001892/2.008, allocations: 0.5226 MB / 1.033 GB, free: 97.11 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1081): * Single equations (assignments): 1076 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002969/2.011, allocations: 0.8065 MB / 1.034 GB, free: 96.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001518/2.013, allocations: 0.5685 MB / 1.034 GB, free: 96.17 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0199/2.032, allocations: 9.428 MB / 1.043 GB, free: 93.19 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.271e-05/2.033, allocations: 41.84 kB / 1.043 GB, free: 93.19 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.585e-05/2.033, allocations: 16.97 kB / 1.043 GB, free: 93.19 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.838e-05/2.033, allocations: 16.59 kB / 1.043 GB, free: 93.19 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03728/2.07, allocations: 18.87 MB / 1.062 GB, free: 86.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.012e-05/2.07, allocations: 0 / 1.062 GB, free: 86.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002357/2.072, allocations: 0.4938 MB / 1.062 GB, free: 86.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01112/2.083, allocations: 3.628 MB / 1.066 GB, free: 84.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006573/2.084, allocations: 67.36 kB / 1.066 GB, free: 84.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02358/2.108, allocations: 18.71 MB / 1.084 GB, free: 68.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/2.108, allocations: 0 / 1.084 GB, free: 68.29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02381/2.132, allocations: 13.9 MB / 1.098 GB, free: 56.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/2.133, allocations: 0.5739 MB / 1.098 GB, free: 56.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001761/2.135, allocations: 66.8 kB / 1.098 GB, free: 56.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003578/2.139, allocations: 231 kB / 1.099 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000834/2.14, allocations: 222.5 kB / 1.099 GB, free: 55.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004007/2.14, allocations: 87.56 kB / 1.099 GB, free: 55.69 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006366/2.146, allocations: 3.677 MB / 1.102 GB, free: 52.44 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.9e-07/2.146, allocations: 0 / 1.102 GB, free: 52.44 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008824/2.155, allocations: 1.849 MB / 1.104 GB, free: 50.61 MB / 0.5417 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 258 * 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.02405/2.179, allocations: 14.76 MB / 1.119 GB, free: 37.55 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01255/2.192, allocations: 9.39 MB / 1.128 GB, free: 28.15 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/2.192, allocations: 4.062 kB / 1.128 GB, free: 28.14 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004754/2.197, allocations: 3.686 MB / 1.131 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004107/2.201, allocations: 0.705 MB / 1.132 GB, free: 23.74 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03435/2.235, allocations: 15.26 MB / 1.147 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006684/2.242, allocations: 4.993 MB / 1.152 GB, free: 3.453 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0068/2.249, allocations: 2.785 MB / 1.155 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00484/2.254, allocations: 3.252 MB / 1.158 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of SimCode: time 6.42e-07/2.254, allocations: 0 / 1.158 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4575/2.711, allocations: 140.6 MB / 1.295 GB, free: 54.16 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/2.711, allocations: 182.5 kB / 1.295 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.978/8.689, allocations: 0 / 1.295 GB, free: 53.93 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat