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.001122/0.001122, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2208/0.2208, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 79.53 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09473, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009235/0.104, allocations: 9.039 MB / 489.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005724/0.1097, allocations: 3.566 MB / 492.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007075/0.1105, allocations: 51.88 kB / 492.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.1136, allocations: 1.904 MB / 494.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.1166, allocations: 1.584 MB / 496.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1176, allocations: 0.5575 MB / 496.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003822/0.1215, allocations: 3.658 MB / 0.4888 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.124, allocations: 2.433 MB / 0.4911 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001444/0.1255, allocations: 1.156 MB / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.1272, allocations: 1.635 MB / 0.4939 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004182/0.1277, allocations: 240 kB / 0.4941 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.1294, allocations: 1.112 MB / 0.4952 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.1306, allocations: 1.5 MB / 0.4966 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001497/0.1321, allocations: 1.782 MB / 0.4984 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005153/0.1372, allocations: 5.643 MB / 0.5039 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.1373, allocations: 0 / 0.5039 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1373, allocations: 3.938 kB / 0.5039 GB, free: 1.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.576e-05/0.1374, allocations: 0 / 0.5039 GB, free: 1.156 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.1791/0.3165, allocations: 3.957 MB / 0.5078 GB, free: 39.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3166, allocations: 10.45 kB / 0.5078 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001322/0.3179, allocations: 0.5766 MB / 0.5083 GB, free: 38.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08633/0.4042, allocations: 6.945 MB / 0.5151 GB, free: 38.26 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005502/0.4098, allocations: 2.423 MB / 0.5175 GB, free: 36.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.41, allocations: 179.8 kB / 0.5177 GB, free: 36.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009148/0.4109, allocations: 239.4 kB / 0.5179 GB, free: 36.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.4228, allocations: 7.716 MB / 0.5254 GB, free: 31.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.423, allocations: 43.31 kB / 0.5255 GB, free: 31.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006534/0.4236, allocations: 123.1 kB / 0.5256 GB, free: 31.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002304/0.426, allocations: 1.589 MB / 0.5271 GB, free: 30.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009365/0.4353, allocations: 6.46 MB / 0.5334 GB, free: 24.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02735/0.4627, allocations: 31.42 MB / 0.5641 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004563/0.4673, allocations: 2.414 MB / 0.5665 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.4687, allocations: 1.068 MB / 0.5675 GB, free: 4.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003368/0.469, allocations: 319.1 kB / 0.5678 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.4691, allocations: 46.61 kB / 0.5679 GB, free: 3.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 3.487e-06/0.4691, allocations: 7.875 kB / 0.5679 GB, free: 3.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02217/0.4913, allocations: 8.359 MB / 0.576 GB, free: 11.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.4914, allocations: 196.4 kB / 0.5762 GB, free: 11.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005219/0.4966, allocations: 3.764 MB / 0.5799 GB, free: 7.344 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.4968, allocations: 41.7 kB / 0.5799 GB, free: 7.297 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001859/0.4987, allocations: 2.716 MB / 0.5826 GB, free: 4.539 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005487/0.4992, allocations: 498 kB / 0.5831 GB, free: 4.047 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00141/0.5007, allocations: 1.087 MB / 0.5841 GB, free: 2.949 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.5008, allocations: 305.1 kB / 0.5844 GB, free: 2.648 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002295/0.5031, allocations: 1.576 MB / 0.586 GB, free: 1.066 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004711/0.5078, allocations: 5.148 MB / 0.591 GB, free: 10.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007654/0.5155, allocations: 7.322 MB / 0.5981 GB, free: 1.023 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.604e-05/0.5156, allocations: 40 kB / 0.5982 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01092/0.5265, allocations: 6.627 MB / 0.6047 GB, free: 10.34 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-05/0.5266, allocations: 56 kB / 0.6047 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/0.5268, allocations: 128 kB / 0.6048 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009161/0.5277, allocations: 408.8 kB / 0.6052 GB, free: 9.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003385/0.5311, allocations: 1.22 MB / 0.6064 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.5347, allocations: 3.342 MB / 0.6097 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/0.538, allocations: 279.5 kB / 0.6099 GB, free: 4.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005632/0.5385, allocations: 344 kB / 0.6103 GB, free: 4.449 MB / 446.1 MB 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.002665/0.5412, allocations: 1.771 MB / 0.612 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006409/0.5419, allocations: 311.9 kB / 0.6123 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/0.5447, allocations: 1.474 MB / 0.6137 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/0.5447, allocations: 15.98 kB / 0.6138 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.5447, allocations: 4 kB / 0.6138 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.5447, allocations: 3.984 kB / 0.6138 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008724/0.5535, allocations: 4.859 MB / 0.6185 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.5535, allocations: 0 / 0.6185 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007821/0.5543, allocations: 163.8 kB / 0.6187 GB, free: 11.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006526/0.555, allocations: 224.6 kB / 0.6189 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.938e-05/0.555, allocations: 20 kB / 0.6189 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.5581, allocations: 2.703 MB / 0.6215 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/0.5581, allocations: 4.031 kB / 0.6215 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004888/0.563, allocations: 3.276 MB / 0.6247 GB, free: 5.363 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008647/0.5639, allocations: 361 kB / 0.6251 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005818/0.5645, allocations: 20 kB / 0.6251 GB, free: 4.969 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.5658, allocations: 48.22 kB / 0.6251 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.566, allocations: 68.53 kB / 0.6252 GB, free: 4.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.566, allocations: 32 kB / 0.6252 GB, free: 4.824 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003817/0.5699, allocations: 2.342 MB / 0.6275 GB, free: 2.496 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5699, allocations: 0 / 0.6275 GB, free: 2.496 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003886/0.5738, allocations: 0.772 MB / 0.6283 GB, free: 1.727 MB / 462.1 MB 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.005132/0.5789, allocations: 3.892 MB / 0.6321 GB, free: 13.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006813/0.5857, allocations: 4.118 MB / 0.6361 GB, free: 9.707 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.5858, allocations: 0 / 0.6361 GB, free: 9.707 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.5872, allocations: 0.9494 MB / 0.637 GB, free: 8.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002265/0.5895, allocations: 374.4 kB / 0.6374 GB, free: 8.387 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05765/0.6472, allocations: 41.5 MB / 0.6779 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004053/0.6513, allocations: 2.724 MB / 0.6806 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004453/0.6557, allocations: 1.691 MB / 0.6822 GB, free: 3.492 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/0.6579, allocations: 1.452 MB / 0.6836 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of SimCode: time 1.312e-06/0.658, allocations: 0 / 0.6836 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2867/0.9447, allocations: 57.77 MB / 0.7401 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/11.22, allocations: 1.5 kB / 0.7401 GB, free: 161.1 MB / 0.5294 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches