Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 75.59 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01231/0.115, allocations: 11.92 MB / 492.1 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007315/0.1223, allocations: 4.082 MB / 496.1 MB, free: 5.113 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.1241, allocations: 75.88 kB / 496.2 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003017/0.1271, allocations: 1.658 MB / 497.9 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003104/0.1303, allocations: 1.522 MB / 499.4 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.1324, allocations: 1.177 MB / 0.4888 GB, free: 0.668 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004168/0.1365, allocations: 3.506 MB / 0.4923 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002901/0.1394, allocations: 2.461 MB / 0.4947 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.141, allocations: 1.152 MB / 0.4958 GB, free: 9.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002174/0.1432, allocations: 1.565 MB / 0.4973 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008341/0.1441, allocations: 236 kB / 0.4975 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.1459, allocations: 0.7061 MB / 0.4982 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.1475, allocations: 1.543 MB / 0.4997 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003108/0.1506, allocations: 1.863 MB / 0.5016 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2036/0.3543, allocations: 5.822 MB / 0.5072 GB, free: 18.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3543, allocations: 1.25 kB / 0.5072 GB, free: 18.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3543, allocations: 0 / 0.5072 GB, free: 18.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000221/0.3546, allocations: 0 / 0.5072 GB, free: 18.67 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: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.009871/0.3644, allocations: 3.977 MB / 0.5111 GB, free: 16.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3645, allocations: 9.719 kB / 0.5111 GB, free: 16.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001333/0.3658, allocations: 0.7155 MB / 0.5118 GB, free: 16.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01036/0.3762, allocations: 2.968 MB / 0.5147 GB, free: 16.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004258/0.3805, allocations: 1.794 MB / 0.5165 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.3807, allocations: 193.2 kB / 0.5167 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009684/0.3817, allocations: 246.1 kB / 0.5169 GB, free: 16.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.397, allocations: 10.04 MB / 0.5267 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.275e-05/0.3971, allocations: 32.2 kB / 0.5267 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004571/0.3976, allocations: 125.8 kB / 0.5269 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003244/0.4008, allocations: 2.313 MB / 0.5291 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.4142, allocations: 8.937 MB / 0.5378 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04337/0.4576, allocations: 37.7 MB / 0.5747 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005247/0.4628, allocations: 3.379 MB / 0.578 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.4644, allocations: 1.231 MB / 0.5792 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007683/0.4721, allocations: 5.171 MB / 0.5842 GB, free: 8.094 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.4722, allocations: 50.78 kB / 0.5843 GB, free: 8.039 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.436e-06/0.4722, allocations: 0 / 0.5843 GB, free: 8.039 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.006538/0.4788, allocations: 3.329 MB / 0.5875 GB, free: 4.719 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.701e-05/0.4789, allocations: 169.3 kB / 0.5877 GB, free: 4.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006001/0.4849, allocations: 3.822 MB / 0.5914 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.485, allocations: 48.12 kB / 0.5914 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/0.4869, allocations: 3.18 MB / 0.5946 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005532/0.4874, allocations: 0.5992 MB / 0.5951 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/0.4889, allocations: 1.306 MB / 0.5964 GB, free: 11.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.489, allocations: 305.1 kB / 0.5967 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002479/0.4915, allocations: 1.95 MB / 0.5986 GB, free: 9.324 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004826/0.4963, allocations: 6.116 MB / 0.6046 GB, free: 1.207 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00834/0.5047, allocations: 8.793 MB / 0.6132 GB, free: 6.949 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.403e-05/0.5048, allocations: 44 kB / 0.6132 GB, free: 6.906 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01227/0.517, allocations: 7.702 MB / 0.6207 GB, free: 15.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.5172, allocations: 71.94 kB / 0.6208 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/0.5174, allocations: 145.5 kB / 0.6209 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.5176, allocations: 196 kB / 0.6211 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/0.5218, allocations: 1.454 MB / 0.6225 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002285/0.5221, allocations: 294.7 kB / 0.6228 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004795/0.5269, allocations: 0.9135 MB / 0.6237 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009352/0.5278, allocations: 407.6 kB / 0.6241 GB, free: 12 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.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 (791): * Single equations (assignments): 783 * 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.003812/0.5317, allocations: 2.191 MB / 0.6262 GB, free: 9.797 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007154/0.5324, allocations: 303.9 kB / 0.6265 GB, free: 9.496 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000813/0.5332, allocations: 411.1 kB / 0.6269 GB, free: 9.09 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-05/0.5333, allocations: 35.98 kB / 0.627 GB, free: 9.055 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.5333, allocations: 4 kB / 0.627 GB, free: 9.051 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.5333, allocations: 7.922 kB / 0.627 GB, free: 9.043 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009317/0.5426, allocations: 5.465 MB / 0.6323 GB, free: 3.48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.5427, allocations: 8 kB / 0.6323 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009025/0.5436, allocations: 207.7 kB / 0.6325 GB, free: 3.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.859e-05/0.5436, allocations: 12 kB / 0.6325 GB, free: 3.258 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.5437, allocations: 27.94 kB / 0.6326 GB, free: 3.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.244e-05/0.5437, allocations: 9.75 kB / 0.6326 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.5438, allocations: 11.94 kB / 0.6326 GB, free: 3.211 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003011/0.5468, allocations: 2.528 MB / 0.635 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000784/0.5476, allocations: 376.7 kB / 0.6354 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006668/0.5482, allocations: 27.92 kB / 0.6354 GB, free: 188 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.5496, allocations: 63.92 kB / 0.6355 GB, free: 124 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.5498, allocations: 84.41 kB / 0.6356 GB, free: 40 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.55, allocations: 47.25 kB / 0.6356 GB, free: 15.99 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00467/0.5546, allocations: 2.338 MB / 0.6379 GB, free: 13.67 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5547, allocations: 0 / 0.6379 GB, free: 13.67 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005867/0.5605, allocations: 1.063 MB / 0.6389 GB, free: 12.61 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.004437/0.565, allocations: 3.169 MB / 0.642 GB, free: 9.344 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008114/0.5731, allocations: 5.088 MB / 0.647 GB, free: 4.293 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/0.5732, allocations: 4 kB / 0.647 GB, free: 4.289 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.5744, allocations: 0.9479 MB / 0.6479 GB, free: 3.344 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/0.5771, allocations: 351.9 kB / 0.6483 GB, free: 3.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0733/0.6504, allocations: 45.55 MB / 0.6928 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004575/0.655, allocations: 3.154 MB / 0.6958 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006055/0.6611, allocations: 2.232 MB / 0.698 GB, free: 8.223 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00271/0.6639, allocations: 1.667 MB / 0.6996 GB, free: 6.555 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/0.6639, allocations: 0 / 0.6996 GB, free: 6.555 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2752/0.9391, allocations: 54.81 MB / 0.7532 GB, free: 170.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.766/9.705, allocations: 9.016 kB / 0.7532 GB, free: 170.5 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches