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.0008976/0.0008976, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1848/0.1848, allocations: 46.18 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002887, allocations: 8 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1194, allocations: 63.56 MB / 483.2 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03012/0.1496, allocations: 32.37 MB / 0.5035 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2649/0.4146, allocations: 7.481 MB / 0.5108 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006868/0.4215, allocations: 140.7 kB / 0.5109 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.4229, allocations: 355.5 kB / 0.5112 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00451/0.4275, allocations: 1.476 MB / 0.5127 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.4289, allocations: 0.52 MB / 0.5132 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008123/0.4371, allocations: 5.217 MB / 0.5183 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004816/0.4419, allocations: 3.275 MB / 0.5215 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001603/0.4435, allocations: 0.8748 MB / 0.5223 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0021/0.4456, allocations: 1.579 MB / 0.5239 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003379/0.446, allocations: 108.6 kB / 0.524 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.4479, allocations: 1.051 MB / 0.525 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.4492, allocations: 1.38 MB / 0.5264 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.4505, allocations: 1.629 MB / 0.5279 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00504/0.4555, allocations: 5.466 MB / 0.5333 GB, free: 3.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.4556, allocations: 4 kB / 0.5333 GB, free: 3.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4556, allocations: 0 / 0.5333 GB, free: 3.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000128/0.4557, allocations: 1.688 kB / 0.5333 GB, free: 3.859 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.007541/0.4633, allocations: 3.271 MB / 0.5365 GB, free: 1.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.4633, allocations: 12.81 kB / 0.5365 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009019/0.4642, allocations: 0.5764 MB / 0.5371 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08766/0.5519, allocations: 7.132 MB / 0.544 GB, free: 12.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005619/0.5576, allocations: 2.425 MB / 0.5464 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5577, allocations: 175.3 kB / 0.5466 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005531/0.5583, allocations: 245.5 kB / 0.5468 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.5692, allocations: 7.721 MB / 0.5543 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.665e-05/0.5694, allocations: 51.56 kB / 0.5544 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.5697, allocations: 115.6 kB / 0.5545 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002493/0.5722, allocations: 1.589 MB / 0.556 GB, free: 300 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.5834, allocations: 6.465 MB / 0.5624 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03443/0.6179, allocations: 31.46 MB / 0.5931 GB, free: 9.531 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004567/0.6225, allocations: 2.415 MB / 0.5954 GB, free: 6.969 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.6238, allocations: 1.068 MB / 0.5965 GB, free: 5.891 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003195/0.6242, allocations: 329.9 kB / 0.5968 GB, free: 5.516 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.6242, allocations: 42.56 kB / 0.5968 GB, free: 5.465 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 5.38e-06/0.6242, allocations: 112 / 0.5968 GB, free: 5.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02182/0.6461, allocations: 8.344 MB / 0.605 GB, free: 13.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.6462, allocations: 204.5 kB / 0.6052 GB, free: 12.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006608/0.6528, allocations: 3.761 MB / 0.6089 GB, free: 9.016 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.6529, allocations: 41.7 kB / 0.6089 GB, free: 8.969 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.6551, allocations: 2.714 MB / 0.6115 GB, free: 6.258 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.6556, allocations: 494.6 kB / 0.612 GB, free: 5.777 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006349/0.6562, allocations: 469.6 kB / 0.6125 GB, free: 5.312 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.6563, allocations: 301.1 kB / 0.6128 GB, free: 5.016 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/0.6588, allocations: 1.588 MB / 0.6143 GB, free: 3.422 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004563/0.6634, allocations: 5.144 MB / 0.6193 GB, free: 12.48 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007444/0.6708, allocations: 7.315 MB / 0.6265 GB, free: 3.391 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.059e-05/0.6709, allocations: 36 kB / 0.6265 GB, free: 3.355 MB / 478.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01132/0.6823, allocations: 6.627 MB / 0.633 GB, free: 12.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.6824, allocations: 66.17 kB / 0.633 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/0.6826, allocations: 124 kB / 0.6332 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009682/0.6836, allocations: 411.3 kB / 0.6336 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003569/0.6871, allocations: 1.228 MB / 0.6348 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003569/0.6907, allocations: 3.071 MB / 0.6378 GB, free: 7.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.6945, allocations: 291.5 kB / 0.638 GB, free: 7.414 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006597/0.6952, allocations: 346.6 kB / 0.6384 GB, free: 7.078 MB / 494.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.00329/0.6985, allocations: 1.772 MB / 0.6401 GB, free: 5.293 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006816/0.6992, allocations: 315.9 kB / 0.6404 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.7021, allocations: 1.47 MB / 0.6418 GB, free: 3.504 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.813e-05/0.7021, allocations: 12 kB / 0.6418 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.7022, allocations: 4 kB / 0.6418 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.7022, allocations: 3.984 kB / 0.6418 GB, free: 3.484 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009209/0.7114, allocations: 4.869 MB / 0.6466 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.7114, allocations: 4 kB / 0.6466 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007703/0.7122, allocations: 159.8 kB / 0.6468 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006519/0.7129, allocations: 221 kB / 0.647 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.229e-05/0.713, allocations: 23.98 kB / 0.647 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002824/0.7158, allocations: 2.522 MB / 0.6495 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.7158, allocations: 0 / 0.6495 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004495/0.7203, allocations: 3.272 MB / 0.6527 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009316/0.7213, allocations: 373 kB / 0.653 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006005/0.7219, allocations: 12 kB / 0.653 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.7232, allocations: 51.94 kB / 0.6531 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.7234, allocations: 64.48 kB / 0.6531 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-05/0.7235, allocations: 39.98 kB / 0.6532 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004623/0.7281, allocations: 2.343 MB / 0.6555 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.61e-07/0.7281, allocations: 0 / 0.6555 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004909/0.733, allocations: 0.7656 MB / 0.6562 GB, free: 4.566 MB / 0.4981 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.005563/0.7386, allocations: 3.9 MB / 0.66 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006488/0.7451, allocations: 3.798 MB / 0.6637 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.7451, allocations: 480 / 0.6637 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.7466, allocations: 0.9621 MB / 0.6647 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/0.7499, allocations: 349.2 kB / 0.665 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06613/0.816, allocations: 42.96 MB / 0.7069 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003785/0.8198, allocations: 2.72 MB / 0.7096 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004207/0.8241, allocations: 1.695 MB / 0.7113 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002038/0.8261, allocations: 1.456 MB / 0.7127 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of SimCode: time 1.102e-06/0.8261, allocations: 3.938 kB / 0.7127 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2924/1.119, allocations: 56.05 MB / 0.7674 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/1.119, allocations: 216.2 kB / 0.7676 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.223/4.341, allocations: 3.625 kB / 0.7676 GB, free: 181.3 MB / 0.5606 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