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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009072/0.0009072, allocations: 80.53 kB / 19.92 MB, free: 4.637 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8515/0.8515, allocations: 158.6 MB / 185 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1275/0.1275, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.305e-06/2.305e-06, allocations: 0 / 406.8 MB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/2.028e-05, allocations: 10.08 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.008567/0.008587, allocations: 8.841 MB / 415.7 MB, free: 9.359 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.005577/0.01416, allocations: 3.524 MB / 419.2 MB, free: 5.824 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.01517, allocations: 59.75 kB / 419.3 MB, free: 5.766 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002169/0.01734, allocations: 2.005 MB / 421.3 MB, free: 3.754 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00275/0.02009, allocations: 1.847 MB / 423.1 MB, free: 1.898 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.02119, allocations: 0.6196 MB / 423.7 MB, free: 1.277 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003703/0.02489, allocations: 4.109 MB / 427.8 MB, free: 13.16 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002286/0.02718, allocations: 2.404 MB / 430.2 MB, free: 10.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0021/0.02928, allocations: 1.96 MB / 432.2 MB, free: 8.73 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.03104, allocations: 1.995 MB / 434.2 MB, free: 6.73 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004329/0.03147, allocations: 280 kB / 434.5 MB, free: 6.457 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.03269, allocations: 1.119 MB / 435.6 MB, free: 5.336 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.0337, allocations: 1.815 MB / 437.4 MB, free: 3.516 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009994/0.0347, allocations: 1.16 MB / 438.6 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004057/0.03875, allocations: 6.678 MB / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.03876, allocations: 0 / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.03876, allocations: 0 / 445.2 MB, free: 11.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.981e-05/0.0388, allocations: 0 / 445.2 MB, free: 11.65 MB / 426.7 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.005034/0.04383, allocations: 4.397 MB / 449.6 MB, free: 7.195 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.04387, allocations: 16.02 kB / 449.7 MB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005178/0.04439, allocations: 0.6378 MB / 450.3 MB, free: 6.531 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03772/0.08211, allocations: 7.294 MB / 457.6 MB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003409/0.08552, allocations: 2.536 MB / 460.1 MB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.333e-05/0.08561, allocations: 201.3 kB / 460.3 MB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/0.08592, allocations: 264.2 kB / 460.6 MB, free: 12.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008279/0.0942, allocations: 8.733 MB / 469.3 MB, free: 2.793 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.895e-05/0.09426, allocations: 39.64 kB / 469.4 MB, free: 2.754 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.09448, allocations: 127.9 kB / 469.5 MB, free: 2.629 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001645/0.09613, allocations: 1.829 MB / 471.3 MB, free: 0.7969 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1639/0.26, allocations: 7.299 MB / 478.6 MB, free: 92.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01888/0.2789, allocations: 32.71 MB / 0.4993 GB, free: 68.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.2816, allocations: 2.03 MB / 0.5013 GB, free: 68.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.2827, allocations: 1.034 MB / 0.5023 GB, free: 67.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/0.2829, allocations: 97.86 kB / 0.5024 GB, free: 67.87 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.2829, allocations: 56.94 kB / 0.5025 GB, free: 67.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.297e-06/0.2829, allocations: 0.9375 kB / 0.5025 GB, free: 67.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.01377/0.2967, allocations: 9.475 MB / 0.5117 GB, free: 63.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.2967, allocations: 195.9 kB / 0.5119 GB, free: 63.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.3009, allocations: 4.431 MB / 0.5162 GB, free: 62.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.3009, allocations: 41.83 kB / 0.5163 GB, free: 62.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.302, allocations: 3.06 MB / 0.5193 GB, free: 59.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/0.3023, allocations: 0.5526 MB / 0.5198 GB, free: 59.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008417/0.3031, allocations: 1.158 MB / 0.5209 GB, free: 58.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 2.233e-05/0.3032, allocations: 308.2 kB / 0.5212 GB, free: 58.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/0.3048, allocations: 1.694 MB / 0.5229 GB, free: 57.92 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/0.3076, allocations: 5.564 MB / 0.5283 GB, free: 52.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004477/0.3121, allocations: 7.857 MB / 0.536 GB, free: 42.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.944e-05/0.3121, allocations: 36 kB / 0.536 GB, free: 42.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.005993/0.3181, allocations: 7.118 MB / 0.543 GB, free: 36.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.3182, allocations: 67.94 kB / 0.543 GB, free: 36.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.184e-05/0.3182, allocations: 137.7 kB / 0.5432 GB, free: 36.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005008/0.3187, allocations: 417 kB / 0.5436 GB, free: 35.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.3205, allocations: 1.321 MB / 0.5449 GB, free: 34.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.3227, allocations: 3.286 MB / 0.5481 GB, free: 31.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/0.325, allocations: 339.5 kB / 0.5484 GB, free: 31.01 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.3252, allocations: 373.8 kB / 0.5487 GB, free: 30.64 MB / 442.7 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.001712/0.327, allocations: 1.942 MB / 0.5506 GB, free: 28.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.3272, allocations: 349.6 kB / 0.551 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.3288, allocations: 1.691 MB / 0.5526 GB, free: 26.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.3288, allocations: 19.91 kB / 0.5526 GB, free: 26.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.3288, allocations: 7.938 kB / 0.5527 GB, free: 26.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3288, allocations: 3.984 kB / 0.5527 GB, free: 26.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005004/0.3338, allocations: 5.265 MB / 0.5578 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3338, allocations: 4 kB / 0.5578 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.3342, allocations: 188.3 kB / 0.558 GB, free: 21.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003298/0.3346, allocations: 232.6 kB / 0.5582 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.44e-05/0.3346, allocations: 23.98 kB / 0.5582 GB, free: 20.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/0.3362, allocations: 2.634 MB / 0.5608 GB, free: 18.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3362, allocations: 8.062 kB / 0.5608 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.3388, allocations: 3.543 MB / 0.5643 GB, free: 14.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006092/0.3394, allocations: 0.4975 MB / 0.5648 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.3396, allocations: 35.86 kB / 0.5648 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006509/0.3402, allocations: 91.94 kB / 0.5649 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.3403, allocations: 72.52 kB / 0.5649 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-05/0.3404, allocations: 41.48 kB / 0.565 GB, free: 13.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002004/0.3424, allocations: 2.649 MB / 0.5676 GB, free: 11.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3424, allocations: 4 kB / 0.5676 GB, free: 11.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002567/0.3449, allocations: 0.9605 MB / 0.5685 GB, free: 10.2 MB / 442.7 MB 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.002928/0.3479, allocations: 4.199 MB / 0.5726 GB, free: 5.957 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00349/0.3514, allocations: 3.963 MB / 0.5765 GB, free: 2.008 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.3514, allocations: 256 / 0.5765 GB, free: 2.008 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007311/0.3521, allocations: 0.9447 MB / 0.5774 GB, free: 1.055 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.3533, allocations: 396.4 kB / 0.5778 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.037/0.3903, allocations: 40.89 MB / 0.6177 GB, free: 1.938 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002361/0.3926, allocations: 2.409 MB / 0.6201 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002611/0.3953, allocations: 1.827 MB / 0.6219 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/0.3968, allocations: 1.66 MB / 0.6235 GB, free: 12 MB / 0.4948 GB Notification: Performance of SimCode: time 1.462e-06/0.3968, allocations: 0 / 0.6235 GB, free: 12 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/0.603, allocations: 59.81 MB / 0.6819 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.638/10.24, allocations: 10.47 kB / 0.6819 GB, free: 157.2 MB / 0.5105 GB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 9.996e-05 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable distance1.distance in file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance1.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! Error: Could not read variable distance2.distance in file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv. Warning: Get data of variable distance2.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.386923686601222]