Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_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.001585/0.001585, allocations: 98.03 kB / 16.99 MB, free: 6.398 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.002587/0.002587, allocations: 178.6 kB / 17.88 MB, free: 5.957 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.377/1.377, allocations: 223.2 MB / 241.8 MB, free: 14.66 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.222/0.222, allocations: 44.23 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.0003412, allocations: 13.88 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1185, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0288/0.1474, allocations: 28.68 MB / 0.4885 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.1633, allocations: 7.482 MB / 0.4958 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00551/0.1688, allocations: 143.6 kB / 0.4959 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004417/0.1732, allocations: 1.388 MB / 0.4973 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.1878, allocations: 4.266 MB / 0.5015 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.1901, allocations: 471.2 kB / 0.5019 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2932/0.4833, allocations: 24.59 MB / 0.5259 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003736/0.4871, allocations: 2.617 MB / 0.5285 GB, free: 12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009873/0.4881, allocations: 0.7893 MB / 0.5293 GB, free: 12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.4893, allocations: 1.08 MB / 0.5303 GB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002642/0.4895, allocations: 107.2 kB / 0.5304 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.4908, allocations: 0.8933 MB / 0.5313 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008378/0.4917, allocations: 1.21 MB / 0.5325 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.4921, allocations: 0.6498 MB / 0.5331 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002887/0.495, allocations: 4.35 MB / 0.5373 GB, free: 7.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.495, allocations: 0 / 0.5373 GB, free: 7.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4951, allocations: 4 kB / 0.5374 GB, free: 7.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.391e-05/0.4952, allocations: 0 / 0.5374 GB, free: 7.398 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007474/0.5026, allocations: 3.281 MB / 0.5406 GB, free: 4.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.5027, allocations: 8.031 kB / 0.5406 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001403/0.5041, allocations: 0.5553 MB / 0.5411 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08152/0.5856, allocations: 8.217 MB / 0.5491 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006212/0.5919, allocations: 2.25 MB / 0.5513 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.5921, allocations: 161 kB / 0.5515 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007269/0.5928, allocations: 222.2 kB / 0.5517 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.605, allocations: 7.547 MB / 0.5591 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.6052, allocations: 41.62 kB / 0.5591 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003068/0.6055, allocations: 108.8 kB / 0.5592 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002626/0.6081, allocations: 1.609 MB / 0.5608 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/0.6205, allocations: 6.359 MB / 0.567 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.6578, allocations: 30.42 MB / 0.5967 GB, free: 1.352 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004343/0.6621, allocations: 2.194 MB / 0.5988 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003793/0.6626, allocations: 318.7 kB / 0.5991 GB, free: 14.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.6626, allocations: 44.95 kB / 0.5992 GB, free: 14.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.877e-06/0.6626, allocations: 0 / 0.5992 GB, free: 14.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03261/0.6952, allocations: 11.23 MB / 0.6101 GB, free: 3.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.6954, allocations: 199.6 kB / 0.6103 GB, free: 3.016 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004946/0.7003, allocations: 3.771 MB / 0.614 GB, free: 15.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.7005, allocations: 45.7 kB / 0.6141 GB, free: 15.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.7024, allocations: 2.607 MB / 0.6166 GB, free: 12.61 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005486/0.7029, allocations: 0.5193 MB / 0.6171 GB, free: 12.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.7031, allocations: 100 kB / 0.6172 GB, free: 11.99 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003253/0.7035, allocations: 0.525 MB / 0.6177 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.7058, allocations: 1.616 MB / 0.6193 GB, free: 9.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004421/0.7102, allocations: 4.956 MB / 0.6241 GB, free: 3.246 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003747/0.714, allocations: 2.787 MB / 0.6269 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.255e-05/0.714, allocations: 32 kB / 0.6269 GB, free: 0.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01094/0.725, allocations: 6.549 MB / 0.6333 GB, free: 10.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.368e-05/0.7251, allocations: 56 kB / 0.6333 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/0.7253, allocations: 116 kB / 0.6335 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009745/0.7263, allocations: 422.9 kB / 0.6339 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003663/0.7299, allocations: 1.189 MB / 0.635 GB, free: 8.43 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003765/0.7337, allocations: 3.132 MB / 0.6381 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/0.7381, allocations: 279.4 kB / 0.6383 GB, free: 4.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008678/0.739, allocations: 334.9 kB / 0.6387 GB, free: 4.57 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (643): * Single equations (assignments): 639 * 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.003092/0.7421, allocations: 1.731 MB / 0.6403 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007255/0.7429, allocations: 300.1 kB / 0.6406 GB, free: 2.531 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/0.7459, allocations: 1.722 MB / 0.6423 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-05/0.7459, allocations: 16 kB / 0.6423 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.746, allocations: 4 kB / 0.6423 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.746, allocations: 11.97 kB / 0.6423 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009795/0.7558, allocations: 5.36 MB / 0.6476 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/0.7558, allocations: 12.06 kB / 0.6476 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009504/0.7568, allocations: 191.7 kB / 0.6478 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006632/0.7575, allocations: 236.6 kB / 0.648 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.538e-05/0.7576, allocations: 16 kB / 0.648 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002814/0.7604, allocations: 2.578 MB / 0.6505 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.7604, allocations: 0 / 0.6505 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005326/0.7657, allocations: 3.817 MB / 0.6543 GB, free: 4.316 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/0.7669, allocations: 376.8 kB / 0.6546 GB, free: 3.926 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003346/0.7673, allocations: 24 kB / 0.6546 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.7684, allocations: 63.91 kB / 0.6547 GB, free: 3.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.7686, allocations: 72.52 kB / 0.6548 GB, free: 3.766 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.633e-05/0.7687, allocations: 36.06 kB / 0.6548 GB, free: 3.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003878/0.7726, allocations: 2.383 MB / 0.6571 GB, free: 1.359 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.574e-06/0.7726, allocations: 0 / 0.6571 GB, free: 1.359 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005081/0.7777, allocations: 0.8079 MB / 0.6579 GB, free: 0.5547 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 (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.006081/0.7838, allocations: 4.741 MB / 0.6626 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00705/0.7909, allocations: 3.919 MB / 0.6664 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/0.7909, allocations: 128 / 0.6664 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.7925, allocations: 1.064 MB / 0.6674 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.7947, allocations: 346.6 kB / 0.6678 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3302/1.125, allocations: 109.1 MB / 0.7743 GB, free: 125.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003031/1.128, allocations: 2.751 MB / 0.777 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004156/1.132, allocations: 1.687 MB / 0.7786 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/1.134, allocations: 1.441 MB / 0.78 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.62e-07/1.134, allocations: 0 / 0.78 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08929/1.223, allocations: 62.46 MB / 0.841 GB, free: 67.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/1.224, allocations: 195.3 kB / 0.8412 GB, free: 67.55 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.543/4.767, allocations: 0 / 0.8412 GB, free: 67.55 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat does not exist to compare? outputFormat=mat