Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00246/0.00246, allocations: 202.7 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001047/0.001047, allocations: 94.12 kB / 297.2 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4049/0.4049, allocations: 45.23 MB / 394.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003176, allocations: 8 kB / 468.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4259, allocations: 63.23 MB / 0.5193 GB, free: 43.73 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.5777, allocations: 107.7 MB / 0.6245 GB, free: 13.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.5781, allocations: 83.92 kB / 0.6245 GB, free: 13.78 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4918/1.07, allocations: 80.22 MB / 0.7029 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.274e-06/1.07, allocations: 0 / 0.7029 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000342/1.07, allocations: 71.64 kB / 0.7029 GB, free: 100.6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.0142/1.085, allocations: 3.604 MB / 0.7065 GB, free: 99.09 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/1.085, allocations: 8.875 kB / 0.7065 GB, free: 99.09 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003958/1.089, allocations: 0.789 MB / 0.7072 GB, free: 99.01 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01468/1.103, allocations: 3.354 MB / 0.7105 GB, free: 98.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00782/1.111, allocations: 2.308 MB / 0.7128 GB, free: 98.26 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005357/1.112, allocations: 306.9 kB / 0.7131 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00249/1.114, allocations: 387.6 kB / 0.7134 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02449/1.139, allocations: 10.48 MB / 0.7237 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002856/1.139, allocations: 45 kB / 0.7237 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002046/1.141, allocations: 197.6 kB / 0.7239 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002167/1.143, allocations: 1.103 MB / 0.725 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01892/1.162, allocations: 9.16 MB / 0.7339 GB, free: 95.57 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05981/1.222, allocations: 46.23 MB / 0.7791 GB, free: 62.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005268/1.228, allocations: 3.374 MB / 0.7824 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/1.238, allocations: 5.048 MB / 0.7873 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/1.238, allocations: 58.48 kB / 0.7873 GB, free: 57.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=150): time 7.194e-06/1.238, allocations: 0 / 0.7873 GB, free: 57.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=150): time 0.007001/1.245, allocations: 3.827 MB / 0.7911 GB, free: 56.09 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/1.245, allocations: 173.5 kB / 0.7912 GB, free: 55.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007413/1.252, allocations: 3.44 MB / 0.7946 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002855/1.253, allocations: 42.12 kB / 0.7946 GB, free: 54.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002559/1.255, allocations: 3.236 MB / 0.7978 GB, free: 52.08 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009767/1.256, allocations: 0.6059 MB / 0.7984 GB, free: 51.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007533/1.257, allocations: 121.8 kB / 0.7985 GB, free: 51.57 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0007855/1.258, allocations: 0.5867 MB / 0.7991 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003364/1.261, allocations: 1.906 MB / 0.8009 GB, free: 50.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005436/1.267, allocations: 6.059 MB / 0.8069 GB, free: 44.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004702/1.272, allocations: 3.418 MB / 0.8102 GB, free: 42.84 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.802e-05/1.272, allocations: 42.44 kB / 0.8102 GB, free: 42.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=842) (initialization): time 0.01569/1.287, allocations: 7.623 MB / 0.8177 GB, free: 39.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001227/1.288, allocations: 72.75 kB / 0.8178 GB, free: 39.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00023/1.288, allocations: 151 kB / 0.8179 GB, free: 39.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/1.288, allocations: 214 kB / 0.8181 GB, free: 39.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005126/1.293, allocations: 1.461 MB / 0.8195 GB, free: 39.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004062/1.294, allocations: 290.9 kB / 0.8198 GB, free: 39.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005782/1.299, allocations: 0.9175 MB / 0.8207 GB, free: 38.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.301, allocations: 396.3 kB / 0.8211 GB, free: 38.25 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 677 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (794): * Single equations (assignments): 788 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0048/1.305, allocations: 2.233 MB / 0.8233 GB, free: 36.29 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007535/1.306, allocations: 307.9 kB / 0.8236 GB, free: 35.99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009759/1.307, allocations: 411 kB / 0.8239 GB, free: 35.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.175e-05/1.307, allocations: 44.48 kB / 0.824 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.307, allocations: 4 kB / 0.824 GB, free: 35.58 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/1.307, allocations: 11.27 kB / 0.824 GB, free: 35.58 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009406/1.317, allocations: 5.591 MB / 0.8295 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/1.317, allocations: 8 kB / 0.8295 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008955/1.318, allocations: 199.2 kB / 0.8297 GB, free: 30.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-05/1.318, allocations: 15.94 kB / 0.8297 GB, free: 30.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.927e-05/1.318, allocations: 28.09 kB / 0.8297 GB, free: 30.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.236e-05/1.318, allocations: 15.69 kB / 0.8297 GB, free: 30.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.318, allocations: 7.938 kB / 0.8297 GB, free: 30.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/1.321, allocations: 3.111 MB / 0.8328 GB, free: 27.45 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008353/1.321, allocations: 387 kB / 0.8331 GB, free: 27.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/1.322, allocations: 29.33 kB / 0.8332 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.323, allocations: 66.27 kB / 0.8332 GB, free: 26.99 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/1.323, allocations: 82 kB / 0.8333 GB, free: 26.94 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.894e-05/1.323, allocations: 44.62 kB / 0.8333 GB, free: 26.89 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003372/1.326, allocations: 2.341 MB / 0.8356 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.5e-07/1.326, allocations: 0 / 0.8356 GB, free: 24.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00591/1.332, allocations: 1.108 MB / 0.8367 GB, free: 23.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003599/1.336, allocations: 5.099 MB / 0.8417 GB, free: 18.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007765/1.344, allocations: 4.362 MB / 0.846 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.83e-05/1.344, allocations: 4.25 kB / 0.846 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001211/1.345, allocations: 0.95 MB / 0.8469 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/1.348, allocations: 326 kB / 0.8472 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3709/1.719, allocations: 131.8 MB / 0.9759 GB, free: 71.33 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003784/1.722, allocations: 3.297 MB / 0.9791 GB, free: 70.55 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005431/1.728, allocations: 2.235 MB / 0.9813 GB, free: 70.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002546/1.73, allocations: 1.693 MB / 0.9829 GB, free: 70.51 MB / 0.5417 GB Notification: Performance of SimCode: time 1.363e-06/1.73, allocations: 0 / 0.9829 GB, free: 70.51 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1381/1.869, allocations: 64.05 MB / 1.045 GB, free: 57.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/1.869, allocations: 176.1 kB / 1.046 GB, free: 57.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.177/6.046, allocations: 0 / 1.046 GB, free: 57.71 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat does not exist to compare? outputFormat=mat