Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002415/0.002421, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.4 MB / 222.5 MB, free: 13.78 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001158, allocations: 98.78 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2968/0.2968, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006184/0.0006185, allocations: 16 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.129, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05743/0.1865, allocations: 35.52 MB / 0.5135 GB, free: 5.621 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.4104/0.597, allocations: 8.806 MB / 0.5221 GB, free: 9.926 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007634/0.6047, allocations: 172.9 kB / 0.5223 GB, free: 9.926 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00686/0.6116, allocations: 1.742 MB / 0.524 GB, free: 9.922 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02133/0.633, allocations: 5.205 MB / 0.5291 GB, free: 9.832 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.6365, allocations: 497.5 kB / 0.5295 GB, free: 9.828 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03539/0.672, allocations: 13.9 MB / 0.5431 GB, free: 7.723 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005864/0.6779, allocations: 3.011 MB / 0.5461 GB, free: 6.816 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.6802, allocations: 0.8903 MB / 0.5469 GB, free: 6.652 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002688/0.6829, allocations: 1.248 MB / 0.5481 GB, free: 6.371 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009577/0.6839, allocations: 126.9 kB / 0.5483 GB, free: 6.371 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003098/0.6871, allocations: 0.895 MB / 0.5491 GB, free: 6.172 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002445/0.6896, allocations: 1.41 MB / 0.5505 GB, free: 5.883 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.691, allocations: 0.7385 MB / 0.5512 GB, free: 5.852 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007114/0.6982, allocations: 5.024 MB / 0.5561 GB, free: 1.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.6982, allocations: 0 / 0.5561 GB, free: 1.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6982, allocations: 9.641 kB / 0.5561 GB, free: 1.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001919/0.6984, allocations: 0 / 0.5561 GB, free: 1.73 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01325/0.7117, allocations: 3.659 MB / 0.5597 GB, free: 14.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.829e-05/0.7118, allocations: 12.03 kB / 0.5597 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002085/0.7139, allocations: 0.6429 MB / 0.5604 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1761/0.89, allocations: 8.309 MB / 0.5685 GB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009088/0.8991, allocations: 2.575 MB / 0.571 GB, free: 4.129 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/0.8995, allocations: 199.2 kB / 0.5712 GB, free: 4.016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/0.901, allocations: 257.6 kB / 0.5714 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02289/0.9239, allocations: 8.714 MB / 0.5799 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001853/0.9242, allocations: 39.69 kB / 0.58 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009993/0.9252, allocations: 129.3 kB / 0.5801 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005736/0.9309, allocations: 1.835 MB / 0.5819 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02279/0.9538, allocations: 7.37 MB / 0.5891 GB, free: 4.652 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06584/1.02, allocations: 34.05 MB / 0.6223 GB, free: 1.777 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008961/1.029, allocations: 2.538 MB / 0.6248 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005777/1.029, allocations: 327.3 kB / 0.6251 GB, free: 14.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/1.029, allocations: 55.08 kB / 0.6252 GB, free: 14.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.548e-06/1.029, allocations: 0 / 0.6252 GB, free: 14.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.04086/1.07, allocations: 9.203 MB / 0.6342 GB, free: 5.316 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/1.07, allocations: 192.6 kB / 0.6344 GB, free: 5.086 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009716/1.08, allocations: 4.077 MB / 0.6383 GB, free: 1.027 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003104/1.081, allocations: 41.7 kB / 0.6384 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003432/1.084, allocations: 2.915 MB / 0.6412 GB, free: 14.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009792/1.085, allocations: 0.5373 MB / 0.6417 GB, free: 13.55 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000604/1.086, allocations: 116 kB / 0.6419 GB, free: 13.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005426/1.086, allocations: 0.5545 MB / 0.6424 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005099/1.091, allocations: 1.674 MB / 0.644 GB, free: 11.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009045/1.1, allocations: 5.465 MB / 0.6494 GB, free: 3.809 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00799/1.109, allocations: 2.982 MB / 0.6523 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.109, allocations: 40 kB / 0.6523 GB, free: 0.7852 MB / 458.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.02046/1.129, allocations: 6.943 MB / 0.6591 GB, free: 9.836 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/1.129, allocations: 64 kB / 0.6592 GB, free: 9.773 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002234/1.13, allocations: 136 kB / 0.6593 GB, free: 9.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/1.131, allocations: 436.3 kB / 0.6597 GB, free: 9.215 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008048/1.139, allocations: 1.329 MB / 0.661 GB, free: 7.883 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006333/1.146, allocations: 3.151 MB / 0.6641 GB, free: 4.602 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005976/1.152, allocations: 309.2 kB / 0.6644 GB, free: 4.301 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001147/1.153, allocations: 375.1 kB / 0.6647 GB, free: 3.938 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.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 (716): * Single equations (assignments): 712 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005277/1.158, allocations: 1.943 MB / 0.6666 GB, free: 1.98 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009182/1.159, allocations: 327.7 kB / 0.6669 GB, free: 1.656 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005318/1.165, allocations: 1.703 MB / 0.6686 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-05/1.165, allocations: 12 kB / 0.6686 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.165, allocations: 4 kB / 0.6686 GB, free: 15.92 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/1.165, allocations: 3.984 kB / 0.6686 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01791/1.183, allocations: 5.452 MB / 0.674 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/1.183, allocations: 4 kB / 0.674 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/1.185, allocations: 187.8 kB / 0.6741 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/1.186, allocations: 229.4 kB / 0.6744 GB, free: 10 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002323/1.186, allocations: 23.98 kB / 0.6744 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005034/1.191, allocations: 2.576 MB / 0.6769 GB, free: 7.273 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.191, allocations: 4 kB / 0.6769 GB, free: 7.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009634/1.201, allocations: 3.723 MB / 0.6805 GB, free: 3.469 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/1.203, allocations: 0.5473 MB / 0.6811 GB, free: 2.898 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006964/1.204, allocations: 21.64 kB / 0.6811 GB, free: 2.879 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/1.206, allocations: 55.94 kB / 0.6811 GB, free: 2.824 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/1.206, allocations: 72.41 kB / 0.6812 GB, free: 2.754 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/1.206, allocations: 39.11 kB / 0.6813 GB, free: 2.719 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0068/1.213, allocations: 2.559 MB / 0.6837 GB, free: 184 kB / 490.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.213, allocations: 4.062 kB / 0.6838 GB, free: 180 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.006788/1.22, allocations: 0.8749 MB / 0.6846 GB, free: 15.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01028/1.23, allocations: 4.813 MB / 0.6893 GB, free: 10.41 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0109/1.241, allocations: 4.062 MB / 0.6933 GB, free: 6.367 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/1.241, allocations: 0 / 0.6933 GB, free: 6.367 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002707/1.244, allocations: 1.02 MB / 0.6943 GB, free: 5.34 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/1.247, allocations: 356.5 kB / 0.6946 GB, free: 4.988 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4368/1.684, allocations: 123.7 MB / 0.8154 GB, free: 87.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006849/1.691, allocations: 3.039 MB / 0.8183 GB, free: 86.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003894/1.695, allocations: 1.692 MB / 0.82 GB, free: 85.19 MB / 0.5105 GB Notification: Performance of SimCode: time 1.222e-06/1.695, allocations: 0 / 0.82 GB, free: 85.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.307/6.002, allocations: 88.13 MB / 0.9061 GB, free: 5.008 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat