Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",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.001195/0.001195, allocations: 111.1 kB / 17.33 MB, free: 6.02 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.001095/0.001095, allocations: 193.3 kB / 18.25 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2177/0.2177, allocations: 44.17 MB / 336.2 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 72.2 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1098, allocations: 60.82 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02456/0.1344, allocations: 25.94 MB / 494.8 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.148, allocations: 6.26 MB / 0.4893 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006343/0.1543, allocations: 111.8 kB / 0.4894 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.1584, allocations: 1.589 MB / 0.4909 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004528/0.1631, allocations: 1.464 MB / 0.4924 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00269/0.1658, allocations: 1.15 MB / 0.4935 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005617/0.1714, allocations: 3.572 MB / 0.497 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004279/0.1757, allocations: 2.645 MB / 0.4996 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002433/0.1782, allocations: 1.191 MB / 0.5007 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002906/0.1811, allocations: 1.783 MB / 0.5025 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001097/0.1822, allocations: 243.9 kB / 0.5027 GB, free: 480 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2869/0.4691, allocations: 0.7175 MB / 0.5034 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00283/0.472, allocations: 1.611 MB / 0.505 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002267/0.4743, allocations: 1.95 MB / 0.5069 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007493/0.4818, allocations: 6.031 MB / 0.5128 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.4819, allocations: 0 / 0.5128 GB, free: 13.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4819, allocations: 1.188 kB / 0.5128 GB, free: 13.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002353/0.4821, allocations: 1.125 kB / 0.5128 GB, free: 13.46 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01005/0.4922, allocations: 4.078 MB / 0.5168 GB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.232e-05/0.4923, allocations: 9.656 kB / 0.5168 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00201/0.4943, allocations: 0.728 MB / 0.5175 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009964/0.5043, allocations: 2.995 MB / 0.5204 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004845/0.5091, allocations: 1.822 MB / 0.5222 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.5093, allocations: 194.8 kB / 0.5224 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.5104, allocations: 251.3 kB / 0.5226 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.5251, allocations: 10.24 MB / 0.5326 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.125e-05/0.5252, allocations: 28.59 kB / 0.5326 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003974/0.5256, allocations: 130.4 kB / 0.5327 GB, free: 6.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/0.5286, allocations: 2.377 MB / 0.5351 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.5426, allocations: 9.081 MB / 0.5439 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06024/0.6029, allocations: 38.14 MB / 0.5812 GB, free: 8.738 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006848/0.6098, allocations: 3.391 MB / 0.5845 GB, free: 5.094 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002108/0.6119, allocations: 1.233 MB / 0.5857 GB, free: 3.852 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.6229, allocations: 5.193 MB / 0.5908 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.885e-05/0.623, allocations: 47.12 kB / 0.5908 GB, free: 14.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.941e-06/0.623, allocations: 0 / 0.5908 GB, free: 14.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.007497/0.6305, allocations: 3.322 MB / 0.5941 GB, free: 11.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.6307, allocations: 169.9 kB / 0.5942 GB, free: 10.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007768/0.6385, allocations: 3.861 MB / 0.598 GB, free: 7.133 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.6387, allocations: 44.91 kB / 0.598 GB, free: 7.086 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002632/0.6413, allocations: 3.229 MB / 0.6012 GB, free: 3.859 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008801/0.6422, allocations: 0.6028 MB / 0.6018 GB, free: 3.262 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002822/0.645, allocations: 1.32 MB / 0.6031 GB, free: 1.934 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.6452, allocations: 305.1 kB / 0.6034 GB, free: 1.633 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/0.6485, allocations: 1.965 MB / 0.6053 GB, free: 15.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006324/0.6549, allocations: 6.156 MB / 0.6113 GB, free: 7.492 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.6651, allocations: 8.849 MB / 0.6199 GB, free: 13.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001362/0.6653, allocations: 40 kB / 0.62 GB, free: 13.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01423/0.6795, allocations: 7.765 MB / 0.6276 GB, free: 6.047 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.6797, allocations: 68 kB / 0.6276 GB, free: 5.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002312/0.68, allocations: 152.2 kB / 0.6278 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002214/0.6802, allocations: 196 kB / 0.6279 GB, free: 5.641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004789/0.685, allocations: 1.462 MB / 0.6294 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002697/0.6853, allocations: 294.8 kB / 0.6297 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005069/0.6904, allocations: 0.9182 MB / 0.6306 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009813/0.6914, allocations: 404 kB / 0.6309 GB, free: 2.566 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (797): * Single equations (assignments): 789 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004555/0.6959, allocations: 2.232 MB / 0.6331 GB, free: 328 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006548/0.6966, allocations: 307.9 kB / 0.6334 GB, free: 16 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.6977, allocations: 419.4 kB / 0.6338 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.801e-05/0.6978, allocations: 38.03 kB / 0.6338 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.6978, allocations: 0 / 0.6338 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.6978, allocations: 7.969 kB / 0.6339 GB, free: 15.56 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/0.7107, allocations: 5.531 MB / 0.6393 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/0.7107, allocations: 4 kB / 0.6393 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.7118, allocations: 212.3 kB / 0.6395 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.712e-05/0.7118, allocations: 15.98 kB / 0.6395 GB, free: 9.707 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.712, allocations: 28 kB / 0.6395 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.421e-05/0.712, allocations: 11.94 kB / 0.6395 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/0.712, allocations: 8 kB / 0.6395 GB, free: 9.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.7154, allocations: 2.535 MB / 0.642 GB, free: 7.035 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000905/0.7164, allocations: 372.6 kB / 0.6424 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006896/0.7171, allocations: 27.98 kB / 0.6424 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.7185, allocations: 66.81 kB / 0.6424 GB, free: 6.559 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.7187, allocations: 80.34 kB / 0.6425 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.7188, allocations: 44 kB / 0.6426 GB, free: 6.438 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004926/0.7238, allocations: 2.354 MB / 0.6449 GB, free: 4.098 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.7238, allocations: 0 / 0.6449 GB, free: 4.098 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006073/0.7299, allocations: 1.112 MB / 0.6459 GB, free: 2.984 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004161/0.734, allocations: 3.168 MB / 0.649 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008787/0.7428, allocations: 5.11 MB / 0.654 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.7429, allocations: 4.062 kB / 0.654 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.7442, allocations: 0.9484 MB / 0.655 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.7469, allocations: 360.3 kB / 0.6553 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08415/0.8311, allocations: 47.87 MB / 0.7021 GB, free: 1.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1928/1.024, allocations: 3.201 MB / 0.7052 GB, free: 210.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005894/1.03, allocations: 2.241 MB / 0.7074 GB, free: 210.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/1.032, allocations: 1.706 MB / 0.709 GB, free: 210.5 MB / 0.545 GB Notification: Performance of SimCode: time 8.22e-07/1.032, allocations: 0 / 0.709 GB, free: 210.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08218/1.115, allocations: 55.33 MB / 0.7631 GB, free: 167.8 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/1.115, allocations: 202 kB / 0.7633 GB, free: 167.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.797/4.912, allocations: 2.078 kB / 0.7633 GB, free: 167.6 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches