Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_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.001031/0.00103, allocations: 100.2 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2111/0.2111, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 4 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1393, allocations: 63.46 MB / 481.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03438/0.1737, allocations: 34.92 MB / 0.5043 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3014/0.4752, allocations: 8.725 MB / 0.5129 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008709/0.4839, allocations: 169.6 kB / 0.513 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006329/0.4903, allocations: 1.722 MB / 0.5147 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02044/0.5108, allocations: 5.12 MB / 0.5197 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003647/0.5144, allocations: 497.3 kB / 0.5202 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03462/0.5491, allocations: 24.7 MB / 0.5443 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004256/0.5534, allocations: 2.935 MB / 0.5472 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001687/0.5551, allocations: 0.8267 MB / 0.548 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.5566, allocations: 1.125 MB / 0.5491 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003641/0.557, allocations: 112 kB / 0.5492 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.5589, allocations: 0.8816 MB / 0.55 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00165/0.5606, allocations: 1.311 MB / 0.5513 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.5616, allocations: 0.6861 MB / 0.552 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005572/0.5672, allocations: 4.666 MB / 0.5565 GB, free: 7.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5672, allocations: 0 / 0.5565 GB, free: 7.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5672, allocations: 0 / 0.5565 GB, free: 7.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000145/0.5674, allocations: 0 / 0.5565 GB, free: 7.758 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.008495/0.5759, allocations: 3.487 MB / 0.5599 GB, free: 4.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5759, allocations: 8.031 kB / 0.56 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001192/0.5771, allocations: 0.5996 MB / 0.5605 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0807/0.6578, allocations: 8.274 MB / 0.5686 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006684/0.6646, allocations: 2.334 MB / 0.5709 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.6648, allocations: 178.2 kB / 0.5711 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/0.6659, allocations: 245.8 kB / 0.5713 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01452/0.6804, allocations: 8.121 MB / 0.5792 GB, free: 1.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/0.6806, allocations: 35.66 kB / 0.5793 GB, free: 1.352 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/0.6809, allocations: 123.5 kB / 0.5794 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002826/0.6838, allocations: 1.706 MB / 0.5811 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/0.6968, allocations: 6.802 MB / 0.5877 GB, free: 8.758 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0444/0.7413, allocations: 32.25 MB / 0.6192 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004677/0.746, allocations: 2.427 MB / 0.6216 GB, free: 5.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/0.7464, allocations: 330.7 kB / 0.6219 GB, free: 4.734 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.7465, allocations: 39.98 kB / 0.6219 GB, free: 4.688 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.907e-06/0.7465, allocations: 0 / 0.6219 GB, free: 4.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02149/0.768, allocations: 8.72 MB / 0.6304 GB, free: 11.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.7681, allocations: 192.5 kB / 0.6306 GB, free: 11.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005572/0.7737, allocations: 3.931 MB / 0.6344 GB, free: 7.668 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002801/0.774, allocations: 41.7 kB / 0.6345 GB, free: 7.621 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002136/0.7762, allocations: 2.803 MB / 0.6372 GB, free: 4.836 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006469/0.7768, allocations: 496.7 kB / 0.6377 GB, free: 4.355 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/0.777, allocations: 105.2 kB / 0.6378 GB, free: 4.254 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003534/0.7774, allocations: 0.5373 MB / 0.6383 GB, free: 3.711 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002359/0.7797, allocations: 1.576 MB / 0.6399 GB, free: 2.129 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005306/0.7851, allocations: 5.165 MB / 0.6449 GB, free: 11.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004522/0.7896, allocations: 2.816 MB / 0.6477 GB, free: 8.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.074e-05/0.7897, allocations: 40 kB / 0.6477 GB, free: 8.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01457/0.8043, allocations: 6.65 MB / 0.6542 GB, free: 1.617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.577e-05/0.8044, allocations: 62.81 kB / 0.6543 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/0.8046, allocations: 133.4 kB / 0.6544 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009073/0.8055, allocations: 424.5 kB / 0.6548 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003767/0.8093, allocations: 1.249 MB / 0.656 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/0.8129, allocations: 3.15 MB / 0.6591 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004168/0.8171, allocations: 295.4 kB / 0.6594 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006446/0.8177, allocations: 348 kB / 0.6597 GB, free: 11.86 MB / 0.4981 GB 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.003097/0.8208, allocations: 1.844 MB / 0.6615 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006033/0.8214, allocations: 308 kB / 0.6618 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002536/0.824, allocations: 1.461 MB / 0.6632 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.804e-05/0.824, allocations: 16 kB / 0.6632 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.8241, allocations: 11.95 kB / 0.6632 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.8241, allocations: 7.922 kB / 0.6632 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009147/0.8332, allocations: 4.998 MB / 0.6681 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.8333, allocations: 0 / 0.6681 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007712/0.834, allocations: 159.8 kB / 0.6683 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006211/0.8347, allocations: 224.7 kB / 0.6685 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.493e-05/0.8348, allocations: 20 kB / 0.6685 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/0.8378, allocations: 2.572 MB / 0.671 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.8378, allocations: 4.125 kB / 0.671 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004688/0.8425, allocations: 3.376 MB / 0.6743 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.8436, allocations: 384.8 kB / 0.6747 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/0.8439, allocations: 16 kB / 0.6747 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009839/0.8449, allocations: 54.67 kB / 0.6748 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.8451, allocations: 56.42 kB / 0.6748 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.111e-05/0.8452, allocations: 32 kB / 0.6748 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004174/0.8493, allocations: 2.465 MB / 0.6773 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8.81e-07/0.8494, allocations: 4.062 kB / 0.6773 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005116/0.8545, allocations: 0.8086 MB / 0.678 GB, free: 8.824 MB / 0.5137 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.005304/0.8598, allocations: 4.226 MB / 0.6822 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007938/0.8678, allocations: 3.815 MB / 0.6859 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.611e-05/0.8679, allocations: 4.312 kB / 0.6859 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001705/0.8696, allocations: 0.9503 MB / 0.6868 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/0.872, allocations: 362.7 kB / 0.6872 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3142/1.186, allocations: 116.4 MB / 0.8008 GB, free: 118.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003939/1.19, allocations: 2.883 MB / 0.8036 GB, free: 117.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004316/1.194, allocations: 1.715 MB / 0.8053 GB, free: 117 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/1.196, allocations: 1.523 MB / 0.8068 GB, free: 115.7 MB / 0.545 GB Notification: Performance of SimCode: time 8.11e-07/1.196, allocations: 0 / 0.8068 GB, free: 115.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08527/1.282, allocations: 63.61 MB / 0.8689 GB, free: 60.01 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/1.282, allocations: 204.2 kB / 0.8691 GB, free: 59.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.815/5.097, allocations: 0 / 0.8691 GB, free: 59.76 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat