Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2179/0.2179, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002336/0.002336, allocations: 79.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2964, allocations: 62.46 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01066/0.3071, allocations: 9.046 MB / 0.5394 GB, free: 6.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007611/0.3147, allocations: 3.563 MB / 0.5429 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.316, allocations: 54.06 kB / 0.543 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003614/0.3197, allocations: 1.901 MB / 0.5448 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.3238, allocations: 1.582 MB / 0.5464 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001366/0.3251, allocations: 0.5699 MB / 0.5469 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005382/0.3305, allocations: 3.657 MB / 0.5505 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002941/0.3335, allocations: 2.423 MB / 0.5529 GB, free: 10.83 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001771/0.3353, allocations: 1.16 MB / 0.554 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/0.3377, allocations: 1.639 MB / 0.5556 GB, free: 8.023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000593/0.3383, allocations: 240 kB / 0.5558 GB, free: 7.789 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002131/0.3404, allocations: 1.108 MB / 0.5569 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.342, allocations: 1.5 MB / 0.5584 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002084/0.3441, allocations: 1.782 MB / 0.5601 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006896/0.351, allocations: 5.875 MB / 0.5659 GB, free: 13.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.351, allocations: 0 / 0.5659 GB, free: 13.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.351, allocations: 4 kB / 0.5659 GB, free: 13.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001137/0.3512, allocations: 7.938 kB / 0.5659 GB, free: 13.47 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.009418/0.3606, allocations: 4.058 MB / 0.5698 GB, free: 9.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3607, allocations: 8.031 kB / 0.5698 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009083/0.3616, allocations: 0.5753 MB / 0.5704 GB, free: 8.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09195/0.4535, allocations: 6.97 MB / 0.5772 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005529/0.4591, allocations: 2.468 MB / 0.5796 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.4593, allocations: 180.8 kB / 0.5798 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005906/0.4599, allocations: 239.8 kB / 0.58 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/0.4719, allocations: 7.724 MB / 0.5876 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.453e-05/0.4721, allocations: 39.64 kB / 0.5876 GB, free: 6.418 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003528/0.4724, allocations: 119.9 kB / 0.5877 GB, free: 6.301 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002656/0.4751, allocations: 1.574 MB / 0.5892 GB, free: 4.727 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.4871, allocations: 6.465 MB / 0.5956 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03682/0.5239, allocations: 31.35 MB / 0.6262 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004828/0.5288, allocations: 2.411 MB / 0.6285 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.5303, allocations: 1.07 MB / 0.6296 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003667/0.5307, allocations: 323.2 kB / 0.6299 GB, free: 9.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.5307, allocations: 50.55 kB / 0.6299 GB, free: 9.852 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.939e-06/0.5307, allocations: 0 / 0.6299 GB, free: 9.852 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02102/0.5517, allocations: 8.544 MB / 0.6383 GB, free: 1.215 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.5519, allocations: 200.4 kB / 0.6385 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004959/0.5569, allocations: 3.769 MB / 0.6422 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.557, allocations: 41.89 kB / 0.6422 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002086/0.5591, allocations: 2.826 MB / 0.645 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004901/0.5596, allocations: 0.5119 MB / 0.6455 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.561, allocations: 1.095 MB / 0.6465 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5611, allocations: 305.1 kB / 0.6468 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/0.5636, allocations: 1.584 MB / 0.6484 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005393/0.569, allocations: 5.145 MB / 0.6534 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008428/0.5775, allocations: 7.317 MB / 0.6605 GB, free: 6.762 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.655e-05/0.5776, allocations: 39.94 kB / 0.6606 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01091/0.5885, allocations: 6.643 MB / 0.6671 GB, free: 72 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.5886, allocations: 60 kB / 0.6671 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001867/0.5888, allocations: 128 kB / 0.6672 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009981/0.5898, allocations: 404.9 kB / 0.6676 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003682/0.5935, allocations: 1.228 MB / 0.6688 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004004/0.5976, allocations: 3.329 MB / 0.6721 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/0.601, allocations: 287.7 kB / 0.6723 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006696/0.6017, allocations: 348 kB / 0.6727 GB, free: 10.17 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (663): * Single equations (assignments): 659 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00283/0.6046, allocations: 1.767 MB / 0.6744 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005728/0.6051, allocations: 325.8 kB / 0.6747 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.608, allocations: 1.466 MB / 0.6761 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.392e-05/0.6081, allocations: 16 kB / 0.6762 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.6081, allocations: 3.938 kB / 0.6762 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.6081, allocations: 7.984 kB / 0.6762 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009272/0.6174, allocations: 4.838 MB / 0.6809 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.6174, allocations: 0 / 0.6809 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.6182, allocations: 155.8 kB / 0.681 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007038/0.619, allocations: 232.5 kB / 0.6813 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.6191, allocations: 20 kB / 0.6813 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003294/0.6224, allocations: 2.708 MB / 0.6839 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6224, allocations: 0 / 0.6839 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004917/0.6273, allocations: 3.298 MB / 0.6872 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008264/0.6282, allocations: 374.8 kB / 0.6875 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003868/0.6286, allocations: 24.06 kB / 0.6875 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.6296, allocations: 47.94 kB / 0.6876 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.6298, allocations: 64.42 kB / 0.6876 GB, free: 10.56 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/0.6299, allocations: 35.98 kB / 0.6877 GB, free: 10.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003896/0.6338, allocations: 2.339 MB / 0.69 GB, free: 8.203 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.51e-07/0.6339, allocations: 0 / 0.69 GB, free: 8.203 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004131/0.638, allocations: 0.7656 MB / 0.6907 GB, free: 7.438 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00533/0.6434, allocations: 3.921 MB / 0.6945 GB, free: 3.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006402/0.6498, allocations: 3.819 MB / 0.6983 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.6498, allocations: 192 / 0.6983 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6513, allocations: 0.9571 MB / 0.6992 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/0.6535, allocations: 376.2 kB / 0.6996 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2837/0.9372, allocations: 37.2 MB / 0.7359 GB, free: 171 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/0.9402, allocations: 2.719 MB / 0.7385 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003354/0.9436, allocations: 1.706 MB / 0.7402 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0017/0.9453, allocations: 1.457 MB / 0.7416 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.62e-07/0.9453, allocations: 0 / 0.7416 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08547/1.031, allocations: 54.13 MB / 0.7945 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.07/25.1, allocations: 19.55 kB / 0.7945 GB, free: 118.8 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)