Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 97.25 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 173.2 kB / 16.58 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.4 MB / 222.8 MB, free: 5.871 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3809/0.3809, allocations: 43.55 MB / 314.6 MB, free: 8.84 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000539/0.0005391, allocations: 18.95 kB / 384 MB, free: 8.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1273, allocations: 58.85 MB / 442.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2864/0.4137, allocations: 30.68 MB / 473.5 MB, free: 33.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.4292, allocations: 7.27 MB / 480.8 MB, free: 28.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005834/0.4351, allocations: 137.4 kB / 480.9 MB, free: 28.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004488/0.4396, allocations: 1.548 MB / 482.5 MB, free: 27.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01315/0.4528, allocations: 4.826 MB / 487.3 MB, free: 25.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.4552, allocations: 491.8 kB / 487.8 MB, free: 25.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0259/0.4811, allocations: 18.04 MB / 0.494 GB, free: 21.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006025/0.4871, allocations: 2.665 MB / 0.4966 GB, free: 20.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.4899, allocations: 0.9963 MB / 0.4976 GB, free: 19.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003393/0.4933, allocations: 1.603 MB / 0.4991 GB, free: 19.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.4945, allocations: 111.1 kB / 0.4992 GB, free: 19.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003091/0.4976, allocations: 0.9028 MB / 0.5001 GB, free: 18.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002742/0.5004, allocations: 1.362 MB / 0.5014 GB, free: 18.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.5024, allocations: 0.6777 MB / 0.5021 GB, free: 17.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006522/0.509, allocations: 4.535 MB / 0.5065 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.509, allocations: 0 / 0.5065 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.509, allocations: 0 / 0.5065 GB, free: 14.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000261/0.5093, allocations: 0 / 0.5065 GB, free: 14.59 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.009583/0.5189, allocations: 3.343 MB / 0.5098 GB, free: 11.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.5189, allocations: 11.97 kB / 0.5098 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00169/0.5206, allocations: 0.5792 MB / 0.5104 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06325/0.5839, allocations: 7.158 MB / 0.5174 GB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006271/0.5902, allocations: 2.652 MB / 0.52 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.5904, allocations: 168.3 kB / 0.5201 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001234/0.5917, allocations: 227.8 kB / 0.5203 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.606, allocations: 7.828 MB / 0.528 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000171/0.6062, allocations: 35.75 kB / 0.528 GB, free: 8.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007063/0.6069, allocations: 111.9 kB / 0.5281 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002686/0.6096, allocations: 1.668 MB / 0.5297 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/0.6223, allocations: 6.614 MB / 0.5362 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04008/0.6625, allocations: 31.23 MB / 0.5667 GB, free: 15.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004546/0.6671, allocations: 2.282 MB / 0.5689 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.6686, allocations: 1.114 MB / 0.57 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004256/0.669, allocations: 327.8 kB / 0.5703 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/0.6691, allocations: 43.34 kB / 0.5704 GB, free: 11.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=117): time 7.775e-06/0.6691, allocations: 7.984 kB / 0.5704 GB, free: 11.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=141): time 0.03502/0.7042, allocations: 11.42 MB / 0.5815 GB, free: 292 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.7043, allocations: 196.6 kB / 0.5817 GB, free: 52 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006392/0.7107, allocations: 3.721 MB / 0.5854 GB, free: 12.34 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.7109, allocations: 41.7 kB / 0.5854 GB, free: 12.29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.7126, allocations: 2.698 MB / 0.588 GB, free: 9.551 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000486/0.7131, allocations: 0.5555 MB / 0.5886 GB, free: 8.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.7133, allocations: 104 kB / 0.5887 GB, free: 8.887 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002852/0.7136, allocations: 0.5332 MB / 0.5892 GB, free: 8.348 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002316/0.7159, allocations: 1.674 MB / 0.5908 GB, free: 6.668 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00423/0.7202, allocations: 5.122 MB / 0.5958 GB, free: 15.81 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003521/0.7237, allocations: 2.877 MB / 0.5986 GB, free: 12.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.352e-05/0.7238, allocations: 32 kB / 0.5987 GB, free: 12.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01001/0.7338, allocations: 6.759 MB / 0.6053 GB, free: 6.141 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.539e-05/0.7339, allocations: 56 kB / 0.6053 GB, free: 6.086 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/0.734, allocations: 124 kB / 0.6054 GB, free: 5.965 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000863/0.7349, allocations: 421.7 kB / 0.6058 GB, free: 5.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00348/0.7384, allocations: 1.232 MB / 0.607 GB, free: 4.316 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0034/0.7418, allocations: 3.096 MB / 0.6101 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/0.7453, allocations: 295.3 kB / 0.6104 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005186/0.7459, allocations: 333.9 kB / 0.6107 GB, free: 472 kB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (665): * Single equations (assignments): 661 * 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.002672/0.7485, allocations: 1.783 MB / 0.6124 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005837/0.7491, allocations: 311.9 kB / 0.6127 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/0.7523, allocations: 1.857 MB / 0.6145 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/0.7524, allocations: 19.98 kB / 0.6145 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.7524, allocations: 0 / 0.6145 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.7524, allocations: 7.984 kB / 0.6145 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.7637, allocations: 5.61 MB / 0.62 GB, free: 6.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.7638, allocations: 4 kB / 0.62 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.7648, allocations: 211.7 kB / 0.6202 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006537/0.7655, allocations: 229 kB / 0.6205 GB, free: 6.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.7656, allocations: 28 kB / 0.6205 GB, free: 6.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/0.7684, allocations: 2.53 MB / 0.6229 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7685, allocations: 0 / 0.6229 GB, free: 3.633 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2643/1.033, allocations: 3.875 MB / 0.6267 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.035, allocations: 0.539 MB / 0.6273 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003249/1.035, allocations: 26.78 kB / 0.6273 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/1.036, allocations: 68.8 kB / 0.6274 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/1.036, allocations: 71.36 kB / 0.6274 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-05/1.036, allocations: 41.52 kB / 0.6275 GB, free: 136 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003302/1.04, allocations: 2.335 MB / 0.6297 GB, free: 135.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/1.04, allocations: 3.312 kB / 0.6297 GB, free: 135.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004216/1.044, allocations: 0.8083 MB / 0.6305 GB, free: 135.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (112): * Single equations (assignments): 108 * 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.005085/1.049, allocations: 4.506 MB / 0.6349 GB, free: 135 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006461/1.055, allocations: 4.066 MB / 0.6389 GB, free: 134.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/1.055, allocations: 3 kB / 0.6389 GB, free: 134.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/1.057, allocations: 1.141 MB / 0.64 GB, free: 134 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/1.059, allocations: 357.1 kB / 0.6404 GB, free: 133.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04742/1.106, allocations: 28.32 MB / 0.668 GB, free: 115.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004219/1.111, allocations: 2.76 MB / 0.6707 GB, free: 114 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004717/1.115, allocations: 1.734 MB / 0.6724 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/1.118, allocations: 1.509 MB / 0.6739 GB, free: 112.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.282e-06/1.118, allocations: 0 / 0.6739 GB, free: 112.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09994/1.217, allocations: 63.6 MB / 0.736 GB, free: 64.66 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/1.218, allocations: 191.9 kB / 0.7362 GB, free: 64.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.629, allocations: 0 / 0.7362 GB, free: 64.43 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat