Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_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.001097/0.001097, allocations: 93.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 188.5 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2075/0.2075, allocations: 44.23 MB / 337.1 MB, free: 2.633 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003151, allocations: 8 kB / 409.6 MB, free: 27.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.151, allocations: 61.91 MB / 471.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03103/0.1821, allocations: 34.9 MB / 0.4946 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01982/0.2019, allocations: 8.706 MB / 0.5031 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008548/0.2105, allocations: 167.6 kB / 0.5032 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2976/0.5082, allocations: 1.722 MB / 0.5049 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01993/0.5282, allocations: 5.132 MB / 0.5099 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003098/0.5313, allocations: 492.5 kB / 0.5104 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03504/0.5663, allocations: 24.67 MB / 0.5345 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00387/0.5703, allocations: 2.94 MB / 0.5374 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.5717, allocations: 0.8211 MB / 0.5382 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.573, allocations: 1.131 MB / 0.5393 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003006/0.5733, allocations: 112 kB / 0.5394 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.5748, allocations: 0.8971 MB / 0.5402 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009809/0.5758, allocations: 1.313 MB / 0.5415 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000648/0.5764, allocations: 0.6875 MB / 0.5422 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004228/0.5807, allocations: 4.672 MB / 0.5468 GB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.5807, allocations: 0 / 0.5468 GB, free: 14.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.5807, allocations: 0 / 0.5468 GB, free: 14.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001351/0.5809, allocations: 0 / 0.5468 GB, free: 14.76 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.009449/0.5903, allocations: 3.477 MB / 0.5502 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.426e-05/0.5904, allocations: 12.03 kB / 0.5502 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002431/0.5928, allocations: 0.598 MB / 0.5507 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08279/0.6757, allocations: 8.27 MB / 0.5588 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007061/0.6828, allocations: 2.331 MB / 0.5611 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.683, allocations: 185.8 kB / 0.5613 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008964/0.6839, allocations: 244.1 kB / 0.5615 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01466/0.6985, allocations: 8.112 MB / 0.5694 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.6987, allocations: 42.94 kB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003833/0.6991, allocations: 120.6 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00284/0.7019, allocations: 1.706 MB / 0.5713 GB, free: 9.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.7162, allocations: 6.8 MB / 0.5779 GB, free: 4.613 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04375/0.76, allocations: 32.24 MB / 0.6094 GB, free: 4.152 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/0.7649, allocations: 2.426 MB / 0.6118 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004188/0.7653, allocations: 325.5 kB / 0.6121 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.824e-05/0.7654, allocations: 45.8 kB / 0.6121 GB, free: 1.176 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 4.378e-06/0.7654, allocations: 0 / 0.6121 GB, free: 1.176 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02088/0.7863, allocations: 8.732 MB / 0.6206 GB, free: 8.312 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.7864, allocations: 199.7 kB / 0.6208 GB, free: 8.078 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00534/0.7918, allocations: 3.923 MB / 0.6247 GB, free: 4.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/0.792, allocations: 41.7 kB / 0.6247 GB, free: 4.121 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002052/0.7941, allocations: 2.797 MB / 0.6274 GB, free: 1.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005465/0.7946, allocations: 496.7 kB / 0.6279 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.7948, allocations: 112 kB / 0.628 GB, free: 0.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003356/0.7952, allocations: 0.5334 MB / 0.6285 GB, free: 216 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.7975, allocations: 1.576 MB / 0.6301 GB, free: 14.63 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004747/0.8023, allocations: 5.167 MB / 0.6351 GB, free: 7.699 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.806, allocations: 2.819 MB / 0.6379 GB, free: 4.914 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.207e-05/0.8061, allocations: 36 kB / 0.6379 GB, free: 4.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01038/0.8164, allocations: 6.651 MB / 0.6444 GB, free: 14.22 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.007e-05/0.8166, allocations: 61.88 kB / 0.6445 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.8167, allocations: 128 kB / 0.6446 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009503/0.8176, allocations: 434.8 kB / 0.645 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003514/0.8212, allocations: 1.236 MB / 0.6462 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.8249, allocations: 3.151 MB / 0.6493 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004043/0.829, allocations: 295.5 kB / 0.6496 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007143/0.8297, allocations: 344 kB / 0.6499 GB, free: 8.473 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (672): * Single equations (assignments): 668 * 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.003495/0.8332, allocations: 1.845 MB / 0.6517 GB, free: 6.617 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007591/0.834, allocations: 315.9 kB / 0.652 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00263/0.8366, allocations: 1.459 MB / 0.6534 GB, free: 4.836 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.192e-05/0.8367, allocations: 16 kB / 0.6534 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.8367, allocations: 0 / 0.6534 GB, free: 4.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.8367, allocations: 12.64 kB / 0.6534 GB, free: 4.809 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008876/0.8456, allocations: 5.002 MB / 0.6583 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.8456, allocations: 4 kB / 0.6583 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007308/0.8464, allocations: 159.8 kB / 0.6585 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006362/0.847, allocations: 228.5 kB / 0.6587 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.06e-05/0.8471, allocations: 23.98 kB / 0.6587 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002834/0.8499, allocations: 2.566 MB / 0.6612 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.8499, allocations: 0 / 0.6612 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.8544, allocations: 3.365 MB / 0.6645 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.8556, allocations: 384.8 kB / 0.6649 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003804/0.856, allocations: 20 kB / 0.6649 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009708/0.8569, allocations: 51.94 kB / 0.6649 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.8571, allocations: 58.11 kB / 0.665 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.161e-05/0.8572, allocations: 35.98 kB / 0.665 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004197/0.8614, allocations: 2.453 MB / 0.6674 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8614, allocations: 0 / 0.6674 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005198/0.8666, allocations: 0.8314 MB / 0.6682 GB, free: 5.43 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.00556/0.8722, allocations: 4.226 MB / 0.6724 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00707/0.8793, allocations: 3.827 MB / 0.6761 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/0.8794, allocations: 0 / 0.6761 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.8809, allocations: 0.9554 MB / 0.677 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/0.8833, allocations: 358.8 kB / 0.6774 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3184/1.202, allocations: 116.4 MB / 0.791 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004349/1.206, allocations: 2.882 MB / 0.7939 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004658/1.211, allocations: 1.716 MB / 0.7955 GB, free: 106 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002418/1.213, allocations: 1.525 MB / 0.797 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.322e-06/1.213, allocations: 0 / 0.797 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08962/1.303, allocations: 63.74 MB / 0.8593 GB, free: 47.67 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/1.303, allocations: 188.7 kB / 0.8594 GB, free: 47.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.799/5.103, allocations: 64 / 0.8594 GB, free: 47.43 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat