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.001222/0.001222, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001434, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2224/0.2224, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 71.89 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3337, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01337/0.3472, allocations: 11.92 MB / 0.5421 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009811/0.357, allocations: 4.076 MB / 0.5461 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00307/0.3601, allocations: 76.31 kB / 0.5462 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004065/0.3643, allocations: 1.667 MB / 0.5478 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.3688, allocations: 1.529 MB / 0.5493 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.3715, allocations: 1.173 MB / 0.5505 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005425/0.3769, allocations: 3.509 MB / 0.5539 GB, free: 9.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003635/0.3806, allocations: 2.454 MB / 0.5563 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.3827, allocations: 1.152 MB / 0.5574 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00271/0.3855, allocations: 1.565 MB / 0.5589 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007466/0.3862, allocations: 240 kB / 0.5592 GB, free: 4.305 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001804/0.3881, allocations: 0.71 MB / 0.5599 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001793/0.3899, allocations: 1.554 MB / 0.5614 GB, free: 2.035 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003125/0.393, allocations: 1.855 MB / 0.5632 GB, free: 172 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007912/0.4009, allocations: 6.126 MB / 0.5692 GB, free: 10.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.401, allocations: 0 / 0.5692 GB, free: 10.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.401, allocations: 3.938 kB / 0.5692 GB, free: 10.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001976/0.4012, allocations: 0 / 0.5692 GB, free: 10.02 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: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.009393/0.4106, allocations: 3.981 MB / 0.5731 GB, free: 5.965 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.4107, allocations: 8.031 kB / 0.5731 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001501/0.4122, allocations: 0.7203 MB / 0.5738 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/0.4223, allocations: 2.967 MB / 0.5767 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004497/0.4269, allocations: 1.823 MB / 0.5784 GB, free: 388 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.427, allocations: 192.9 kB / 0.5786 GB, free: 192 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007307/0.4278, allocations: 243.9 kB / 0.5789 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01424/0.442, allocations: 10.04 MB / 0.5887 GB, free: 5.254 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.955e-05/0.4422, allocations: 31.69 kB / 0.5887 GB, free: 5.223 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003687/0.4425, allocations: 127.8 kB / 0.5888 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003507/0.446, allocations: 2.31 MB / 0.5911 GB, free: 2.781 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.4608, allocations: 8.931 MB / 0.5998 GB, free: 9.84 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04871/0.5096, allocations: 37.51 MB / 0.6364 GB, free: 3.207 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005889/0.5155, allocations: 3.386 MB / 0.6397 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.5174, allocations: 1.238 MB / 0.6409 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/0.5277, allocations: 5.175 MB / 0.646 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.36e-05/0.5278, allocations: 51.06 kB / 0.646 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 5.991e-06/0.5278, allocations: 3.938 kB / 0.646 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007284/0.5351, allocations: 3.324 MB / 0.6493 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.683e-05/0.5352, allocations: 170.7 kB / 0.6495 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007072/0.5423, allocations: 3.828 MB / 0.6532 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001796/0.5425, allocations: 41.98 kB / 0.6532 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002762/0.5453, allocations: 3.169 MB / 0.6563 GB, free: 14.28 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009425/0.5463, allocations: 0.6098 MB / 0.6569 GB, free: 13.66 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002691/0.549, allocations: 1.309 MB / 0.6582 GB, free: 12.34 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.5491, allocations: 309.1 kB / 0.6585 GB, free: 12.04 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003344/0.5524, allocations: 1.953 MB / 0.6604 GB, free: 10.08 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006432/0.5589, allocations: 6.1 MB / 0.6664 GB, free: 1.902 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/0.5698, allocations: 8.793 MB / 0.6749 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/0.57, allocations: 40 kB / 0.675 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01501/0.585, allocations: 7.699 MB / 0.6825 GB, free: 15.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001647/0.5852, allocations: 68.94 kB / 0.6826 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002573/0.5855, allocations: 151.9 kB / 0.6827 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.5857, allocations: 196 kB / 0.6829 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004507/0.5902, allocations: 1.454 MB / 0.6843 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002821/0.5905, allocations: 286.9 kB / 0.6846 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/0.5954, allocations: 0.9084 MB / 0.6855 GB, free: 12.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009619/0.5963, allocations: 396 kB / 0.6859 GB, free: 11.84 MB / 0.545 GB 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.004338/0.6007, allocations: 2.21 MB / 0.688 GB, free: 9.621 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005917/0.6013, allocations: 315.8 kB / 0.6883 GB, free: 9.309 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009285/0.6022, allocations: 415 kB / 0.6887 GB, free: 8.898 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.008e-05/0.6023, allocations: 31.98 kB / 0.6887 GB, free: 8.867 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.6023, allocations: 4 kB / 0.6887 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.6024, allocations: 3.984 kB / 0.6888 GB, free: 8.859 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.6137, allocations: 5.459 MB / 0.6941 GB, free: 3.273 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/0.6137, allocations: 4 kB / 0.6941 GB, free: 3.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.6148, allocations: 211.7 kB / 0.6943 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.848e-05/0.6148, allocations: 15.88 kB / 0.6943 GB, free: 3.047 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.6149, allocations: 32.66 kB / 0.6943 GB, free: 3.016 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.259e-05/0.6149, allocations: 8.188 kB / 0.6943 GB, free: 3.008 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-06/0.615, allocations: 15.94 kB / 0.6944 GB, free: 2.992 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/0.6182, allocations: 2.536 MB / 0.6968 GB, free: 372 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009266/0.6192, allocations: 380.7 kB / 0.6972 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005616/0.6198, allocations: 27.94 kB / 0.6972 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.6211, allocations: 63.92 kB / 0.6973 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.6213, allocations: 80.34 kB / 0.6974 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.6214, allocations: 47.98 kB / 0.6974 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004357/0.6258, allocations: 2.334 MB / 0.6997 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6258, allocations: 0 / 0.6997 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005224/0.6311, allocations: 1.067 MB / 0.7007 GB, free: 12.36 MB / 0.5606 GB 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.004344/0.6354, allocations: 3.161 MB / 0.7038 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007047/0.6425, allocations: 4.447 MB / 0.7082 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.6426, allocations: 0 / 0.7082 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001308/0.6439, allocations: 0.9528 MB / 0.7091 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.6463, allocations: 351.7 kB / 0.7094 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2976/0.9439, allocations: 41.63 MB / 0.7501 GB, free: 165.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002537/0.9465, allocations: 3.162 MB / 0.7532 GB, free: 162.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004199/0.9507, allocations: 2.23 MB / 0.7553 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/0.9527, allocations: 1.655 MB / 0.757 GB, free: 158.5 MB / 0.5763 GB Notification: Performance of SimCode: time 7.01e-07/0.9527, allocations: 0 / 0.757 GB, free: 158.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07792/1.031, allocations: 51.6 MB / 0.8074 GB, free: 107.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.97/19, allocations: 8.859 kB / 0.8074 GB, free: 107.2 MB / 0.5763 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