Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001271/0.001271, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 216.5 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2372/0.2372, allocations: 46.93 MB / 361.6 MB, free: 4.168 MB / 286.1 MB " [Timeout remaining time 180] 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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002521/0.002521, allocations: 71.89 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3338, allocations: 66.1 MB / 0.5615 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01199/0.3458, allocations: 8.985 MB / 0.5703 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009022/0.3548, allocations: 3.594 MB / 0.5738 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001849/0.3567, allocations: 55.75 kB / 0.5738 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003767/0.3604, allocations: 1.697 MB / 0.5755 GB, free: 5.898 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004292/0.3647, allocations: 1.587 MB / 0.577 GB, free: 4.309 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.3663, allocations: 0.5536 MB / 0.5776 GB, free: 3.754 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005863/0.3721, allocations: 3.584 MB / 0.5811 GB, free: 168 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.3754, allocations: 1.821 MB / 0.5829 GB, free: 14.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.3777, allocations: 1.113 MB / 0.5839 GB, free: 13.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003123/0.3809, allocations: 1.674 MB / 0.5856 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000968/0.3818, allocations: 220 kB / 0.5858 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002976/0.3848, allocations: 1.135 MB / 0.5869 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.3872, allocations: 1.457 MB / 0.5883 GB, free: 8.676 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003783/0.391, allocations: 1.681 MB / 0.59 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008956/0.3999, allocations: 5.572 MB / 0.5954 GB, free: 1.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.4, allocations: 0 / 0.5954 GB, free: 1.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4, allocations: 0 / 0.5954 GB, free: 1.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002208/0.4002, allocations: 4 kB / 0.5954 GB, free: 1.387 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01258/0.4128, allocations: 3.812 MB / 0.5991 GB, free: 13.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.4128, allocations: 8.031 kB / 0.5991 GB, free: 13.51 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001329/0.4129, allocations: 80.39 kB / 0.5992 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001274/0.4142, allocations: 0.5423 MB / 0.5997 GB, free: 12.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09038/0.5046, allocations: 6.943 MB / 0.6065 GB, free: 5.918 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006006/0.5106, allocations: 2.329 MB / 0.6088 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.5108, allocations: 162.7 kB / 0.609 GB, free: 3.387 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008045/0.5116, allocations: 223.8 kB / 0.6092 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.525, allocations: 7.336 MB / 0.6163 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001321/0.5252, allocations: 35.7 kB / 0.6164 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005444/0.5257, allocations: 107.9 kB / 0.6165 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002857/0.5286, allocations: 1.55 MB / 0.618 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.5411, allocations: 6.186 MB / 0.624 GB, free: 3.312 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04116/0.5822, allocations: 29.78 MB / 0.6531 GB, free: 4.613 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004502/0.5867, allocations: 1.641 MB / 0.6547 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.5881, allocations: 0.9908 MB / 0.6557 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002836/0.5884, allocations: 92.3 kB / 0.6558 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.5885, allocations: 43 kB / 0.6558 GB, free: 1.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.125e-06/0.5885, allocations: 3.938 kB / 0.6558 GB, free: 1.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03563/0.6241, allocations: 10.9 MB / 0.6665 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/0.6242, allocations: 188.6 kB / 0.6666 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006255/0.6305, allocations: 3.626 MB / 0.6702 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002609/0.6308, allocations: 45.7 kB / 0.6702 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002588/0.6333, allocations: 2.671 MB / 0.6728 GB, free: 216 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008491/0.6342, allocations: 0.5467 MB / 0.6734 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002303/0.6365, allocations: 1.056 MB / 0.6744 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.6366, allocations: 301.1 kB / 0.6747 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/0.6395, allocations: 1.626 MB / 0.6763 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005979/0.6455, allocations: 4.969 MB / 0.6811 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009422/0.6549, allocations: 7.168 MB / 0.6881 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/0.655, allocations: 32 kB / 0.6881 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01328/0.6683, allocations: 6.574 MB / 0.6946 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.6685, allocations: 56 kB / 0.6946 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/0.6687, allocations: 123.9 kB / 0.6947 GB, free: 6.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.6698, allocations: 401 kB / 0.6951 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004167/0.674, allocations: 1.185 MB / 0.6963 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00478/0.6787, allocations: 3.221 MB / 0.6994 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/0.6828, allocations: 283.5 kB / 0.6997 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008451/0.6837, allocations: 324 kB / 0.7 GB, free: 0.8789 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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.003212/0.6869, allocations: 1.699 MB / 0.7017 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/0.6876, allocations: 317.9 kB / 0.702 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.6912, allocations: 1.721 MB / 0.7036 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/0.6913, allocations: 16 kB / 0.7037 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.6913, allocations: 3.938 kB / 0.7037 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.006e-05/0.6913, allocations: 12.08 kB / 0.7037 GB, free: 13.08 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.7014, allocations: 5.195 MB / 0.7088 GB, free: 7.809 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.7014, allocations: 0 / 0.7088 GB, free: 7.809 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.7025, allocations: 199.7 kB / 0.7089 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000737/0.7032, allocations: 224.7 kB / 0.7092 GB, free: 7.391 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.7033, allocations: 27.98 kB / 0.7092 GB, free: 7.363 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00327/0.7066, allocations: 2.597 MB / 0.7117 GB, free: 4.648 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.7066, allocations: 4 kB / 0.7117 GB, free: 4.645 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005956/0.7126, allocations: 3.74 MB / 0.7154 GB, free: 0.875 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009306/0.7135, allocations: 290 kB / 0.7157 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004672/0.714, allocations: 24.05 kB / 0.7157 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.7152, allocations: 67.92 kB / 0.7157 GB, free: 0.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.7154, allocations: 80.39 kB / 0.7158 GB, free: 432 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-05/0.7155, allocations: 32 kB / 0.7158 GB, free: 400 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003965/0.7195, allocations: 2.265 MB / 0.7181 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.7195, allocations: 0 / 0.7181 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00408/0.7236, allocations: 0.7577 MB / 0.7188 GB, free: 13.38 MB / 0.5606 GB 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 (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.006379/0.73, allocations: 4.36 MB / 0.7231 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00678/0.7367, allocations: 3.797 MB / 0.7268 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.7368, allocations: 0 / 0.7268 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.7384, allocations: 0.9862 MB / 0.7277 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.7408, allocations: 359.8 kB / 0.7281 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2839/1.025, allocations: 36.59 MB / 0.7638 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002662/1.027, allocations: 2.638 MB / 0.7664 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003344/1.031, allocations: 1.7 MB / 0.768 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/1.033, allocations: 1.413 MB / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.322e-06/1.033, allocations: 0 / 0.7694 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09034/1.123, allocations: 57.95 MB / 0.826 GB, free: 66.85 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.14/25.26, allocations: 10.81 kB / 0.826 GB, free: 66.84 MB / 0.5606 GB " [Timeout remaining time 635] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 29.124321077018976]