Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.0008195/0.0008196, allocations: 88.19 kB / 15.7 MB, free: 460 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.001052/0.001053, allocations: 168.8 kB / 16.58 MB, free: 6.84 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.479/1.479, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.3618/0.3618, allocations: 43.56 MB / 314.6 MB, free: 8.762 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.0005026/0.0005027, allocations: 20 kB / 384 MB, free: 7.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1264, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2564/0.3828, allocations: 37.59 MB / 480.5 MB, free: 28.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01899/0.4018, allocations: 8.464 MB / 488.9 MB, free: 22.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007364/0.4093, allocations: 173.2 kB / 489.1 MB, free: 22.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005481/0.4148, allocations: 1.936 MB / 491 MB, free: 21.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01501/0.4298, allocations: 5.876 MB / 496.9 MB, free: 19.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002155/0.432, allocations: 0.4937 MB / 497.4 MB, free: 19.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02417/0.4562, allocations: 18.36 MB / 0.5037 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004728/0.4609, allocations: 3.034 MB / 0.5066 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001635/0.4626, allocations: 1.081 MB / 0.5077 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.4644, allocations: 1.753 MB / 0.5094 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003274/0.4648, allocations: 129.9 kB / 0.5095 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.4664, allocations: 0.9116 MB / 0.5104 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009741/0.4673, allocations: 1.512 MB / 0.5119 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004984/0.4678, allocations: 0.7415 MB / 0.5126 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003275/0.4711, allocations: 5.033 MB / 0.5175 GB, free: 3.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4712, allocations: 0 / 0.5175 GB, free: 3.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4712, allocations: 0 / 0.5175 GB, free: 3.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.4713, allocations: 0 / 0.5175 GB, free: 3.688 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.006192/0.4775, allocations: 3.622 MB / 0.5211 GB, free: 4 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.622e-05/0.4776, allocations: 12.08 kB / 0.5211 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008569/0.4784, allocations: 0.6376 MB / 0.5217 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06818/0.5466, allocations: 7.239 MB / 0.5288 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005466/0.5521, allocations: 2.765 MB / 0.5315 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001421/0.5523, allocations: 204.9 kB / 0.5317 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005145/0.5528, allocations: 255.8 kB / 0.5319 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.5637, allocations: 8.69 MB / 0.5404 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.694e-05/0.5638, allocations: 47.58 kB / 0.5405 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/0.5641, allocations: 123.9 kB / 0.5406 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002629/0.5668, allocations: 1.836 MB / 0.5424 GB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0117/0.5785, allocations: 7.316 MB / 0.5495 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03524/0.6138, allocations: 34 MB / 0.5827 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004317/0.6181, allocations: 2.523 MB / 0.5852 GB, free: 12.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.6194, allocations: 1.125 MB / 0.5863 GB, free: 11.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/0.6197, allocations: 331.6 kB / 0.5866 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.6198, allocations: 43.12 kB / 0.5866 GB, free: 10.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 3.296e-06/0.6198, allocations: 4.328 kB / 0.5866 GB, free: 10.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.01872/0.6385, allocations: 8.925 MB / 0.5954 GB, free: 1.867 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.6386, allocations: 192.6 kB / 0.5955 GB, free: 1.637 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004369/0.643, allocations: 3.95 MB / 0.5994 GB, free: 13.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.6431, allocations: 45.7 kB / 0.5994 GB, free: 13.65 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001687/0.6448, allocations: 2.976 MB / 0.6023 GB, free: 10.63 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004278/0.6452, allocations: 0.5403 MB / 0.6029 GB, free: 10.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.6454, allocations: 116 kB / 0.603 GB, free: 9.973 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002755/0.6457, allocations: 0.5498 MB / 0.6035 GB, free: 9.414 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/0.648, allocations: 1.67 MB / 0.6051 GB, free: 7.738 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00424/0.6523, allocations: 5.49 MB / 0.6105 GB, free: 332 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003955/0.6563, allocations: 2.982 MB / 0.6134 GB, free: 13.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.963e-05/0.6563, allocations: 36 kB / 0.6135 GB, free: 13.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01059/0.6669, allocations: 7.045 MB / 0.6203 GB, free: 6.258 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.667, allocations: 68.06 kB / 0.6204 GB, free: 6.191 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.6672, allocations: 136 kB / 0.6205 GB, free: 6.059 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008187/0.668, allocations: 432.6 kB / 0.6209 GB, free: 5.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/0.6713, allocations: 1.333 MB / 0.6222 GB, free: 4.297 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/0.6745, allocations: 3.108 MB / 0.6253 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/0.6777, allocations: 311.8 kB / 0.6256 GB, free: 0.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004352/0.6781, allocations: 368 kB / 0.6259 GB, free: 400 kB / 494.1 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.2032/0.8813, allocations: 1.933 MB / 0.6278 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005186/0.8818, allocations: 325 kB / 0.6281 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00255/0.8844, allocations: 1.7 MB / 0.6298 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.8844, allocations: 18.09 kB / 0.6298 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.8845, allocations: 3.125 kB / 0.6298 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.8845, allocations: 12.25 kB / 0.6298 GB, free: 134.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007508/0.892, allocations: 5.42 MB / 0.6351 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.892, allocations: 5.344 kB / 0.6351 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007772/0.8928, allocations: 192 kB / 0.6353 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.8933, allocations: 226.2 kB / 0.6355 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.614e-05/0.8934, allocations: 24.75 kB / 0.6355 GB, free: 133.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.8956, allocations: 2.515 MB / 0.638 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.8956, allocations: 3.75 kB / 0.638 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003919/0.8995, allocations: 3.518 MB / 0.6414 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009615/0.9005, allocations: 0.5408 MB / 0.642 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002737/0.9008, allocations: 21.81 kB / 0.642 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009253/0.9017, allocations: 57.45 kB / 0.642 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.9019, allocations: 78.17 kB / 0.6421 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-05/0.902, allocations: 37.06 kB / 0.6421 GB, free: 130.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00303/0.905, allocations: 2.467 MB / 0.6446 GB, free: 129.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.905, allocations: 3.156 kB / 0.6446 GB, free: 129.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003524/0.9085, allocations: 0.848 MB / 0.6454 GB, free: 129.5 MB / 494.1 MB 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.00395/0.9125, allocations: 4.159 MB / 0.6494 GB, free: 127.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00552/0.918, allocations: 4.064 MB / 0.6534 GB, free: 126 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.9181, allocations: 1.094 kB / 0.6534 GB, free: 126 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.9193, allocations: 1.014 MB / 0.6544 GB, free: 125.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.9212, allocations: 372.1 kB / 0.6548 GB, free: 125.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04547/0.9667, allocations: 29.88 MB / 0.6839 GB, free: 105 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00282/0.9695, allocations: 2.952 MB / 0.6868 GB, free: 103.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004276/0.9738, allocations: 1.803 MB / 0.6886 GB, free: 103.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001725/0.9756, allocations: 1.649 MB / 0.6902 GB, free: 102.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9756, allocations: 0 / 0.6902 GB, free: 102.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08399/1.06, allocations: 66.42 MB / 0.7551 GB, free: 42.16 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/1.06, allocations: 212.2 kB / 0.7553 GB, free: 41.91 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.482/4.542, allocations: 0 / 0.7553 GB, free: 41.91 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat