Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_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.005429/0.005429, allocations: 100.2 kB / 15.87 MB, free: 6.309 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.001299/0.001299, allocations: 192.3 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.1 MB / 222.6 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3179/0.3179, allocations: 43.5 MB / 313.5 MB, free: 8.227 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 75.12 kB / 382.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 57.78 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2046/0.315, allocations: 41.49 MB / 481.4 MB, free: 25.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.3325, allocations: 8.965 MB / 490.4 MB, free: 19.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008156/0.3407, allocations: 174.7 kB / 490.5 MB, free: 19.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003215/0.344, allocations: 1.929 MB / 492.5 MB, free: 18.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.3473, allocations: 1.625 MB / 494.1 MB, free: 18.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009268/0.3483, allocations: 0.5355 MB / 494.6 MB, free: 18.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004742/0.353, allocations: 5.378 MB / 0.4883 GB, free: 16.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003522/0.3565, allocations: 2.538 MB / 0.4908 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002346/0.3589, allocations: 1.123 MB / 0.4919 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002949/0.3619, allocations: 1.961 MB / 0.4938 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005335/0.3624, allocations: 188.2 kB / 0.494 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001949/0.3644, allocations: 1.132 MB / 0.4951 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001536/0.3659, allocations: 1.626 MB / 0.4967 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.3675, allocations: 1.919 MB / 0.4985 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006218/0.3737, allocations: 6.286 MB / 0.5047 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3738, allocations: 1.406 kB / 0.5047 GB, free: 9.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3738, allocations: 0 / 0.5047 GB, free: 9.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001156/0.3739, allocations: 0 / 0.5047 GB, free: 9.781 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01024/0.3841, allocations: 4.342 MB / 0.5089 GB, free: 6.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3842, allocations: 9.625 kB / 0.5089 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001127/0.3853, allocations: 0.6463 MB / 0.5095 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07262/0.458, allocations: 7.035 MB / 0.5164 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005453/0.4634, allocations: 2.819 MB / 0.5192 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.4636, allocations: 193.5 kB / 0.5194 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006118/0.4642, allocations: 267.6 kB / 0.5196 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01252/0.4768, allocations: 8.682 MB / 0.5281 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.034e-05/0.4769, allocations: 35.66 kB / 0.5281 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003391/0.4772, allocations: 131.8 kB / 0.5282 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002724/0.4799, allocations: 1.84 MB / 0.53 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01245/0.4924, allocations: 7.339 MB / 0.5372 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03495/0.5274, allocations: 34 MB / 0.5704 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004445/0.5318, allocations: 2.534 MB / 0.5729 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.5332, allocations: 1.128 MB / 0.574 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003027/0.5335, allocations: 323.7 kB / 0.5743 GB, free: 5.629 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.5335, allocations: 51.06 kB / 0.5743 GB, free: 5.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 2.645e-06/0.5335, allocations: 0 / 0.5743 GB, free: 5.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02056/0.5541, allocations: 8.952 MB / 0.5831 GB, free: 12.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.691e-05/0.5542, allocations: 196.6 kB / 0.5833 GB, free: 12.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004691/0.5589, allocations: 3.982 MB / 0.5872 GB, free: 8.324 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.559, allocations: 41.7 kB / 0.5872 GB, free: 8.277 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/0.5607, allocations: 2.964 MB / 0.5901 GB, free: 5.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005381/0.5612, allocations: 0.5443 MB / 0.5906 GB, free: 4.719 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/0.5627, allocations: 1.166 MB / 0.5918 GB, free: 3.539 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.118e-05/0.5628, allocations: 301.1 kB / 0.5921 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/0.565, allocations: 1.694 MB / 0.5937 GB, free: 1.543 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004183/0.5692, allocations: 5.521 MB / 0.5991 GB, free: 10.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007474/0.5766, allocations: 7.853 MB / 0.6068 GB, free: 348 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.726e-05/0.5767, allocations: 40 kB / 0.6068 GB, free: 308 kB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01001/0.5867, allocations: 7.096 MB / 0.6137 GB, free: 9.191 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.919e-05/0.5868, allocations: 64 kB / 0.6138 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.5869, allocations: 136 kB / 0.6139 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007999/0.5877, allocations: 420.9 kB / 0.6143 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003203/0.5909, allocations: 1.326 MB / 0.6156 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/0.5942, allocations: 3.105 MB / 0.6187 GB, free: 4.016 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/0.5975, allocations: 307.5 kB / 0.6189 GB, free: 3.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/0.598, allocations: 371.9 kB / 0.6193 GB, free: 3.355 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (716): * Single equations (assignments): 712 * 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.002542/0.6005, allocations: 1.939 MB / 0.6212 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004413/0.601, allocations: 327.7 kB / 0.6215 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002682/0.6037, allocations: 1.71 MB / 0.6232 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/0.6037, allocations: 16.38 kB / 0.6232 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.6037, allocations: 0 / 0.6232 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.6037, allocations: 7.984 kB / 0.6232 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008322/0.612, allocations: 5.449 MB / 0.6285 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.6121, allocations: 7.938 kB / 0.6285 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008239/0.6129, allocations: 191.7 kB / 0.6287 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006109/0.6135, allocations: 220.8 kB / 0.6289 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.95e-05/0.6136, allocations: 27.98 kB / 0.629 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.6161, allocations: 2.514 MB / 0.6314 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.6161, allocations: 4 kB / 0.6314 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004479/0.6206, allocations: 3.54 MB / 0.6349 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.6217, allocations: 0.5201 MB / 0.6354 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/0.622, allocations: 35.83 kB / 0.6354 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.623, allocations: 55.88 kB / 0.6355 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.6232, allocations: 72.53 kB / 0.6355 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.6233, allocations: 39.94 kB / 0.6356 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.1928/0.8161, allocations: 2.486 MB / 0.638 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.51e-07/0.8162, allocations: 0 / 0.638 GB, free: 155.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005515/0.8217, allocations: 0.8502 MB / 0.6388 GB, free: 155.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * 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.005591/0.8273, allocations: 4.171 MB / 0.6429 GB, free: 154.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006279/0.8336, allocations: 4.086 MB / 0.6469 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.8336, allocations: 2.812 kB / 0.6469 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.8349, allocations: 1.006 MB / 0.6479 GB, free: 153.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/0.8384, allocations: 372.8 kB / 0.6482 GB, free: 153.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07373/0.9122, allocations: 46.87 MB / 0.694 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004484/0.9167, allocations: 2.956 MB / 0.6969 GB, free: 115.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004801/0.9215, allocations: 1.807 MB / 0.6987 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/0.9238, allocations: 1.651 MB / 0.7003 GB, free: 114.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.132e-06/0.9238, allocations: 0 / 0.7003 GB, free: 114.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08068/1.005, allocations: 60.47 MB / 0.7593 GB, free: 63.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/1.005, allocations: 212.8 kB / 0.7595 GB, free: 63.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.085/4.09, allocations: 0 / 0.7595 GB, free: 63.34 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches